Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881851 - dev-python/python-xlib-0.32: uses python[tk] but does not depend on it (was: media-gfx/ueberzug-18.1.9-r1 missing required use dev-lang/python[tk])
Summary: dev-python/python-xlib-0.32: uses python[tk] but does not depend on it (was: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://github.com/python-xlib/python...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-19 04:12 UTC by ktoupt
Modified: 2022-11-28 05:33 UTC (History)
1 user (show)

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 ktoupt 2022-11-19 04:12:13 UTC
Before emerging dev-lang/python[tk], this is the error I got:

$ ueberzug layer
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.10/ueberzug", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/ueberzug/__main__.py", line 55, in main
    module.main(options)
  File "/usr/lib/python3.10/site-packages/ueberzug/layer.py", line 204, in main
    display = xutil.get_display()
  File "/usr/lib/python3.10/site-packages/ueberzug/xutil.py", line 60, in get_display
    return Xdisplay.Display()
  File "/usr/lib/python3.10/site-packages/Xlib/display.py", line 120, in __init__
    __import__('Xlib.ext.' + modname)
  File "/usr/lib/python3.10/site-packages/Xlib/ext/randr.py", line 37, in <module>
    from tkinter import W
ModuleNotFoundError: No module named 'tkinter'
Comment 1 Ionen Wolkens gentoo-dev 2022-11-19 04:31:06 UTC
ueberzug doesn't use tk at all, comes from python-xlib as shown in:

 File "/usr/lib/python3.10/site-packages/Xlib/ext/randr.py", line 37, in <module>
    from tkinter import W

ueberzug works just fine without tk when using python-xlib-0.31, looks new in python-xlib-0.32
Comment 2 Ionen Wolkens gentoo-dev 2022-11-19 04:49:26 UTC
Albeit I kind of wonder what python-xlib is even using it for here..? Seems useless and works fine if just remove the import line.
Comment 3 Ionen Wolkens gentoo-dev 2022-11-19 08:25:33 UTC
(In reply to Ionen Wolkens from comment #2)
> Albeit I kind of wonder what python-xlib is even using it for here..? Seems
> useless and works fine if just remove the import line.
Was thinking to go report it myself but it's already been done, updating $URL
Comment 4 Larry the Git Cow gentoo-dev 2022-11-28 05:33:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02e6af52390f16a3f7b25744de303a0e69d724e3

commit 02e6af52390f16a3f7b25744de303a0e69d724e3
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-11-28 05:22:54 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-11-28 05:23:12 +0000

    dev-python/python-xlib: fix with python[-tk]
    
    Closes: https://bugs.gentoo.org/881851
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../files/python-xlib-0.32-drop-unused-tkinter-import.patch      | 9 +++++++++
 .../{python-xlib-0.32.ebuild => python-xlib-0.32-r1.ebuild}      | 4 ++++
 2 files changed, 13 insertions(+)