I have a Python file that calls the camera to take video when a motion sensor is triggered.
I am running it at startup using rc.local (I have the '&' at the end).
When I run it normally, it works fine, just not when I run it at boot.
I am getting this error:
picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources

OK, I fixed it. I hope this helps someone... I had used ~/path/to/file.py as the directory to which I wanted to store the footage taken by my Python code. I replaced this with absolute reference: /home/pi/path/to/file.py and that solved it.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.