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 when built with PYTHON_SINGLE_TARGET="python3_12": 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
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
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