PTPy -- Crashes waiting for events with Nikon D800 Camera


#1

Getting config files and triggering captures works properly with the camera, but when calling camera.event() I get the following error (after capturing an image).

Exception in thread EvtPolling:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/pi/github/sequoia-ptpy/ptpy/transports/usb.py", line 457, in __poll_events
    evt = self.__recv(event=True, wait=False, raw=True)
  File "/home/pi/github/sequoia-ptpy/ptpy/transports/usb.py", line 307, in __recv
    bytearray(usbdata[0:self.__Header.sizeof()])
  File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 165, in parse
    return self.parse_stream(BytesIO(data), context, **kw)
  File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 176, in parse_stream
    return self._parse(stream, context, "parsing")
  File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 849, in _parse
    subobj = sc._parse(stream, context, path)
  File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 2713, in _parse
    raise e.__class__("%s\n    %s" % (e, path))
FieldError: packer '<L' error during parsing
    parsing -> TransactionID

#2

Hi @aaronhourie,

The Sequoia category in the Developers Forum is meant for discussion related to the Sequoia camera itself.

I would suggest using the PTPy repository on GitHub directly for bug reports, issues or questions concerning PTPy or its usage outside of Sequoia.


#3