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.

Qtile Wayland don't start

See original GitHub issue

Issue description

qtile start -b wayland not initialize

Qtile version

0.18.2.dev54+g1da2e6a0 in Debian

Stack traces

Traceback (most recent call last): File “/usr/local/bin/qtile”, line 33, in sys.exit(load_entry_point(‘qtile==0.18.2.dev54+g1da2e6a0’, ‘console_scripts’, ‘qtile’)()) File “/usr/local/lib/python3.9/dist-packages/qtile-0.18.2.dev54+g1da2e6a0-py3.9-linux-x86_64.egg/libqtile/scripts/main.py”, line 61, in main options.func(options) File “/usr/local/lib/python3.9/dist-packages/qtile-0.18.2.dev54+g1da2e6a0-py3.9-linux-x86_64.egg/libqtile/scripts/start.py”, line 87, in start q = make_qtile(options) File “/usr/local/lib/python3.9/dist-packages/qtile-0.18.2.dev54+g1da2e6a0-py3.9-linux-x86_64.egg/libqtile/scripts/start.py”, line 50, in make_qtile kore = libqtile.backend.get_core(options.backend) File “/usr/local/lib/python3.9/dist-packages/qtile-0.18.2.dev54+g1da2e6a0-py3.9-linux-x86_64.egg/libqtile/backend/init.py”, line 15, in get_core return importlib.import_module(f"libqtile.backend.{backend}.core").Core(*args) File “/usr/lib/python3.9/importlib/init.py”, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “”, line 1030, in _gcd_import File “”, line 1007, in _find_and_load File “”, line 986, in _find_and_load_unlocked File “”, line 680, in _load_unlocked File “”, line 850, in exec_module File “”, line 228, in _call_with_frames_removed File “/usr/local/lib/python3.9/dist-packages/qtile-0.18.2.dev54+g1da2e6a0-py3.9-linux-x86_64.egg/libqtile/backend/wayland/core.py”, line 28, in import wlroots.helper as wlroots_helper ModuleNotFoundError: No module named ‘wlroots’

i have wlroots installed in /usr/lib/wlroots

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
flacjacketcommented, Nov 18, 2021

Ugh! So it looks like this might work if we add all of the cffi dependencies to setup_requires. Unfortunately, this then also means these packages are required for sdist, which should be able to just build the source and doesn’t need to have the dependencies, which would greatly complicate the release creating in github actions (not impossible to do, but would take a bit of work to get fixed up). There is some discussion that build_system is the replacement for setup_requires, but it looks like that gives the same error.

For now, if you re-install pywlroots, but first install cffi, pywayland, and xkbcommon, then it should work. Note that you might need to remove ~/.cache/pip so you re-download and rebuild the packages. We can move this issue over to the pywlroots repo.

1reaction
flacjacketcommented, Nov 20, 2021

Great! I was able to get a fix pushed into pywlroots and a new version cut, so this shouldn’t be a problem moving forward!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running Qtile as a Wayland Compositor
XWayland will be started the first time it is needed. XWayland windows sometimes don't receive mouse events¶. There is currently a known bug...
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 >
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 >
My Qtile startup issue on Wayland - Reddit
Hi Everyone, I'm installing Arch with Wayland and trying to launch Qtile from /etc/zsh/zprofile right after login: $ cat /etc/zsh/zprofile ...
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