yubikey-manager-qt icon indicating copy to clipboard operation
yubikey-manager-qt copied to clipboard

NameError: name 'yubikey' is not defined

Open Torxed opened this issue 1 year ago • 3 comments

  • YubiKey Manager version: 5.5.1
  • How was it installed?: pacman -S yubikey-manager-qt
  • Operating system and version: Arch Linux
  • YubiKey model and version: issue happens without inserting a yubikey as well
  • Bug description summary:

asciicast

Steps to reproduce

pacman -Sy yubikey-manager-qt
ykman-gui

I'm not sure if this is purely a packaging issue or a ykman-gui issue, but ykman works. Although there was no yubikey inserted.

Torxed avatar Sep 03 '24 10:09 Torxed

https://github.com/Yubico/yubikey-manager-qt/issues/320 seems already reported this

wolf-yuan-6115 avatar Sep 05 '24 14:09 wolf-yuan-6115

Similar, but in my case ykman works. Just not ykman-gui. I could be wrong tho.

It's also old so not sure.

Torxed avatar Sep 05 '24 16:09 Torxed

The issue is most likely caused by this removal: https://github.com/Yubico/yubikey-manager/commit/2bcf81b6dffc9ae6748eb251ff54a864b306e794 yubikey.py in this repo tries to import types which no longer exist: https://github.com/Yubico/yubikey-manager-qt/blob/28dc02d11b081683b59d16d12043aaa3c0a6c75f/ykman-gui/py/yubikey.py#L53-L55

When I remove the relevant imports locally and build the application, GUI starts to work and recognizes the token I have.

Disasm avatar Jan 08 '25 18:01 Disasm