PTPy -- Crashes waiting for events with Nikon D800 Camera


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/", line 810, in __bootstrap_inner
  File "/usr/lib/python2.7/", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/pi/github/sequoia-ptpy/ptpy/transports/", line 457, in __poll_events
    evt = self.__recv(event=True, wait=False, raw=True)
  File "/home/pi/github/sequoia-ptpy/ptpy/transports/", line 307, in __recv
  File "/usr/local/lib/python2.7/dist-packages/construct/", line 165, in parse
    return self.parse_stream(BytesIO(data), context, **kw)
  File "/usr/local/lib/python2.7/dist-packages/construct/", line 176, in parse_stream
    return self._parse(stream, context, "parsing")
  File "/usr/local/lib/python2.7/dist-packages/construct/", line 849, in _parse
    subobj = sc._parse(stream, context, path)
  File "/usr/local/lib/python2.7/dist-packages/construct/", line 2713, in _parse
    raise e.__class__("%s\n    %s" % (e, path))
FieldError: packer '<L' error during parsing
    parsing -> TransactionID


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.