Issues when trying to detect a Yubikey Series 5 key:
File "Python39\lib\site-packages\yubico\yubikey_usb_hid.py", line 191, in _read
self._debug("Failed reading %i bytes (got %i) from USB HID YubiKey.\n"
TypeError: %i format: a number is required, not array.array
after removing that line I also get this issue:
YubiKeyHIDDevice: detachKernelDriver not supported!
YubiKeyHIDDevice: Failed reading 8 bytes (got array('B', [0, 5, 4, 3, 3, 11, 6])) from USB HID YubiKey.
ERROR: Failed reading from USB HID YubiKey
code attempted to be run:
Python
`
import sys
import yubico
try:
yubikey = yubico.find_yubikey(debug=True)
print("Version: {}".format(yubikey.version()))
except yubico.yubico_exception.YubicoError as e:
print("ERROR: {}".format(e.reason))
sys.exit(1)
`