* [ISSUE] yubikey-manager (ykman) fails with an error message about too many arguments passed to list_devices()
@ 2021-03-28 16:08 jhe2
2021-03-28 18:45 ` FollieHiyuki
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: jhe2 @ 2021-03-28 16:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 3542 bytes --]
New issue by jhe2 on void-packages repository
https://github.com/void-linux/void-packages/issues/29810
Description:
### System
* xuname: Void 5.11.4_1 x86_64 GenuineIntel uptodate hold rrrmFFF
* package: yubikey-manager-3.1.1_5
### Expected behavior
``ykman fido info`` should display status information, when a FIDO2 compatible stick is attached.
### Actual behavior
An error message is printed instead:
```
/usr/lib/python3.9/site-packages/ykman/opgp.py:40: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_to_bytes, int_from_bytes
/usr/lib/python3.9/site-packages/ykman/piv.py:39: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_to_bytes, int_from_bytes
Traceback (most recent call last):
File "/usr/bin/ykman", line 33, in <module>
sys.exit(load_entry_point('yubikey-manager==3.1.1', 'console_scripts', 'ykman')())
File "/usr/lib/python3.9/site-packages/ykman/cli/__main__.py", line 273, in main
cli(obj={})
File "/usr/lib/python3.9/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3.9/site-packages/ykman/cli/fido.py", line 87, in info
controller = ctx.obj['controller']
File "/usr/lib/python3.9/site-packages/ykman/cli/util.py", line 127, in __getitem__
self.resolve()
File "/usr/lib/python3.9/site-packages/ykman/cli/util.py", line 124, in resolve
self._objects[k] = f()
File "/usr/lib/python3.9/site-packages/ykman/cli/__main__.py", line 194, in resolve_device
dev = _run_cmd_for_single(ctx, subcmd.name, transports, reader)
File "/usr/lib/python3.9/site-packages/ykman/cli/__main__.py", line 132, in _run_cmd_for_single
return descriptor.open_device(transports)
File "/usr/lib/python3.9/site-packages/ykman/descriptor.py", line 96, in open_device
for drv in _list_drivers(transports):
File "/usr/lib/python3.9/site-packages/ykman/descriptor.py", line 164, in _list_drivers
for dev in open_fido():
File "/usr/lib/python3.9/site-packages/ykman/driver_fido.py", line 97, in open_devices
for dev in CtapHidDevice.list_devices(descriptor_filter):
TypeError: list_devices() takes 1 positional argument but 2 were given
```
### Steps to reproduce the behavior
* Install the ``yubikey-manager`` package
* Run ``ykman fido info`` with a Yubikey attached
* Observe error message
The tool appears to be working fine if there is no compatible device attached, without any indication of a problem.
The latest ``yubikey-manager`` (which is version 4.0.0 at the moment) installed via ``pip`` works without issue on the same system.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: yubikey-manager (ykman) fails with an error message about too many arguments passed to list_devices()
2021-03-28 16:08 [ISSUE] yubikey-manager (ykman) fails with an error message about too many arguments passed to list_devices() jhe2
@ 2021-03-28 18:45 ` FollieHiyuki
2021-03-29 0:21 ` [ISSUE] [CLOSED] " sgn
2021-03-29 0:21 ` sgn
2 siblings, 0 replies; 4+ messages in thread
From: FollieHiyuki @ 2021-03-28 18:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 273 bytes --]
New comment by FollieHiyuki on void-packages repository
https://github.com/void-linux/void-packages/issues/29810#issuecomment-808940545
Comment:
The problem is probably because of `python3-fido2` (which is fixed in 3.1.2).
Updating the package to 4.0.0 would be enough.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ISSUE] [CLOSED] yubikey-manager (ykman) fails with an error message about too many arguments passed to list_devices()
2021-03-28 16:08 [ISSUE] yubikey-manager (ykman) fails with an error message about too many arguments passed to list_devices() jhe2
2021-03-28 18:45 ` FollieHiyuki
@ 2021-03-29 0:21 ` sgn
2021-03-29 0:21 ` sgn
2 siblings, 0 replies; 4+ messages in thread
From: sgn @ 2021-03-29 0:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 3545 bytes --]
Closed issue by jhe2 on void-packages repository
https://github.com/void-linux/void-packages/issues/29810
Description:
### System
* xuname: Void 5.11.4_1 x86_64 GenuineIntel uptodate hold rrrmFFF
* package: yubikey-manager-3.1.1_5
### Expected behavior
``ykman fido info`` should display status information, when a FIDO2 compatible stick is attached.
### Actual behavior
An error message is printed instead:
```
/usr/lib/python3.9/site-packages/ykman/opgp.py:40: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_to_bytes, int_from_bytes
/usr/lib/python3.9/site-packages/ykman/piv.py:39: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_to_bytes, int_from_bytes
Traceback (most recent call last):
File "/usr/bin/ykman", line 33, in <module>
sys.exit(load_entry_point('yubikey-manager==3.1.1', 'console_scripts', 'ykman')())
File "/usr/lib/python3.9/site-packages/ykman/cli/__main__.py", line 273, in main
cli(obj={})
File "/usr/lib/python3.9/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3.9/site-packages/ykman/cli/fido.py", line 87, in info
controller = ctx.obj['controller']
File "/usr/lib/python3.9/site-packages/ykman/cli/util.py", line 127, in __getitem__
self.resolve()
File "/usr/lib/python3.9/site-packages/ykman/cli/util.py", line 124, in resolve
self._objects[k] = f()
File "/usr/lib/python3.9/site-packages/ykman/cli/__main__.py", line 194, in resolve_device
dev = _run_cmd_for_single(ctx, subcmd.name, transports, reader)
File "/usr/lib/python3.9/site-packages/ykman/cli/__main__.py", line 132, in _run_cmd_for_single
return descriptor.open_device(transports)
File "/usr/lib/python3.9/site-packages/ykman/descriptor.py", line 96, in open_device
for drv in _list_drivers(transports):
File "/usr/lib/python3.9/site-packages/ykman/descriptor.py", line 164, in _list_drivers
for dev in open_fido():
File "/usr/lib/python3.9/site-packages/ykman/driver_fido.py", line 97, in open_devices
for dev in CtapHidDevice.list_devices(descriptor_filter):
TypeError: list_devices() takes 1 positional argument but 2 were given
```
### Steps to reproduce the behavior
* Install the ``yubikey-manager`` package
* Run ``ykman fido info`` with a Yubikey attached
* Observe error message
The tool appears to be working fine if there is no compatible device attached, without any indication of a problem.
The latest ``yubikey-manager`` (which is version 4.0.0 at the moment) installed via ``pip`` works without issue on the same system.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: yubikey-manager (ykman) fails with an error message about too many arguments passed to list_devices()
2021-03-28 16:08 [ISSUE] yubikey-manager (ykman) fails with an error message about too many arguments passed to list_devices() jhe2
2021-03-28 18:45 ` FollieHiyuki
2021-03-29 0:21 ` [ISSUE] [CLOSED] " sgn
@ 2021-03-29 0:21 ` sgn
2 siblings, 0 replies; 4+ messages in thread
From: sgn @ 2021-03-29 0:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 160 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/29810#issuecomment-808988472
Comment:
Fixed with e904ed8170
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-29 0:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-28 16:08 [ISSUE] yubikey-manager (ykman) fails with an error message about too many arguments passed to list_devices() jhe2
2021-03-28 18:45 ` FollieHiyuki
2021-03-29 0:21 ` [ISSUE] [CLOSED] " sgn
2021-03-29 0:21 ` sgn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).