Skip to content
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

"No backends available" if colour cannot be imported #437

Open
xgqt opened this issue Sep 24, 2022 · 1 comment
Open

"No backends available" if colour cannot be imported #437

xgqt opened this issue Sep 24, 2022 · 1 comment
Labels
backend Backend module or new integration feedback Opinion and thoughts to be taken on-board

Comments

@xgqt
Copy link

xgqt commented Sep 24, 2022

While packaging Polychromatic for Gentoo I stumpled upon this weird interaction:
if colour cannot be imported Polychromatic will claim there are no backends available.

It is a very confusing interaction but not a critical bug.

2022 09 25_01:11:59

@xgqt xgqt added the bug Faults with Polychromatic itself label Sep 24, 2022
@lah7 lah7 added feedback Opinion and thoughts to be taken on-board and removed bug Faults with Polychromatic itself labels Sep 24, 2022
@lah7
Copy link
Member

lah7 commented Sep 24, 2022

The technical reason is that the colour library is used in polychromatic.fx, which is only imported when importing polychromatic.backends.openrazer. polychromatic.fx is used for manipulating colours for software effects.

It's sort of a bug but also sort of by design. 🤔 The program tries to gracefully import our backends.openrazer module, and assumes OpenRazer is missing when openrazer.client is unimportable. Other dependencies are caught in that assumption if they can't be imported (like colour).

I'll bear this in mind as I have some thoughts to improve the "integration" handling at some point.

@lah7 lah7 changed the title Minor logic bug: if colour cannot be imported Polychromatic will claim there are no backends available "No backends available" if colour cannot be imported Sep 24, 2022
@lah7 lah7 added the backend Backend module or new integration label Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend module or new integration feedback Opinion and thoughts to be taken on-board
Projects
None yet
Development

No branches or pull requests

2 participants