Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Sep 25, 2020 · 1 comment

Comments

@jarchibald14
Copy link

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 #6 (comment)

@jarchibald14
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant