FS#71804 - [qtile] Missing mandatory dependency on python-setuptools

Attached to Project: Community Packages
Opened by Audric Schiltknecht (Storm) - Wednesday, 11 August 2021, 23:53 GMT
Last edited by David Runge (dvzrv) - Monday, 20 September 2021, 18:29 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

On a fresh Archlinux install, installing the qtile package is not enough as it is missing a dependency on python-setuptools.

Additional info:
* package version(s): 0.18.0-2

Steps to reproduce:

- Remove any python-* packages from the system (or start on a fresh arch install).
- pacman -S qtile
- Launch qtile and the following error will occur:


```
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/libqtile/scripts/main.py", line 9, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/qtile", line 33, in <module>
sys.exit(load_entry_point('qtile==0.18.1.dev0+g8e7ecc0a.d20210719', 'console_scripts', 'qtile')())
File "/usr/bin/qtile", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/lib/python3.9/site-packages/libqtile/scripts/main.py", line 11, in <module>
except (pkg_resources.DistributionNotFound, ImportError):
NameError: name 'pkg_resources' is not defined
```
This task depends upon

Closed by  David Runge (dvzrv)
Monday, 20 September 2021, 18:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 0.18.1-2
Comment by David Runge (dvzrv) - Monday, 20 September 2021, 18:12 GMT
@Storm: Thanks for the report! Unfortunately I overlooked it when updating.

I will release a new version of the package soon.

Meanwhile I have also created an upstream ticket to resolve this issue (there are better ways than pkg_resources to get a module's version on newer Python versions).
https://github.com/qtile/qtile/issues/2809

Loading...