NikeshNaidu
Posts: 1
Joined: Sun Jun 09, 2019 7:28 pm

picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources

Sun Jun 09, 2019 7:33 pm

using donkey version: 2.5.8 ...
/usr/lib/python3/dist-packages/h5py/__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
loading config file: /home/pi/mycar/config.py
config loaded
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))0x3979830 (ENOSPC)
mmal: mmal_connection_enable: output port couldn't be enabled
Traceback (most recent call last):
File "manage.py", line 176, in <module>
drive(cfg, model_path=args['--model'], use_joystick=args['--js'], use_chaos=args['--chaos'])
File "manage.py", line 44, in drive
cam = PiCamera(resolution=cfg.CAMERA_RESOLUTION)
File "/home/pi/env/lib/python3.5/site-packages/donkeycar/parts/camera.py", line 20, in __init__
self.camera = PiCamera() # PiCamera gets resolution (height, width)
File "/home/pi/env/lib/python3.5/site-packages/picamera/camera.py", line 433, in __init__
self._init_preview()
File "/home/pi/env/lib/python3.5/site-packages/picamera/camera.py", line 513, in _init_preview
self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])
File "/home/pi/env/lib/python3.5/site-packages/picamera/renderers.py", line 558, in __init__
self.renderer.inputs[0].connect(source).enable()
File "/home/pi/env/lib/python3.5/site-packages/picamera/mmalobj.py", line 2212, in enable
prefix="Failed to enable connection")
File "/home/pi/env/lib/python3.5/site-packages/picamera/exc.py", line 184, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources

Return to “Camera board”