Qtile config broke

I just made an upgrade with

yay --noconfirm -v -Syu && sudo pacman --noconfirm -v -Sc && sudo pacman --noconfirm -v -Qtd

and my Qtile config broke.

I suppose it is related to a Qtile upgrade :

[2024-05-29T20:41:31+0200] [ALPM] upgraded qtile (0.25.0-2 -> 0.26.0-1)

Here is Qtile log:

2024-05-29 20:42:59,711 ERROR libqtile manager.py:load_config():L116 Configuration error:
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/libqtile/core/manager.py", line 113, in load_config
    self.config.load()
  File "/usr/lib/python3.12/site-packages/libqtile/confreader.py", line 134, in load
    config = importlib.import_module(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/home/crocefisso/.config/qtile/config.py", line 2, in <module>
    from modules.groups import groups
  File "/home/crocefisso/.config/qtile/modules/groups.py", line 4, in <module>
    from libqtile.command import lazy
ImportError: cannot import name 'lazy' from 'libqtile.command' (/usr/lib/python3.12/site-packages/libqtile/command/__init__.py)
2024-05-29 20:42:59,713 WARNING libqtile utils.py:send_notification():L297 dbus-next is not installed. Unable to send notifications.

How could I make my config work with the new upgrade (my config is just a variation of the config originally provided by EOS).

in ~/.config/qtile/modules/groups.py

replace

from libqtile.command import lazy

by

from libqtile.lazy import lazy

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.