FS#77659 - [yubioath-desktop] no longer work with latest yubikey-manager version

Attached to Project: Community Packages
Opened by Cedric Girard (Xdark) - Monday, 27 February 2023, 09:36 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Filipe Laíns (FFY00)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No

Details

Description: Application is no longer able to access connected yubikey since updated yubikey-manager to 1:5.0.1-1.


Additional info:
* package version: 5.1.0-3
* error log:

```
"PyOtherSide error: Traceback (most recent call last):\n\n File \"qrc:///py/yubikey.py\", line 23, in <module>\n from ykman.device import scan_devices, list_all_devices, connect_to_device, get_name, read_info\n\nImportError: cannot import name 'connect_to_device'from 'ykman.device' (/usr/lib/python3.10/site-packages/ykman/device.py)\n"
Unhandled PyOtherSide error: Cannot import module: yubikey (Traceback (most recent call last):

File "qrc:///py/yubikey.py", line 23, in <module>
from ykman.device import scan_devices, list_all_devices, connect_to_device, get_name, read_info

ImportError: cannot import name 'connect_to_device' from 'ykman.device' (/usr/lib/python3.10/site-packages/ykman/device.py)
)
"PyOtherSide error: Traceback (most recent call last):\n\n File \"<string>\", line 1, in <module>\n\nNameError: name 'yubikey' is not defined\n"
Unhandled PyOtherSide error: Function not found: 'yubikey.init' (Traceback (most recent call last):

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

NameError: name 'yubikey' is not defined
)
"PyOtherSide error: Traceback (most recent call last):\n\n File \"<string>\", line 1, in <module>\n\nNameError: name 'yubikey' is not defined\n"
Unhandled PyOtherSide error: Function not found: 'yubikey.controller.check_descriptors' (Traceback (most recent call last):

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

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

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

NameError: name 'yubikey' is not defined
)
qml: TypeError: Cannot read property 'winNonAdmin' of undefined undefined
```

Steps to reproduce:

* update yubikey-manager to version 1:5.0.1-1
* plug a yubikey
* launch yubioath-desktop
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:05 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/yubioath-desktop/issue s/1
Comment by Toolybird (Toolybird) - Monday, 27 February 2023, 20:53 GMT
Related:  FS#76325  (+ many dupes last time yubikey-manager was updated)
Comment by Michel Koss (MichelKoss1) - Tuesday, 28 February 2023, 21:55 GMT
It needs update to 6.x version although it uses flutter framework and I'm not sure if it's possible to package this in Arch so another option is to drop the package from repos. I don't see other possibilities.
Comment by Jan Alexander Steffens (heftig) - Thursday, 02 March 2023, 19:18 GMT
It's available on Flathub so that might be a useful workaround.
Comment by Michel Koss (MichelKoss1) - Monday, 06 March 2023, 19:58 GMT
Yes, flatpak or appimage are viable alternatives. Someone may even publish -bin package on AUR. Still Arch shouldn't keep dead packages in repos so some action is necessary, i.e. removing package.
Comment by Toolybird (Toolybird) - Thursday, 06 April 2023, 22:18 GMT
Dupe  FS#78133 
Comment by Michel Koss (MichelKoss1) - Saturday, 15 April 2023, 23:12 GMT
The bin package exists in AUR in case someone still looks for a workaround: https://aur.archlinux.org/packages/yubico-authenticator-bin

Meanwhile removing this package from repos would prevent users from wasting their time.
Comment by Jonathan Kohler (jkohler) - Saturday, 15 April 2023, 23:26 GMT
This is causing silent failures after package updates. The yubioath-desktop PKGBUILD should at least be updated to indicate it depends on yubikey-manager 4.0, and is not compatible with 5.0
Comment by Michel Koss (MichelKoss1) - Sunday, 16 April 2023, 19:33 GMT
There is no yubikey-manager 4.0 in repos so it's not possible for yubioath-desktop to depend on it.
Comment by Jonathan Kohler (jkohler) - Saturday, 06 May 2023, 19:49 GMT
But the current yubioath-desktop package *does* depend on yubikey-manager 4.0, and is not compatible with yubikey-manager 5.0. It would be better for this to explicitly produce a conflict on update, rather than update yubikey-manager and silently break yubioath-desktop.
Comment by Michel Koss (MichelKoss1) - Thursday, 29 June 2023, 19:15 GMT
That would break whole system updates - hardly an improvement.

Loading...