Open bendi-github opened 6 months ago
I think perhaps we could use a requirements-wayland.txt? Or perhaps just a hard coded list in dev.sh.
In terms of missing libqtile
... that is strange. I guess virtualenv doesn't add PWD to the PYTHONPATH?
virtualenv
doesn't seem to add PWD
to PYTHONPATH
, I manually export PYTHONPATH
to get around missing libqtile
Regarding this issue:
ModuleNotFoundError: No module named 'wlroots'
:
ModuleNotFoundError: No module named 'libqtile'
:
PYTHONPATH
to contain the project root directory. You can do something like this export PYTHONPATH=$(pwd):$PYTHONPATH
Another issue you might encounter is missing headers when compiling the wayland backend, which currently can be solved by installing wlroots0.17
and updating the C and LD flags like so:
export CFLAGS="$CFLAGS -I/usr/include/wlroots0.17"
export LDFLAGS="$LDFLAGS -L/usr/lib/wlroots0.17"
The issue with using pywlroots from the venv is that sometimes it doesn't work and qtile won't start, I am not sure why but I fixed the issue by installing pywlroots from the package manager and creating the venv with --system-site-packages
to allow the venv to access system site-packaged dir.
This issue is stale because it has been open 90 days with no activity. Remove the status: stale
label or comment, or this will be closed in 30 days.
Issue description
Steps to reproduce:
git clone https://github.com/qtile/qtile.git
cd qtile
./dev.sh
. venv/bin/activate
As far as I understand this should have set up my development environment. Expected behavior: The following commands do not fail.
Observed behavior:
When
pywlroots
is manually installedpip install pywlroots
(in venv), the error changes toAs is evident from my prompt, I am running the scripts from the root directory of the project.
System: Arch Linux x86_64 Wayland compositor: Hyprland Kernel: 6.9.2-arch1-1 System python version: Python 3.12.3 Shell used for testing: bash
4225 also seems to have issues with the development environment
Version
N/A
Backend
Wayland (experimental)
Config
No response
Logs
No response
Required