-
Notifications
You must be signed in to change notification settings - Fork 29
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
ImportError with ykman 5.0.0 #328
Comments
The ykman CLI project uses semantic versioning, and the major number increase from 4 to 5 signals backwards incompatible changes. yubikey-manager-qt requires ykman 4.x. and any packaging of the yubikey-manager-qt needs to ensure this. |
Any idea when this will be upgraded for ykman 5. This will be another blocker for Fedora. |
Hi, I can confirm that on Arch the Qt apps are broken. My relevant logs are:
This breaks yubikey-manager as well. It seems like the core problem is that the correct Python module can not be imported:
|
Seems to be the same thing as #320 . |
#320 occurs from misconfiguration of the Python environment, this issue occurs because of the incompatibility with the newly released ykman 5. |
Unfortunately I don't have a date for that, nothing scheduled right now. If I were to make a guess I'd say sometime in Q1 of next year, but don't hold me to that! |
While it doesn't solve the actual problem, creating a python virtual environment, installing yubikey-manager 4 and starting ykman-gui inside that environment, works for now:
For now I use the following script inside the venv to start ykman-gui:
|
Looking at https://github.com/archlinux/svntogit-community/commits/packages/yubikey-manager/trunk, Arch Linux downgraded the yubikey-manager package back to 4.0.9. This should fix the problem for Arch based distros for now. |
Hello, |
This issue should be closed as far as I understand. |
I still have the issues. |
Steps to reproduce
Install
ykman
5.0.0, then runykman-gui --log-level DEBUG
.Receive error:
ImportError: cannot import name 'connect_to_device' from 'ykman' (/usr/lib/python3.10/site-packages/ykman/__init__.py)
The GUI does appear, but no YubiKeys are detected.
Expected result
The YubiKeys are detected, and the manager functions as normal.
Additional Info
Works with
ykman
4.0.9, the version prior to the update to 5.0.0 on Arch Linux.The text was updated successfully, but these errors were encountered: