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

LuaError #209

Open
ghost opened this issue Aug 3, 2015 · 3 comments
Open

LuaError #209

ghost opened this issue Aug 3, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 3, 2015

Hey guys.

This error continuously happens to me on the CLI version. It occurs after 1-4 captures. Any help on what to do?

Shot  14 pages [1987/h] Workflow: Triggering capture.
Workflow: Sending capture command to devices
bagit: Adding path /home/pi/Dekadent_Barbari_vol1/bag-info.txt to payload
CHDKCameraDevice[9403]: Error during capture, retrying shot.
CHDKCameraDevice[9403]: 'NoneType' object is not callable
chdkptp.lua: rc chunk get 1 0
chdkptp.lua: rc chunk size:1461760 offset:17920 last:false
chdkptp.lua: rc chunk get 1 1
chdkptp.lua: rc chunk size:1479168 offset:nil last:false
chdkptp.lua: rc chunk get 1 2
chdkptp.lua: rc chunk size:1479680 offset:nil last:false
chdkptp.lua: rc chunk get 1 3
chdkptp.lua: rc chunk size:907548 offset:nil last:false
chdkptp.lua: rc chunk get 1 4
chdkptp.lua: rc chunk size:17920 offset:0 last:true
CHDKCameraDevice[8D5F]: Setting EXIF orientation on captured image
spreads encountered an error:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/spreads/main.py", line 321, in main
    run()
  File "/usr/local/lib/python2.7/dist-packages/spreads/main.py", line 308, in run
    args.subcommand(config)
  File "/usr/local/lib/python2.7/dist-packages/spreads/cli.py", line 388, in wizard
    capture(config)
  File "/usr/local/lib/python2.7/dist-packages/spreads/cli.py", line 340, in capture
    _trigger_loop()
  File "/usr/local/lib/python2.7/dist-packages/spreads/cli.py", line 314, in _trigger_loop
    workflow.capture(retake=(char == 'r'))
  File "/usr/local/lib/python2.7/dist-packages/spreads/workflow.py", line 104, in wrapped_func
    func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/spreads/workflow.py", line 928, in capture
    util.check_futures_exceptions(futures)
  File "/usr/local/lib/python2.7/dist-packages/spreads/util.py", line 119, in check_futures_exceptions
    raise next(x for x in futures if x.exception()).exception()
LuaError: {'etype': 'connect_no_dev', 'msg': 'no matching device', 'traceback': '\nstack traceback:\n\t[C]: in function \'connect\'\n\t...on2.7/dist-packages/chdkptp/vendor/chdkptp/lua/chdku.lua:1510: in function \'connect\'\n\t...on2.7/dist-packages/chdkptp/vendor/chdkptp/lua/chdku.lua:1537: in function <...on2.7/dist-packages/chdkptp/vendor/chdkptp/lua/chdku.lua:1525>\n\t[C]: in function \'pcall\'\n\t[string "<python>"]:1: in function <[string "<python>"]:1>'}
@adongy
Copy link
Contributor

adongy commented Aug 3, 2015

No matching device: did you properly connect the camera? Can you connect to it with chdkptp cli?

On August 3, 2015 5:29:02 PM CEST, Mads Kjeldgaard [email protected] wrote:

Hey guys.

This error continuously happens to me on the CLI version. Any help on
what to do?
´´´
spreads encountered an error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/spreads/main.py", line
321, in main
run()
File "/usr/local/lib/python2.7/dist-packages/spreads/main.py", line
308, in run
args.subcommand(config)
File "/usr/local/lib/python2.7/dist-packages/spreads/cli.py", line 388,
in wizard
capture(config)
File "/usr/local/lib/python2.7/dist-packages/spreads/cli.py", line 340,
in capture
_trigger_loop()
File "/usr/local/lib/python2.7/dist-packages/spreads/cli.py", line 314,
in _trigger_loop
workflow.capture(retake=(char == 'r'))
File "/usr/local/lib/python2.7/dist-packages/spreads/workflow.py", line
104, in wrapped_func
func(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/spreads/workflow.py", line
928, in capture
util.check_futures_exceptions(futures)
File "/usr/local/lib/python2.7/dist-packages/spreads/util.py", line
119, in check_futures_exceptions
raise next(x for x in futures if x.exception()).exception()
LuaError: {'etype': 'connect_no_dev', 'msg': 'no matching device',
'traceback': '\nstack traceback:\n\t[C]: in function
'connect'\n\t...on2.7/dist-packages/chdkptp/vendor/chdkptp/lua/chdku.lua:1510:
in function
'connect'\n\t...on2.7/dist-packages/chdkptp/vendor/chdkptp/lua/chdku.lua:1537:
in function
<...on2.7/dist-packages/chdkptp/vendor/chdkptp/lua/chdku.lua:1525>\n\t[C]:
in function 'pcall'\n\t[string ""]:1: in function <[string
""]:1>'}
´´´


Reply to this email directly or view it on GitHub:
#209

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@ghost
Copy link
Author

ghost commented Aug 4, 2015

I tried the following chdkptp command and it seemed to stop the abovementioned error, now I just get the NoneType-error

___> connect
open_camera_dev_usb: ptp_opensession failed 0x2ff
open_camera_dev_usb:usb_ptp_device_reset(): Device or resource busy
usb_ptp_get_device_status(): Device or resource busy
connected: Canon PowerShot A1400, max packet size 512

@adongy
Copy link
Contributor

adongy commented Aug 4, 2015

Are you on ubuntu? If so try to kill gphoto before running the connect command

On August 4, 2015 3:16:50 PM CEST, Mads Kjeldgaard [email protected] wrote:

I tried the following chdkptp command and it seemed to stop the
abovementioned error, now I just get the NoneType-error

___> connect
open_camera_dev_usb: ptp_opensession failed 0x2ff
open_camera_dev_usb:usb_ptp_device_reset(): Device or resource busy
usb_ptp_get_device_status(): Device or resource busy
connected: Canon PowerShot A1400, max packet size 512

Reply to this email directly or view it on GitHub:
#209 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

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