question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[SUGGESTION] Make optional GUI dependencies actually optional

See original GitHub issue

Hi, 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:closed
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
chrisrukcommented, Aug 18, 2022

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)

0reactions
mpizenbergcommented, Aug 22, 2022

Awesome! I can confirm it’s working now for me with version 0.3.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - How do optional compile-time dependencies work?
Optional dependencies are used when it's not possible (for whatever reason) to split a project into sub-modules.
Read more >
Help packaging optional application features, using extras?
Make some features optional (e.g. I provide a CLI tool for ... extras are really just (more or less) groups of optional dependencies....
Read more >
Optional package dependencis? - Unity Forum
unity.mathematics doesn't get added as a dependency so I can't actually access it. I can manually set it as a dependency, but then...
Read more >
Maven – Optional Dependencies and Dependency Exclusions
This section discusses optional dependencies and dependency exclusions. This will help users to understand what they are and when and how to use...
Read more >
node.js - Optional dependencies in npm?
I don't want to make them download and install libraries they won't be using. I know I can do that for development purposes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found