Skip to content

Instantly share code, notes, and snippets.

@meelash
Last active February 13, 2018 19:19
Show Gist options
  • Save meelash/a180c71592b0b90a4b097827fdf085c7 to your computer and use it in GitHub Desktop.
Save meelash/a180c71592b0b90a4b097827fdf085c7 to your computer and use it in GitHub Desktop.
import chdkptp.py error
>>> import chdkptp.py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "chdkptp/__init__.py", line 1, in <module>
from chdkptp.device import ChdkDevice, list_devices, DeviceInfo
File "chdkptp/device.py", line 8, in <module>
from chdkptp.lua import LuaContext, global_lua, parse_table
File "chdkptp/lua.py", line 141, in <module>
global_lua = LuaContext()
File "chdkptp/lua.py", line 92, in __init__
self._setup_runtime()
File "chdkptp/lua.py", line 113, in _setup_runtime
""".format(CHDKPTP_PATH))
File "lupa/_lupa.pyx", line 262, in lupa._lupa.LuaRuntime.execute
File "lupa/_lupa.pyx", line 1279, in lupa._lupa.run_lua
File "lupa/_lupa.pyx", line 1288, in lupa._lupa.call_lua
File "lupa/_lupa.pyx", line 1314, in lupa._lupa.execute_lua_call
File "lupa/_lupa.pyx", line 1250, in lupa._lupa.raise_lua_error
lupa._lupa.LuaError: [string "<python>"]:2: module 'chdkptp' not found:
no field package.preload['chdkptp']
no file '/Users/blahblah/Books/software/chdkptp.py/chdkptp/vendor/chdkptp/lua/chdkptp.lua'
no file '/Users/blahblah/Books/software/env/lib/python2.7/site-packages/chdkptp/vendor/chdkptp/lua/chdkptp.lua'
no file '/Users/blahblah/Books/software/chdkptp.py/chdkptp/vendor/chdkptp/chdkptp.so'
no file '/Users/blahblah/Books/software/chdkptp.py/chdkptp/vendor/chdkptp/lua/chdkptp.lua'
no file '/Users/blahblah/Books/software/env/lib/python2.7/site-packages/chdkptp/vendor/chdkptp/lua/chdkptp.lua'
stack traceback:
[C]: in function 'require'
[string "<python>"]:2: in main chunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment