Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOW-TO] install picamera2 on docker on ubuntu 24.04 on rapsberry pi 5 #1145

Open
MahmoudMoumni opened this issue Oct 28, 2024 · 3 comments
Open

Comments

@MahmoudMoumni
Copy link

Any idea how to install picamera2 on docker on ubuntu 24.04 installed on raspberry pi 5

I have a raspberry pi 5 , I installed ubuntu 24.04 on it, then I created a docker image with python 3.9.2 using for computer vision project (tensorflow, mediapipe,pyqt5...) everything is working fine, now I would like to read frames from picamera instead of usb camera ,but i cannot install picamera2 or even libcamera-dev , any idea how to do that please

I tried to install libcamera-dev but I get this : E: Unable to locate package libcamera-dev , you find attached the dockerfile used

Screenshot from 2024-10-28 15-33-03

@davidplowman
Copy link
Collaborator

Hi, I'm afraid I don't know anything about libcamera on Ubuntu. It might be worth asking on a Ubuntu forum?

If there is no libcamera package for Raspberry Pi on Ubuntu, you might want to consider building it for yourself? For example, although it was some time ago, there was a post about it here.

Sorry not to have better answers for you!

@MahmoudMoumni
Copy link
Author

MahmoudMoumni commented Oct 28, 2024 via email

@davidplowman
Copy link
Collaborator

I'm afraid your images aren't showing, so I can't tell exactly what errors you have. (Maybe just post text if they're text errors?)

I assume you installed libcamera as well, so that the .so files are on your system somewhere? Maybe check it's there and in the right place. Sometimes I find I need a sudo ldconfig when I rebuild and re-install stuff. Otherwise maybe try setting LD_LIBRARY_PATH - usually that shouldn't be necessary, but if something is a bit confused and it works, then it might be worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants