Open neuron-whisperer opened 6 days ago
Hey, I think best would be to use the venv as you were trying earlier but allow the venv access to the system packages:
https://docs.python.org/3/library/venv.html#creating-virtual-environments
Check out the --system-site-packages
flag.
If you plan using numpy in your venv you might need to pin the last v1 numpy version. If you need numpy >2, also install simplejpeg in your venv as the system packages are quite outdated and saving images with picamera2 fails otherwise.
Maybe this could be addressed by updating the system packages in the OS in the future?
Please only report one bug per issue!
Describe the bug
Installing picamera2 installs PyQt5, contrary to the instructions.
To Reproduce
python -m pip install picamera2 or some variant thereof.
Expected behaviour
The install instructions read as follows:
I am trying to install this package on a Raspberry Pi 5 running 64-bit Bookworm Lite without any windowed GUI. I installed Python 3.8.19 via pyenv (since I intend to run pygame), upgraded the OS and pip, and then found that picamera2 is not available. I followed the apt install instructions, which succeeded, but picamera2 was still not available in Python. So I tried following the above instructions to install picamera2 without GUI stuff, and it did this:
...which is clearly installing PyQt5 contrary to the install instructions.
Console Output, Screenshots
See above.
Hardware :
Raspberry Pi 5 8GB with Raspberry Pi Camera Module 3 connected.
Additional context
n/a