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

its not working - what is wrong? #15

Open
Stb1976 opened this issue Sep 5, 2021 · 3 comments
Open

its not working - what is wrong? #15

Stb1976 opened this issue Sep 5, 2021 · 3 comments

Comments

@Stb1976
Copy link

Stb1976 commented Sep 5, 2021

mmal: mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC
mmal: mmal_port_enable: failed to enable connected port (vc.null_sink:in:0(OPQV))0x1937060 (ENOSPC)
mmal: mmal_connection_enable: output port couldn't be enabled
Traceback (most recent call last):
File "/home/pi/pi-camera-stream-flask/main.py", line 12, in
pi_camera = VideoCamera(flip=False) # flip pi camera if upside down.
File "/home/pi/pi-camera-stream-flask/camera.py", line 13, in init
self.vs = PiVideoStream().start()
File "/usr/local/lib/python3.7/dist-packages/imutils/video/pivideostream.py", line 10, in init
self.camera = PiCamera()
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 433, in init
self._init_preview()
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 513, in _init_preview
self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])
File "/usr/lib/python3/dist-packages/picamera/renderers.py", line 558, in init
self.renderer.inputs[0].connect(source).enable()
File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2212, in enable
prefix="Failed to enable connection")
File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources
Exception ignored in: <function VideoCamera.del at 0xac399228>
Traceback (most recent call last):
File "/home/pi/pi-camera-stream-flask/camera.py", line 18, in del
self.vs.stop()
AttributeError: 'VideoCamera' object has no attribute 'vs'

Please help.

@EricMittag
Copy link

I had the same issue. My problem was that I forgot to turn on the camera interface in the Interfacing Options with 'sudo raspi-config'

@AokiAhishatsu
Copy link

AokiAhishatsu commented Nov 17, 2021

turn on the camera interface in the Interfacing Options with 'sudo raspi-config'

This should be in the readme

@Adnan4290
Copy link

I have the same issue but turning on the camera doesn't work, maybe it is for debian 10 version of pi OS?

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

4 participants