Just started to use the python picamera library on Raspberry.
The following simple script can be run only once, the second time it gives
the error:
PiCameraMMALError: Failed to enable connection: Out of resources
Just closing Spyder and opening it again let you to run it (once) again.
It seems that Spyder is not correctly closing the camera, am I right ?
Any idea ?
from picamera import PiCamera
from time import sleep
camera = PiCamera()
camera.start_preview()
sleep(5)
camera.capture('/home/pi/Desktop/image.jpg')
camera.stop_preview()
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/spyderlib/d92fdc10-58dc-4fa4-8f1c-8e46a9ac1edb%40googlegroups.com.