picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources
Posted: Wed Dec 01, 2021 5:48 pm
I am trying to run the stereopi tutorial code 1_test.py. After running vcgencmd get_camera I get supported=2 detected=2, and I enabled cameras in raspi-config. I also ran sudo apt update and sudo apt upgrade and checked to make sure no other programs are using the camera. This error happens when I run the script, along with these messages before the final error code:
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))0x2665e40 (ENOSPC)
mmal: mmal_connection_enable: output port couldn't be enabled
Please advise.
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))0x2665e40 (ENOSPC)
mmal: mmal_connection_enable: output port couldn't be enabled
Please advise.