-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors installing v1.5 via pip on multiple distros #23
Comments
From the README:
So release 1.0.1 requires libxkbcommon-dev >= 1.0, release 1.5 requires libxkbcommon-dev >= 1.5, and so on. I don't know how to express this requirement in the If you don't use any features of releases 1.5 and 1.6 then it is safe to require <1.5 as you have done. |
Yeah, I saw that note, but the version of For now I've gone ahead and pinned At the moment I have no understanding of which distros and distro versions the 1.5 release would even work on. I'd have to try to test the version of I also have no clue if I would ever use features in 1.5 or later. I have only been using this module for accessing the list of keyboard layouts, and the keymaps. Don't really know much more about what this is for. The plan is to use the extracted keymaps to help an |
I think I'll have to address this with a documentation update, listing relevant versions of libxkbcommon and the API features introduced in them and recommending that people always specify a maximum version when depending on python-xkbcommon. For your case I'd recommend depending on If you are also using Ubuntu 20.04 has libxkbcommon-0.10 — I am surprised python-xkbcommon 1.0.1 still works on it, I removed ubuntu-20.04 from the CI after release 0.8!
I plan to maintain branches for 1.0, 1.5 and 1.6 going forward, at least until there are no supported distros left that have earlier libxkbcommon than 1.5. |
For those who read the documentation like they should, that would be good. Wouldn't have helped me, I didn't really expect this to be something that would change much. Shows what I know.
Sounds like a good idea. I'll do that. A lot of Linux users are stuck on LTS distros that probably won't be updating
OK, but I actually kind of had the opposite problem with Unless It is my current understanding that neither
That's... gonna be a while, I think. Thanks for the info. I should be good from now on, I hope. 👍🏽 |
You should be able to get the currently active layout for Wayland reasonably easily — the way keyboard handling works in Wayland clients is that the compositor passes the keymap to the client (by sending an fd for them to mmap), and the client then uses something like libxkbcommon to interpret the keymap and make sense of the keycodes being sent. There's an example of this in the demo app for my pure Python Wayland implementation but please don't base any new code on that — use pywayland instead if you want to go down that route. Under X, you would probably want to use |
I've released version 1.5.1 with the documentation update so it will show on the project page on pypi. I will hold off releasing version 1.6 because that will catch out even more people (it's only present in Ubuntu 24.04 as far as I can tell — Debian bookworm only has libxkbcommon-1.5). Let's give it six months to a year before a release... |
@sde1000 @flacjacket @mbey-mw
Somebody using a project of mine that installs
xkbcommon
in a Python virtual environment filed a report this morning about a weird installation error on Ubuntu 20.04. I was able to replicate on Ubuntu, and just kind of assumed thelibxkbcommon
on Ubuntu 20.04 was too old for the latestxkbcommon
release, even though that didn't make too much sense. So I pinned the version to something older for Ubuntu 20.04 and it started working again.But then I tested other distros and I've been running into the same error, where previously I was installing
xkbcommon
without any issue on distros as old as CentOS 7, as long as thelibxkbcommon
development package was installed.For now, I'm pinning the version to avoid the new 1.5 release.
This makes the install use the 1.0.1 version that was released on the same day. Yesterday.
https://pypi.org/project/xkbcommon/#history
Since I don't know exactly what is going wrong, I'm hesitant to rely on that. I'm thinking about pinning to the 1.0.1 release explicitly until I know more about the cause of this problem.
The error messages go like this, during installing packages in the
venv
withpip
.I have a wide selection of different distros I have to keep this working on, if I'm going to use this Python module. Just want to know what's happening here.
The text was updated successfully, but these errors were encountered: