Closed bhechinger closed 5 years ago
Some additional information. If I run this without the key attached it does recognize that it isn't there:
>>> yubikey = yubico.find_yubikey(debug=False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/yubico/yubikey.py", line 65, in find_key
raise YubiKeyError('No YubiKey found')
yubico.yubikey_base.YubiKeyError: <YubiKeyError instance at 0x7f0263fa0550: No YubiKey found>
Here's the output (with they key connected) with debug=True
:
.................
Ok then. I do not understand this at all. I've been at this for hours and not once has this ever worked.
Just now it did.
>>> yubikey = yubico.find_yubikey(debug=False)
>>> print(yubikey.version())
2.4.2
>>>
This is extremely odd. :(
I have the same error, but it never works.
same error here and it never works. What's the backend that it refers to actually? Thanks in advance guys!
It sounds like libusb is missing on your system, which is the 'backend' it is looking for. If you are using CentOS try yum install libusb
and then try again.
Hi again, We've installed the package that you suggested and we've followed the instructions here: https://github.com/Yubico/python-yubico but we still have an error: usb.core.USBError: [Errno 13] Access denied (insufficient permissions) Could it be due to the fact that we use a macOS ? Do you have a workaround ?
Thanks in advance :)
@AnnaAnge I'm afraid that you've run into a known issue on OS X/macOS, see https://github.com/Yubico/python-yubico/issues/7. The issue is with libusb on OS X/macOS and as far as I know there is no known workaround.
I think this issue can be closed; the original question was about CentOS and was reported to start working at one point in time (by @bhechinger as the original poster). While @Ratler added a note on 4 Jan 2017 that for this CentOS a particular step might be important (for anyone else hitting this on CentOS).
The remaining comments about permissions is to be addressed at https://github.com/Yubico/python-yubico/issues/7 (as noted before by @Ratler).
Thus, this issue can be closed in my opinion.
Agreed, closing.
I was trying to work with FreeIPA and YubiKey on CentOS 7, but the
ipa otptoken-add-yubikey
command was exploding. I tracked it down to being this module that has the actual issues.Using python-yubico 1.3.1:
The YubiKey (Standard) is definitely there:
Also:
This is extremely frustrating!