[BUG] pip install picamera2 ignores NOGUI flag
See original GitHub issueDescribe the bug
When trying to install picamera2 via pip
without GUI components, I entered the command exactly as indicated in the instructions:
NOGUI=1 pip install picamera2
but the procedure still tries to install PyQt5, which results in the entire process hanging and being killed by the OS.
Collecting PyQt5
Using cached PyQt5-5.15.7.tar.gz (3.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... \ Killed
which means picamera2 is never installed.
To Reproduce See above.
Expected behaviour
I’d expect PyQt5 not to be installed at all, given the presence of the NOGUI=1
flag.
Console Output, Screenshots
Hardware : I am using a Raspberry Pi 3B+ with a Camera Module V2 NoIR attached. I’m running Debian GNU/Linux 11 (bullseye) aarch64.
Additional context
I don’t know if this is relevant, but you’ll notice from the screenshot that I have set up a conda/mamba environment (micromamba, specifically). The only relevant packages installed via conda that are being used in the picamera2 installation process are python
, pip
, and numpy
; everything else was pip
or apt
installed as per the instructions. I don’t know if this could potentially cause conflicts–the one in particular I’m concerned with is the fact that OpenCV was installed via apt
, but can be imported in the base environment without issues–but I don’t really see how it would cause the wheels to ignore the NOGUI flag.
I saw that #124 seemed to have done exactly this in making PyQt optional, but I can’t seem to get that behavior to work.
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top GitHub Comments
I think a quick way around this is to install the dependencies directly and then install picamera2 with the
--no-deps
pip flag. This is working for me (RPi4, raspberry pi os bullseye, connected via ssh and capturing images to file).thanks, this worked for no GUI installation
(Bullseye, RPI 4, 64 bits)