• Status Assigned
  • Percent Complete
  • Task Type Bug Report
  • Category Packages
  • Assigned To No-one
  • Operating System pentium4
  • Severity High
  • Priority Very Low
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Arch Linux 32
Opened by Konomi - 26.09.2022
Last edited by Andreas Baumann - 30.09.2022

FS#294 - [qtile] importlib.metadata.PackageNotFoundError: No package metadata was found for qtile

When running qtile I get the following error message:

[qtile] importlib.metadata.PackageNotFoundError: No package metadata was found for qtile

Running qtile on Arch Linux works as expected.

$ qtile start
Traceback (most recent call last):
  File "/usr/bin/qtile", line 33, in <module>
    sys.exit(load_entry_point('qtile==0.18.1', 'console_scripts', 'qtile')())
  File "/usr/bin/qtile", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 957, in distribution
    return Distribution.from_name(distribution_name)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 548, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for qtile
$ pacman -Qi qtile
Name            : qtile
Version         : 0.18.1-3.0
Description     : A full-featured, pure-Python tiling window manager
Architecture    : pentium4
URL             : http://www.qtile.org
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : gdk-pixbuf2  glibc  libnotify  librsvg  pango  python-cairocffi  python-cffi  python-xcffib  python-gobject  python-setuptools
Optional Deps   : alsa-utils: for volume widget
                  canto-daemon: for canto widget
                  cmus: for cmus widget
                  jupyter_console: for interaction with qtile via Jupyter
                  khal: for khal_calendar widget
                  libpulse: for pulse_volume and pulseaudio_ffi widget [installed]
                  lm_sensors: for sensors widget [installed]
                  moc: for moc widget
                  python-dbus-next: for utils, notifications and several widgets
                  python-iwlib: for wlan widget
                  python-keyring: for imapwidget widget
                  python-mpd2: mpd2widget widget
                  python-psutil: graph, net and memory widget [installed]
                  python-pywlroots: for experimental wayland support
                  python-setproctitle: change process name to qtile
                  python-xdg: launchbar widget
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 3.25 MiB
Packager        : Andreas Baumann <mail@andreasbaumann.cc>
Build Date      : Mon 04 Oct 2021 12:02:58
Install Date    : Mon 26 Sep 2022 13:33:45
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature
$ sudo pacman -Syu
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
:: Starting full system upgrade...
 there is nothing to do
Average Linux Fan commented on 28.09.2022 12:34

I think this is some python stuff , so lets see for a new version of qtile and try to build it otherwise a python library is problematic so lets seeā€¦

Andreas Baumann commented on 30.09.2022 08:27

The foreign function interface is old? Or python is build against an old version
of libffi, or modules are not in sync with either or both:

ERROR Missing dependencies:
        cairocffi[xcb] >= 0.9.0
Andreas Baumann commented on 30.09.2022 08:31

Let's first rebuild python-xcffib: this results in trouble in Haskell (which
is completely broken since quite a while):

which: no parallel in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
xcffibgen --input //usr/share/xcb --output ./xcffib
xcffibgen: error while loading shared libraries: libHScontravariant-1.5.3-KWoYE9wiUjmElzHNq2wj10-ghc8.10.5.so: cannot open shared object file: No such file or directory
make: *** [Makefile:16: xcffib] Error 127

usr/bin/xcffibgen is owned by community/haskell-xcffib 0.11.1-176

Andreas Baumann commented on 30.09.2022 08:33

So either you have to fix the whole Haskell universe (which involves bootstrapping
the Haskell compiler from older versions, there is a bug report, I utterly failed
in the end). Or we can maybe build qtile without ffi interfaces for python/haskell..


Available keyboard shortcuts


Task Details

Task Editing