jbaiter / chdkptp.py

Python bindings for chdkptp
GNU General Public License v3.0
13 stars 14 forks source link

I found that the `encode=None` at the lua runtime was the cause of the issue, but now I can't install the package. #12

Closed jarchibald14 closed 4 years ago

jarchibald14 commented 4 years ago

How did you solve this issue? I am currently dealing with the exact same error message

I found that the encode=None at the lua runtime was the cause of the issue, but now I can't install the package.

lupa._lupa.LuaError: [string "<python>"]:2: module 'chdkptp' not found:
    no field package.preload['chdkptp']
    no file '/home/sd/Documents/HACKPLACE/chdkptp.py/chdkptp/vendor/chdkptp/lua/chdkptp.lua'
    no file '/usr/local/share/lua/5.2/chdkptp.lua'
    no file '/usr/local/share/lua/5.2/chdkptp/init.lua'
    no file '/usr/local/lib/lua/5.2/chdkptp.lua'
    no file '/usr/local/lib/lua/5.2/chdkptp/init.lua'
    no file '/usr/share/lua/5.2/chdkptp.lua'
    no file '/usr/share/lua/5.2/chdkptp/init.lua'
    no file './chdkptp.lua'
    no file '/home/sd/Documents/HACKPLACE/chdkptp.py/chdkptp/vendor/chdkptp/chdkptp.so'
    no file '/home/sd/Documents/HACKPLACE/chdkptp.py/chdkptp/vendor/chdkptp/lua/chdkptp.lua'
    no file '/usr/local/share/lua/5.2/chdkptp.lua'
    no file '/usr/local/share/lua/5.2/chdkptp/init.lua'
    no file '/usr/local/lib/lua/5.2/chdkptp.lua'
    no file '/usr/local/lib/lua/5.2/chdkptp/init.lua'
    no file '/usr/share/lua/5.2/chdkptp.lua'
    no file '/usr/share/lua/5.2/chdkptp/init.lua'
    no file './chdkptp.lua'
stack traceback:
    [C]: in function 'require'
    [string "<python>"]:2: in main chunk

Looks like the package is looking for the lua files at my relative path not inside the chdkptp installation path.

Originally posted by @5up3rD4n1 in https://github.com/jbaiter/chdkptp.py/issues/6#issuecomment-353281895

jarchibald14 commented 4 years ago

Wasnt able to install this package but I found a workaround by using calls in my python code to subprocess and the shell script from chdkptp