PDA

View Full Version : Silly Lua path question for Girder running on Rpi Jessie



declan slater
January 30th, 2017, 11:56 PM
Hey Ron,

Sorry to bug you, how do I fix the path that Girder uses for Lua? I loaded "luarocks", and stuff to attempt getting girder to work with OSC "open sound control"
- works fine so far, but I get an error when it can't find a certain module in the path

/opt/girder $ luarocks path
export LUA_PATH='/home/fpp/.luarocks/share/lua/5.1/?.lua;/home/fpp/.luarocks/share/lua/5.1/?/init.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/root/.luarocks/share/lua/5.1/?.lua;/root/.luarocks/share/lua/5.1/?/init.lua;./?.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?/init.lua'
export LUA_CPATH='/home/fpp/.luarocks/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/?.so;/root/.luarocks/lib/lua/5.1/?.so;./?.so;/usr/lib/arm-linux-gnueabihf/lua/5.1/?.so;/usr/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so'

In Girder I get this:
Tue Jan 31 03:49:32 2017 Scripting / [string "Scripting"]:17: module 'lub' not found:
Tue Jan 31 03:49:32 2017 no field package.preload['lub']
Tue Jan 31 03:49:32 2017 no file './lub.lua'
Tue Jan 31 03:49:32 2017 no file '/opt/girder/lua/lub.lua'
Tue Jan 31 03:49:32 2017 no file '/opt/girder/lua/lub/init.lua'
Tue Jan 31 03:49:32 2017 no file '/opt/girder/liblub.so'
Tue Jan 31 03:49:32 2017 no file '/opt/girder/lub.so'
Tue Jan 31 03:49:32 2017 no file './liblub.so'
Tue Jan 31 03:49:32 2017 no file './lub.so'
Tue Jan 31 03:49:32 2017 no file './lub.elua'
Tue Jan 31 03:49:32 2017 no file '/opt/girder/lua/lub.elua'
Tue Jan 31 03:49:32 2017 no file '/opt/girder/lua/lub/init.elua'
Tue Jan 31 03:49:32 2017 stack traceback:
Tue Jan 31 03:49:32 2017 [C]: in function 'require'
Tue Jan 31 03:49:32 2017 [string "Scripting"]:17: in main chunk

Thanks in advance for any help!
-Declan.

Ron
January 31st, 2017, 12:06 AM
It is extremely unlikely that you can load external lua libraries (dll or so) as Girder uses it's own Lua build. You can use external lua libraries that come as .lua files.

declan slater
January 31st, 2017, 10:03 AM
Thanks for the reply...

Bummer... yesterday blown...

Guess that Crestron is still the king of the touchscreens then... ugh ($$).