-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yubioath-desktop unable to import 'yubikey' Python module #202295
Comments
It's not clear to me, which python package they want here. |
It looks like upstream has deprecated this package in favor of: https://github.com/Yubico/yubioath-flutter |
https://github.com/Yubico/yubioath-flutter is the new stuff. Also the old packages seems to be broken: NixOS#202295
See #202411 |
Hi! The error is caused by a dependency on yubikey-manager5, while yubioath-desktop still needs yubikey-manager4, because the python libs had breaking changes (see Yubico/yubikey-manager-qt#328). By dropping the A workaround: nixpkgs.config.packageOverrides = pkgs: {
yubioath-desktop = pkgs.yubioath-desktop.override { yubikey-manager = pkgs.yubikey-manager4; };
}; A suggested fix: , yubikey-personalization
-, yubikey-manager
+,yubikey-manager4
, makeWrapper and - pythonPath = [ yubikey-manager ];
+ pythonPath = [ yubikey-manager4 ]; I know that this package is dropped in master (#202411) but this could be a relatively simple fix for 22.11, before changing to the new flutter-based gui. Thanks! |
yubioath-desktop has been removed on unstable in favor of yubioath-flutter, but 22.11 currently only has the former, and it's broken due to NixOS#202295. This change fixes it by depending on the previous, compatible version of the yubikey-manager library.
Thanks for the suggested fix, @0xf09f95b4. Submitted a PR: #209098. 🤞🏻 it gets picked up. |
Describe the bug
yubioath-desktop is unable to talk to YubiKey devices, seemingly because it is unable to import the
yubikey
python module.Steps To Reproduce
Steps to reproduce the behavior:
yubioath-desktop
from a terminalExpected behavior
No Python errors, and the TOTP tokens to show up in the UI.
Screenshots
This is what the UI displays, indefinitely.
Additional context
The behaviour is the same regardless of whether a YubiKey device is present.
yubikey-oath
is installed viahome-manager
, using a flake-based config.Notify maintainers
@Mic92 @rissson
Metadata
The text was updated successfully, but these errors were encountered: