I am trying to run some of the python examples in the Yubico python git repo (
https://github.com/Yubico/python-yubico) on OS X 10.11 El Capitan. After installing libusb and trying to run something like the nist_challenge_response, I get the following error message:
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
This error occurs despite running as root. There appears to be an issue where the Yubikey appears as a HID keyboard and is immediately grabbed by OS X using the HID keyboard driver, leaving libusb unable to grab the device to read from it.
Does anyone know of any workaround or a reliable way to release the Yubikey so libusb can get to it?