question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Wayland] Qtile wayland not launch

See original GitHub issue

The issue:

qtile -v 0.21.1.dev75+g6620786f

When I want to start qtile with the command start -b wayland it gives me the following error

failed to load driver: radeonsi
MESA-LOADER: failed to open kms_swrast: /usr/lib64/dri/kms_swrast_dri.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio (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: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio (search paths /usr/lib64/dri, suffix _dri)
failed to load swrast driver
00:00:00.019 [render/allocator/gbm.c:198] gbm_create_device failed
00:00:00.019 [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.10/dist-packages/libqtile/scripts/main.py", line 66, in main
    options.func(options)
  File "/usr/local/lib/python3.10/dist-packages/libqtile/scripts/start.py", line 88, in start
    q = make_qtile(options)
  File "/usr/local/lib/python3.10/dist-packages/libqtile/scripts/start.py", line 51, in make_qtile
    kore = libqtile.backend.get_core(options.backend)
  File "/usr/local/lib/python3.10/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.10/dist-packages/libqtile/backend/wayland/core.py", line 119, in __init__
    ) = wlroots_helper.build_compositor(self.display)
  File "/usr/local/lib/python3.10/dist-packages/wlroots/helper.py", line 30, in build_compositor
    allocator = Allocator.autocreate(backend, renderer)
  File "/usr/local/lib/python3.10/dist-packages/wlroots/allocator.py", line 25, in autocreate
    raise RuntimeError("Unable to create an allocator.")
RuntimeError: Unable to create an allocator.

Looking for bugs in this comment https://github.com/qtile/qtile/issues/3654#issuecomment-1173020406 told me to try this command

pipx inject --pip-args "--no-binary :all: --no-cache-dir" qtile pywlroots

with which I was able to get qtile working on wayland, but pipx installs version 0.21.0 not the dev version.

Required:

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

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
m-colcommented, Oct 28, 2022

Is this the same issue as described here?: https://github.com/qtile/qtile/issues/3756#issuecomment-1250114832

0reactions
3nprobcommented, Aug 8, 2022

So how did try my advice to pipx install from master instead? You shouldn’t need to do either the inject or the copy, really.

Which distro and architecture are you on?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running Qtile as a Wayland Compositor
root: True if this class accepts a "naked" specification without an item seletion (e.g. "layout" defaults to current layout), and False if it...
Read more >
Can't start the Qtile session with Wayland - EndeavourOS Forum
As soon as I enter my password and login, I am logged out back to the login screen. Let me know if you...
Read more >
Signal-desktop with wayland flags does not open · Issue #2835
It does when using sway (It actually is native wayland, verified with xeyes so it's not because of a lack of Xwayland support...
Read more >
My Qtile startup issue on Wayland - Reddit
I'm installing Arch with Wayland and trying to launch Qtile from /etc/zsh/zprofile ... First, I assumed wlroots is not installed, but it is:...
Read more >
[SOLVED] can't run qtile as a wayland compositor: libseat
I am using greetd, and replacing $SHELL with "qtile start -b wayland" results in the same error message, except then I'm not even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found