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

capture of a jpeg with resize and splitter port to a stream fails #344

dneunkirch opened this issue Nov 1, 2016 · 1 comment


Copy link

dneunkirch commented Nov 1, 2016

In my script for motion detection fails the capture method ( not reproducible (invoked successful over 10000 times).

stream = io.BytesIO()
camera.capture(stream, format='jpeg', resize=(192, 108), splitter_port=3, use_video_port=True)
File "build/bdist.linux-armv6l/egg/picamera/", line 1383, in capture
File "build/bdist.linux-armv6l/egg/picamera/", line 1024, in start
     super(PiCookedOneImageEncoder, self).start(output)
File "build/bdist.linux-armv6l/egg/picamera/", line 395, in start
File "build/bdist.linux-armv6l/egg/picamera/", line 503, in _start_capture
     len([e for e in self._encoders.values() if]) == 1):
File "build/bdist.linux-armv6l/egg/picamera/", line 376, in active
     return bool(self.output_port and self.output_port.enabled)

AttributeError: 'NoneType' object has no attribute 'enabled'


  • picamera version 1.12 (master)
  • camera board v1
  • on different raspberries:
  • 4.4.20-v7+ #908 SMP Wed Sep 7 14:44:27 BST 2016 armv7l GNU/Linux
  • 4.4.20+ #908 Wed Sep 7 14:35:04 BST 2016 armv6l GNU/Linux
  • 4.4.20-v7+ #909 SMP Tue Sep 13 16:59:08 BST 2016 armv7l GNU/Linux

I'm sorry that I don't have more informations.

I got just an other error (also thrown at the capture method):

File "build/bdist.linux-armv6l/egg/picamera/", line 1388, in capture
    'Timed out waiting for capture to end')

PiCameraRuntimeError: Timed out waiting for capture to end
Copy link

Hmm, that's a race condition (which is why it's showing up extremely rarely). I'll see what I can do about getting that fixed in 1.13

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

No branches or pull requests

2 participants