Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 932756

Summary: app-crypt/yubikey-manager-qt-1.2.5: Fails to recognize YubiKey w/ app-crypt/yubikey-manager: NameError: name 'yubikey' is not defined
Product: Gentoo Linux Reporter: Dan Arnold <dan.arnold>
Component: Current packagesAssignee: David Seifert <soap>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein, marecki, soap, spm
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/Yubico/yubikey-manager-qt/issues/364
https://github.com/Yubico/yubikey-manager-qt/pull/371
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Dan Arnold 2024-05-25 23:57:36 UTC
Created attachment 894398 [details]
emerge --info

Since upgrading my Gentoo system to Python 3.12, ykman-gui does not recognize my YubiKey and instead prints repeatedly:

NameError: name 'yubikey' is not defined
)
qml: qrc:/qml/YubiKey.qml:208: TypeError: Cannot read property 'success' of undefined
"PyOtherSide error: Traceback (most recent call last):\n\n  File \"<string>\", line 1, in <module>\n\nNameError: name 'yubikey' is not defined\n"
qml: Function not found: 'yubikey.controller.refresh' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

Before the Python 3.12 upgrade, it worked without issue.

Python 3.12 will become the default in 1 week: https://www.gentoo.org/support/news-items/2024-05-09-python3-12.html

$ eix yubikey-manager-qt
[I] app-crypt/yubikey-manager-qt
     Available versions:  (~)1.2.5 {PYTHON_SINGLE_TARGET="python3_10 python3_11 python3_12"}
     Installed versions:  1.2.5(01:31:28 AM 05/21/2024)(PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11")
     Homepage:            https://developers.yubico.com/yubikey-manager-qt/ https://github.com/Yubico/yubikey-manager-qt
     Description:         Cross-platform application for configuring any YubiKey over all USB transports


emerge --info attached
Comment 1 Jan Krajdl 2024-08-12 10:35:37 UTC
Seems it's not related to python3.12 but due to incompatiblity with newer yubikey-manager-5.5.1. After downgrading yubikey-managaer to 5.4.0-r1 it starts working for me.
Comment 2 Andreas Sturmlechner gentoo-dev 2025-02-01 10:02:18 UTC
Does that mean this package is fundamentally broken since the only available version of app-crypt/yubikey-manager is 5.5.1 right now?

Here's a patch in someone's fork:
https://github.com/Disasm/yubikey-manager-qt/commit/f30592e39c1cb924860c99efd185447a60a4e3a5
Comment 3 Andreas Sturmlechner gentoo-dev 2025-02-24 21:47:43 UTC
Repository is archived upstream.