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.
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.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