Hi all,
First time post here. Just started with Domoticz on the RPI. Loving it so far.
I am writing a Lua Script to query the status of a relay board. For this I need the socket.http module in place. Now obviously I can install it on the OS Lua, but of course the Domoticz Lua is different. I just grabbed the RPI Domoticz image and it seems to of been compiled with Lua 5.1. Not sure why but I did read that Domoticz was going back to Lua 5.1 from 5.2?
I learned of such from this post http://www.domoticz.com/forum/viewtopic ... 638#p22638. It mentions that to untar in the 5.2 directory. Well I only have the 5.1 directory.
Is the image I installed not correct? It came directly from Domoticz.com.
How do I get LuaSockets into the Domoticz Lua?
Thanks
Missing module in Lua 5.1
Moderator: leecollings
-
- Posts: 2
- Joined: Tuesday 19 January 2016 5:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Missing module in Lua 5.1
Not sure if I am going down the right path. I am now assuming that I was suppose to create the directory 5.2 and untar.
Did that and now the error changed to :
The file ../socket/core.so does exist.
Any thoughts?
Did that and now the error changed to :
Code: Select all
Error: EventSystem: /usr/local/share/lua/5.2/socket.lua:12: module 'socket.core' not found:
no field package.preload['socket.core']
no file '/usr/local/share/lua/5.2/socket/core.lua'
no file '/usr/local/share/lua/5.2/socket/core/init.lua'
no file '/usr/local/lib/lua/5.2/socket/core.lua'
no file '/usr/local/lib/lua/5.2/socket/core/init.lua'
no file './socket/core.lua'
no file '/usr/local/lib/lua/5.2/socket/core.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './socket/core.so'
no file '/usr/local/lib/lua/5.2/socket.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './socket.so'
Any thoughts?
Who is online
Users browsing this forum: No registered users and 1 guest