You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to run [email protected] in a docker container for the past week. The reason for using this specific version is that our project requires only picture captures from the camera to be sent to a server for vision modeling. We do not need streaming or video features (e.g., ffmpeg) and want to make it less footprint. Version 0.3.12 appears to be the latest stable version that does not depend on PyAV/ffmpeg. In addition, it is still the current version you can get when you apt install python3-picmaera2 from armhf package list(used on RPi zero).
To run this in an Alpine based container, I had to build nearly all dependencies from the source. The current error appears to be the final hurdle. From the error logs, the camera is detected, but the configuration fails. Upon looking at the line of the code, it seems to be a socket issue.
What I have done so far:
I can run [email protected] successfully in the host environment by installing the library via python3-picamera2. This uses the same versions of picamera2(0.3.12) and libcamera(v0.0.5+83-bde9b04f).
I tried to build it with Debian image and encountered the same result.
I tested it on RPi Zero, RPi 5 and RPI Zero2, the same result.
I can successfully build and run in a container using the same Docker build steps, but with the source updated to the latest version of picamera2 and libcamera.
Here are all the Dockerfiles and supporting files I used. Right now it works as expected with the latest source code hope it may help when this happens to other people.
The text was updated successfully, but these errors were encountered:
I've been trying to run
[email protected]
in a docker container for the past week. The reason for using this specific version is that our project requires only picture captures from the camera to be sent to a server for vision modeling. We do not need streaming or video features (e.g., ffmpeg) and want to make it less footprint. Version0.3.12
appears to be the latest stable version that does not depend on PyAV/ffmpeg. In addition, it is still the current version you can get when youapt install python3-picmaera2
from armhf package list(used on RPi zero).To run this in an Alpine based container, I had to build nearly all dependencies from the source. The current error appears to be the final hurdle. From the error logs, the camera is detected, but the configuration fails. Upon looking at the line of the code, it seems to be a socket issue.
What I have done so far:
python3-picamera2
. This uses the same versions of picamera2(0.3.12) and libcamera(v0.0.5+83-bde9b04f).Here are all the Dockerfiles and supporting files I used. Right now it works as expected with the latest source code hope it may help when this happens to other people.
The text was updated successfully, but these errors were encountered: