-
Notifications
You must be signed in to change notification settings - Fork 188
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
[BUG] pip install picamera2 ignores NOGUI flag #184
Comments
(best guess on why the process is being killed: out of memory) |
Same here, did try to install pyqt5 alone but no luck, it ran out of memory on RPI 4 |
@d-weber Same and same. Would love to bypass PyQt altogether. |
This makes absolutely no sense to me considering this line seems to evaluate the
but then I run
It shouldn't be picking up PyQt5, but it is. |
Thanks for reporting this, which I can also replicate. I've had a look into it and it seems due to wheel files (.whl) not actually executing/containing the code from setup.py. I'll look into ways to fix this. |
I think a quick way around this is to install the dependencies directly and then install picamera2 with the
|
I spent more time than I care to admit yesterday figuring out which of
these packages are on conda-forge (piexif, pillow, and simplejpeg), but
yeah that’s exactly what I ended up doing and it works perfectly on my
raspberry pi 3b+.
On Thu, Jun 30, 2022 at 18:13 jack-solomomo ***@***.***> wrote:
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).
pip install PiDNG piexif pillow simplejpeg v4l2-python3 python-prctl
pip install --no-deps picamera2
—
Reply to this email directly, view it on GitHub
<#184 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABBB6IE2ANFCHKJFXBMEN3VRYLYNANCNFSM52DD2JRA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
iPhone’d
|
thanks, this worked for no GUI installation (Bullseye, RPI 4, 64 bits) |
I've posted a new release of Picamera2 that by default does not install the "gui dependencies" (PyQt5 and pyopengl). If you do want them, either install them directly (for example I think the resolves the issue raised here, but if anything else comes up please feel free to raise a new issue. Thanks! |
Describe the bug
When trying to install picamera2 via
pip
without GUI components, I entered the command exactly as indicated in the instructions:but the procedure still tries to install PyQt5, which results in the entire process hanging and being killed by the OS.
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
, andnumpy
; everything else waspip
orapt
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 viaapt
, 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.
The text was updated successfully, but these errors were encountered: