Results 1 to 7 of 7

Thread: Module bit.lua seems missing in Raspberry pi distro

  1. #1
    Join Date
    May 2004
    Location
    France
    Posts
    250

    Post Module bit.lua seems missing in Raspberry pi distro

    It seems that bit.lua is missing in Raspberry Pi distribution :

    Code:
    "ScriptDevice::scriptInit::rfxcom.backend / could not require: ScriptDevice::scr                                                    iptInit::rfxcom.backend / /opt/girder/lua/rfxcom/packet.lua:5: module 'bit' not                                                     found:
            no field package.preload['bit']
            no file './bit.lua'
            no file '/opt/girder/lua/bit.lua'
            no file '/opt/girder/lua/bit/init.lua'
            no file './libbit.so'
            no file './bit.so'
    stack traceback:
            [C]: in function 'require'
            /opt/girder/lua/rfxcom/packet.lua:5: in main chunk
            [C]: in function 'require'
            /opt/girder/lua/rfxcom/init.lua:16: in main chunk
            [C]: in function 'require'
            /opt/girder/lua/rfxcom/backend.lua:6: in main chunk
            [C]: ?"

  2. #2
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    hmm it's there looks like the current path is not set quite right. Easy fix. Create a script action and add this code

    Code:
    package.cpath = '/opt/girder/lib?.so;' .. package.cpath
    Attach the LuaStarted event to it. Reset Lua.

    That should do it.
    Ron
    No support through PM

  3. #3
    Join Date
    May 2004
    Location
    France
    Posts
    250

    Default

    I follow the steps but I still get error :

    Code:
    jeu. juil. 17 22:28:55 2014    startup running...
    jeu. juil. 17 22:28:55 2014    ScriptDevice::scriptInit::rfxcom.backend / /opt/girder/lua/rfxcom/packet.lua:5: module 'bit' not found:
    jeu. juil. 17 22:28:55 2014        no field package.preload['bit']
    jeu. juil. 17 22:28:55 2014        no file './bit.lua'
    jeu. juil. 17 22:28:55 2014        no file '/opt/girder/lua/bit.lua'
    jeu. juil. 17 22:28:55 2014        no file '/opt/girder/lua/bit/init.lua'
    jeu. juil. 17 22:28:55 2014        no file './libbit.so'
    jeu. juil. 17 22:28:55 2014        no file './bit.so'
    jeu. juil. 17 22:28:55 2014    stack traceback:
    jeu. juil. 17 22:28:55 2014        [C]: in function 'require'
    jeu. juil. 17 22:28:55 2014        /opt/girder/lua/rfxcom/packet.lua:5: in main chunk
    jeu. juil. 17 22:28:55 2014        [C]: in function 'require'
    jeu. juil. 17 22:28:55 2014        /opt/girder/lua/rfxcom/init.lua:16: in main chunk
    jeu. juil. 17 22:28:55 2014        [C]: in function 'require'
    jeu. juil. 17 22:28:55 2014        /opt/girder/lua/rfxcom/backend.lua:6: in main chunk
    jeu. juil. 17 22:28:55 2014        [C]: ?
    jeu. juil. 17 22:28:55 2014    rootStartup running...

  4. #4
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    looks like you are running the rfxcom stuff on startup, make sure the cpath is adjusted before your script.
    Ron
    No support through PM

  5. #5
    Join Date
    May 2004
    Location
    France
    Posts
    250

    Default

    I don't have custom scripts with rfxcom. I only had activate RfxCom modules

  6. #6
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    try adding that line to rootStartup.lua
    Ron
    No support through PM

  7. #7
    Join Date
    May 2004
    Location
    France
    Posts
    250

    Default

    No more error now (with rootStartup.lua)
    Thanks Ron.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •