[SUGGESTION] Make optional GUI dependencies actually optional
See original GitHub issueHi, I am trying to use picamera2 with poetry (the package manager), but GUI dependencies are brought in and failed at installation saying there is no valid version for the qt5 deps. This issue happens because there is no precompiled wheel for those for the aarch64 architecture if I understand correctly.
I’ve seen in the readme that removing the GUI dependencies can be done by setting the NOGUI environment variable, but this does not seem to work when using the poetry package manager. However, I know that poetry support optional dependencies since I could specify some for my tinyrpc dependency as such:
tinyrpc = {extras = ["gevent", "wsgi", "httpclient"], version = "^1.1.5"}
I’m not super familiar with all the complexities of how python packaging work, but could it be possible to make the GUI dependencies of picamera2 optional in the same way?
PS: I’m not trying to add support for the qt5 deps, I just don’t need them since I want to control the camera remotely.
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top GitHub Comments
We’ve altered it now so that picamera2 doesn’t install GUI dependencies by default, and you specify picamera2[gui] to install them. (This is in branch ‘next’ but should be merged into ‘main’ soon and then into PyPi)
Awesome! I can confirm it’s working now for me with version 0.3.2