Closed SortedShuffle closed 7 months ago
I guess the libxkbcommon-devel package is missing. What's the result of
zypper search -i libxkbcommon
In addition, you're using the virtual environment not correctly. If you created the virtual environment in .venv
you'll have to activate it:
source .venv/bin/activate
After the activation, you can use pip
without the .venv/bin
path:
pip install pywlroots
Complete, minimal example how to create a venv and install pywlroots:
mkdir test-pywlr
cd test-pywlr
python -m venv .venv
source .venv/bin/activate
pip install pywlroots
Thank you for helping me out.
zypper search -i libxkbcommon
returns:
linux@localhost:~/git/qtile> sudo zypper search -i libxkbcommon
[sudo] password for root:
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
---+------------------------------------+-----------------------------------------------------+--------
i | libxkbcommon-devel | Development files for the libxkbcommon library | package
i+ | libxkbcommon-tools | Utilities from xkbcommon | package
i | libxkbcommon-tools-bash-completion | Bash completion for libxkbcommon-tools | package
i | libxkbcommon-x11-0 | Library for handling xkb descriptions using XKB-X11 | package
i | libxkbcommon0 | Library for handling xkb descriptions | package
By activating and using the environment correctly nothing changes. The error persists.
Which SUSE version do you use?
I am using opensuse Tumbleweed.
linux@localhost:~> cat /etc/os-release
NAME="openSUSE Tumbleweed"
#VERSION="20240329"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20240329"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
#CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:0:opensuse: tumbleweed:20240329:*:*:*:*:*:*:*
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse: tumbleweed:20240329"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
opensuse Tumbleweed.
Thanks. I can confirm the issue, I just installed Tumbleweed in a VM and I get the same error.
Unfortunately, I'm not familiar with OpenSUSE Tumbleweed, so I can't really help you.
I think the python-xkbcommon project is the right contact for the problem, because the installation (without Qtile and without pywlroots and without pywayland) of
pip install xkbcommon
fails.
Does Tumbleweed perhaps have a package like python3-xkbcommon
that you can install globally with zypper
so that the lib no longer needs to be installed with pip?
Sorry I can't help, but I would have to spend too much time getting to grips with OpenSUSE.
Super! Thank you for your time and help! I will try asking python-xkbcommon. Have a great Sunday.
No problem.
Please close the issue here, this seems to be an OpenSuse issue that does not directly affect pywlroots, if I understood https://github.com/sde1000/python-xkbcommon/issues/18 correctly.
Linking /usr/include/libxkbcommon/xkbcommon
to /usr/include/xkbcommon
solved the issue.
Have a great day!
Hello, thank you for making such a great project open source! I have an issue when installing
pywlroots
on OpenSuse. I've succsessfully installed the py packagescffi
,cairocffi
and librarieslibwlroots
,libwlroots-devel
,libxkbcommon
andlibxkbcommon-devel
. I've installed the package inside a virtual environment and get the following error:I suppose it its a linking problem but I am unable to find the correct solution. Thank you for your help.