Skip to content

Instantly share code, notes, and snippets.

@meawoppl
Created January 7, 2022 20:25
Show Gist options
  • Save meawoppl/e692ea8ee555c20009f32e89c2400fd5 to your computer and use it in GitHub Desktop.
Save meawoppl/e692ea8ee555c20009f32e89c2400fd5 to your computer and use it in GitHub Desktop.
main [2022-01-07 20:24:26,054] ERROR in app: Exception on /camera/snap [GET]
main Traceback (most recent call last):
main File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2070, in wsgi_app
main response = self.full_dispatch_request()
main File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1515, in full_dispatch_request
main rv = self.handle_user_exception(e)
main File "/usr/local/lib/python3.6/site-packages/flask_cors/extension.py", line 165, in wrapped_function
main return cors_after_request(app.make_response(f(*args, **kwargs)))
main File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1513, in full_dispatch_request
main rv = self.dispatch_request()
main File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1499, in dispatch_request
main return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
main File "/usr/src/app/tom/server.py", line 243, in _cam_snap
main raw_bytes = capture_frame(encoding="png")
main File "/usr/src/app/tom/camera.py", line 36, in capture_frame
main with PiCamera() as camera:
main File "/usr/lib/python3/dist-packages/picamera/camera.py", line 433, in __init__
main self._init_preview()
main File "/usr/lib/python3/dist-packages/picamera/camera.py", line 513, in _init_preview
main self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])
main File "/usr/lib/python3/dist-packages/picamera/renderers.py", line 558, in __init__
main self.renderer.inputs[0].connect(source).enable()
main File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2212, in enable
main prefix="Failed to enable connection")
main File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
main raise PiCameraMMALError(status, prefix)
main picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment