Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893220 - app-crypt/yubikey-manager-qt ~1.2.4 does not work with latest app-crypt/yubikey-manager ~5.x (as opposed to 4.x)
Summary: app-crypt/yubikey-manager-qt ~1.2.4 does not work with latest app-crypt/yubik...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-04 17:00 UTC by genBTC
Modified: 2023-02-13 09:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Emerge --info yubikey-manager yubikey-manager-qt (emerge-info-bug-Feb0423.txt,8.28 KB, text/plain)
2023-02-04 17:04 UTC, genBTC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description genBTC 2023-02-04 17:00:25 UTC
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.
Comment 1 genBTC 2023-02-04 17:04:20 UTC
Created attachment 849864 [details]
Emerge --info yubikey-manager yubikey-manager-qt

The packages listed are the working versions, since I revert to 4.x.
Comment 2 genBTC 2023-02-04 17:14:17 UTC
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.
Comment 3 genBTC 2023-02-04 17:21:26 UTC
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 :)
Comment 4 nvaert1986 2023-02-10 15:26:48 UTC
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.
Comment 5 Larry the Git Cow gentoo-dev 2023-02-13 09:26:02 UTC
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(-)