Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873703 - sys-apps/polychromatic-0.7.3: does not respect PYTHON_SINGLE_TARGET
Summary: sys-apps/polychromatic-0.7.3: does not respect PYTHON_SINGLE_TARGET
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-30 20:57 UTC by Adel KARA SLIMANE
Modified: 2022-10-01 13:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adel KARA SLIMANE 2022-09-30 20:57:41 UTC
Hello,

I have to run polychromatic-controller with the EPYTHON=python3.10 env variable so it runs, otherwise I get this error:

```
Polychromatic's modules could not be imported.
Check all dependencies are installed, the Python environment variables are correct, or try re-installing the application.

Traceback (most recent call last):
  File "/usr/bin/polychromatic-controller", line 70, in <module>
    raise e
  File "/usr/bin/polychromatic-controller", line 59, in <module>
    import polychromatic.preferences as pref
ModuleNotFoundError: No module named 'polychromatic'
```

Thank you !

My python targets:

PYTHON_TARGETS="python3_9 python3_10 python3_11"
PYTHON_SINGLE_TARGET="python3_10"
Comment 1 Larry the Git Cow gentoo-dev 2022-10-01 13:50:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=254da9543809c022c09bb97cf6ee0f36422ef882

commit 254da9543809c022c09bb97cf6ee0f36422ef882
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2022-10-01 13:46:09 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2022-10-01 13:46:09 +0000

    sys-apps/polychromatic: proper handling of PYTHON_SINGLE_TARGET
    
    use python_doscript to install polychromatic-* scripts
    
    Closes: https://bugs.gentoo.org/873703
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 .../{polychromatic-0.7.3.ebuild => polychromatic-0.7.3-r1.ebuild}       | 2 ++
 sys-apps/polychromatic/polychromatic-9999.ebuild                        | 2 ++
 2 files changed, 4 insertions(+)