Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932756 - app-crypt/yubikey-manager-qt-1.2.5: Fails to recognize YubiKey w/ app-crypt/yubikey-manager: NameError: name 'yubikey' is not defined
Summary: app-crypt/yubikey-manager-qt-1.2.5: Fails to recognize YubiKey w/ app-crypt/y...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: David Seifert
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2024-05-25 23:57 UTC by Dan Arnold
Modified: 2025-02-24 21:47 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge.info,7.08 KB, text/plain)
2024-05-25 23:57 UTC, Dan Arnold
Details

Note You need to log in before you can comment on or make changes to this bug.
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.