Skip to content

Commit

Permalink
Specify libusb for hidapi library
Browse files Browse the repository at this point in the history
This may vary by system, but on my Ubuntu environment I needed to specify the libusb hidapi library. This is *not* looking for a Python library as some other repos have stated.
  • Loading branch information
Horocchi committed Apr 8, 2020
1 parent e7912c2 commit eacacaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hidapi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ctypes, ctypes.util

path = ctypes.util.find_library('hidapi')
path = ctypes.util.find_library('hidapi-libusb')

if not path:
raise ImportError('Cannot find hidapi library')
Expand Down

0 comments on commit eacacaf

Please sign in to comment.