Skip to content
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

Yubikey 5 series not working #55

Open
chrisyo99 opened this issue Aug 18, 2021 · 2 comments
Open

Yubikey 5 series not working #55

chrisyo99 opened this issue Aug 18, 2021 · 2 comments

Comments

@chrisyo99
Copy link

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)
`

@ricardobranco777
Copy link

It works on Linux.

@aknay
Copy link

aknay commented Dec 13, 2023

I also encountered this issue today; the library works on Linux but not on Windows. Ended up switching to yubikey-manager from Yubico. More details can be found in their GitHub repository: https://github.com/Yubico/yubikey-manager; especially under the tests folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants