Open andkon opened 6 years ago
Hi @andkon, Apologies for the delay in responding to this. Did you ever find the cause of this issue you were seeing? One thing I can think of: are you running the Blink1Control application at the same time? The Python library expects to have exclusive control of the blink(1) device. If you want to use Python with Blink1Control running, you can issue REST HTTP requests to Blink1Control's built in REST API server.
I believe I didn't have Blink1Control installed when trying to run it. Let me give it a shot again though. Is there documentation handy for Blink1Control's REST endpoints?
I have also verified that the blink1
library on pypi (and in here) exhibits the USBError: [Errno 13] Access denied (insufficient permissions)
on Mac OS X 10.12.6. Looking into what the problem could be, but I don't know much about this Python module (it was written by another dev)
Cool, I'll keep following this thread, thank you for digging in! From work I know how hard it is to manage+maintain a ton of different platforms and bindings, so I really do appreciate it.
I am also experiencing this issue
Still having this on High Sierra 10.13.1 :(
This inability of the Python blink(1) library to access devices is because of the PyUSB library. Both Mac & Windows will have issues as they both have built-in HID drivers that take over USB HID devices (and provide nice abstractions to make access HID devices easier). So, the blink(1) library needs to be rewritten to use hid
Python library.
In the meantime, you could try one of the alternative libraries here: https://github.com/todbot/blink1/tree/master/python/alternative_libraries
Hey there. Whether in or out of a virtualenv, and with or without
sudo
, I get the following error when attempting to run any of the sample code:I'm on macOS 10.12.6, and am running Python 3.6.2.