I had the same error but failed to use find_library( TypeError: get_backend() got an unexpected keyword argument 'find_library'). I suppose, although you did not say that, it is backendinvalid ( None).
libusb1 C:\Python27? , Python, , : PyUSB .
, find_library, libusb1, PATH. ( os.getcwd() ):
def get_backend_libusb01():
libusb01_location = os.getcwd()
is_current_folder_in_search_path = True
if None == usb.backend.libusb0.get_backend():
is_current_folder_in_search_path = libusb01_location in os.environ['PATH']
if not is_current_folder_in_search_path:
os.environ['PATH'] += os.pathsep + libusb01_location
backend = usb.backend.libusb0.get_backend()
if not is_current_folder_in_search_path:
os.environ['PATH'] = os.environ['PATH'].replace(os.pathsep + libusb01_location, "")
return backend