Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error: No PyUSB backend detected #185

Closed
jsatk opened this issue Dec 7, 2018 · 9 comments
Closed

Error: No PyUSB backend detected #185

jsatk opened this issue Dec 7, 2018 · 9 comments

Comments

@jsatk
Copy link

jsatk commented Dec 7, 2018

I only use YubiKeys for GPG. Since OTP via YubiKey isn't supported in Firefox or Safari as of this writing I don't use it. Unfortunately when I attempt to disable OTP via USB it throws this error.

$ ykman config usb --disable OTC
Usage: ykman [OPTIONS] COMMAND [ARGS]...

Error: No PyUSB backend detected!

Also when I inquire about the version I get this warning:

$ ykman -v
YubiKey Manager (ykman) version: 1.0.1
Libraries:
    libykpers not found!
    <pyusb backend missing>

I've done an install and reinstall of both ykman and ykpers.

I've tried searching for a resolution to this but to no avail. Any help on disabling OTC for this Yubikey 4 nano would be greatly appreciated.

@dagheyman
Copy link
Contributor

How did you install ykman?

libykpers not found!
<pyusb backend missing>

indicates that the c-libraries are not available. See the installation instructions. If you are using macOS for example, I'd recommend $ brew install ykman.

@dagheyman
Copy link
Contributor

Any help on disabling OTC for this Yubikey 4 nano would be greatly appreciated.

The correct command, once ykman is installed, would be
$ ykman mode CCID+FIDO

@dagheyman
Copy link
Contributor

Any other issues, please contact Yubico Support.

@jsatk
Copy link
Author

jsatk commented Dec 10, 2018 via email

@jsatk
Copy link
Author

jsatk commented Dec 10, 2018

@dagheyman I don't understand why this issue is closed.

When brew install ykman and then run ykman info it throws the error I posted above.

@jsatk
Copy link
Author

jsatk commented Dec 10, 2018

image

@dagheyman dagheyman reopened this Dec 11, 2018
@dagheyman
Copy link
Contributor

Now it seems to find libykpers at least.

Could you try $ brew reinstall libusb ?

@jsatk
Copy link
Author

jsatk commented Dec 11, 2018

That did it @dagheyman. No idea what the issue was or why it got b0rked. Odd.

Thank you so much.

@jsatk
Copy link
Author

jsatk commented Dec 11, 2018

Resolution is to reinstall libusb via brew reinstall libusb.

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

No branches or pull requests

2 participants