The recent upgrade to 5.x bricked the QT GUI version of the package. The 5.x python libraries are too different, seems like, and the QT GUI is expecting stuff that doesnt exist. Reverting fixes it. genr8eofl@genr8too ~ $ ykman-gui "PyOtherSide error: Traceback (most recent call last):\n\n File \"qrc:///py/yubikey.py\", line 26, in <module>\n from ykman import connect_to_device, scan_devices, get_name\n\nImportError: cannot import name 'connect_to_device' from 'ykman' (/usr/lib/python3.10/site-packages/ykman/__init__.py)\n" qml: Cannot import module: yubikey (Traceback (most recent call last): File "qrc:///py/yubikey.py", line 26, in <module> from ykman import connect_to_device, scan_devices, get_name ImportError: cannot import name 'connect_to_device' from 'ykman' (/usr/lib/python3.10/site-packages/ykman/__init__.py) ) Reproducible: Always Steps to Reproduce: 1. emerge =yubikey-manager-5.0.1 2. emerge =yubikey-manager-qt-1.2.4 3. ykman-gui #from X Actual Results: "Please Insert Yubikey" is displayed on the GUI and a traceback from failure to import python module in the console. The yubikey GUI should match the backend libs it supports. Somehow it does not. Until we can figure out if a new version of the GUI exists to match the new python, this combination is bugged.
Created attachment 849864 [details] Emerge --info yubikey-manager yubikey-manager-qt The packages listed are the working versions, since I revert to 4.x.
The upgrade path to a fix may be as straightforward as this, which was just released. https://github.com/Yubico/yubikey-manager-qt/releases/tag/yubikey-manager-qt-1.2.5 Version 1.2.5 (released 2023-02-02) Compatibility update for ykman 5.0.1. Update to Python 3.11.
After locally bumping the 1.2.4 to 1.2.5 (and changing the 4.0.0 dep inside to 5.0.0) I can confirm the GUI package is back to working again. So I think its as simple as that :)
I have the exact same issue. This is resolved by upgrading to 1.2.5. I've tried downloading the 1.2.4 source from GitHub and it throws me the exact same error. Using the 1.2.5 source from GitHub resolves the error, so please update the package to version 1.2.5, which was released a couple of days ago.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e1e2f5ef17116276f153056016cd35338fdfc66 commit 2e1e2f5ef17116276f153056016cd35338fdfc66 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2023-02-13 09:19:10 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2023-02-13 09:25:45 +0000 app-crypt/yubikey-manager-qt: add 1.2.5, drop 1.2.4 Closes: https://bugs.gentoo.org/893220 Signed-off-by: Marek Szuba <marecki@gentoo.org> app-crypt/yubikey-manager-qt/Manifest | 2 +- ...{yubikey-manager-qt-1.2.4.ebuild => yubikey-manager-qt-1.2.5.ebuild} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)