Picamera python code mmal out of resoures -
recently changed picamera because old 1 doesn't work. new picamera makes error when use python code.
import picamera cam = picaemr.picamera() cam.capture() print("captured")
mmal: mmal_vc_port_enable: failed enable port vc.null_sink:in:0(opqv): enospc mmal: mmal_port_enable: failed enable connected port (vc.null_sink:in:0(opqv))0x804fc0 (enospc) mmal: mmal_connection_enable: output port couldn't enabled traceback (most recent call last): file "cameratest.py", line 3, in cam = picamera.picamera() file "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 433, in init self._init_preview() file "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 513, in _init_preview self, self._camera.outputs[self.camera_preview_port]) file "/usr/lib/python2.7/dist-packages/picamera/renderers.py", line 558, in init self.renderer.inputs[0].connect(source).enable() file "/usr/lib/python2.7/dist-packages/picamera/mmalobj.py", line 2212, in enable prefix="failed enable connection") file "/usr/lib/python2.7/dist-packages/picamera/exc.py", line 184, in mmal_check raise picamerammalerror(status, prefix) picamera.exc.picamerammalerror: failed enable connection: out of resources
so updated firmware , enabled camera. checked connector , connector no problem. camera`s led off. please me...
Comments
Post a Comment