qtile: Qtile Wayland - unable to create allocator

The issue:

qtile version: 0.22.2.dev203+g42ed926a

When I try to start qtile ob wayland session I get this:

MESA-LOADER: failed to open iris: /usr/lib64/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open kms_swrast: /usr/lib64/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)
failed to load swrast driver
00:00:00.049 [render/allocator/gbm.c:198] gbm_create_device failed
00:00:00.049 [render/allocator/allocator.c:134] Failed to create allocator
Traceback (most recent call last):
  File "/usr/local/bin/qtile", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/libqtile/scripts/main.py", line 82, in main
    func(options)
  File "/usr/local/lib/python3.11/dist-packages/libqtile/scripts/start.py", line 88, in start
    q = make_qtile(options)
        ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/libqtile/scripts/start.py", line 51, in make_qtile
    kore = libqtile.backend.get_core(options.backend)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/libqtile/backend/__init__.py", line 15, in get_core
    return importlib.import_module(f"libqtile.backend.{backend}.core").Core(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/libqtile/backend/wayland/core.py", line 125, in __init__
    ) = wlroots_helper.build_compositor(self.display)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/wlroots/helper.py", line 30, in build_compositor
    allocator = Allocator.autocreate(backend, renderer)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/wlroots/allocator.py", line 25, in autocreate
    raise RuntimeError("Unable to create an allocator.")
RuntimeError: Unable to create an allocator.

and yet the issue is not completely the same as #4146 because there the creator of that issue had a wlroots folder in /usr/lib/python3.11/dist-packages directory, but i don’t have that. I only have that folder is /usr/local/lib/python3.11/dist-packages folder after I install the needed version of pywlroots How can I solve this?

Required:

  • I have searched past issues to see if this bug has already been reported.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 23 (5 by maintainers)

Most upvoted comments

Thanks. Could I close this or is there then still an issue?