Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

windows: usb.core.NoBackendError: No backend available #16

Open
jhgorse opened this issue Jul 6, 2023 · 0 comments
Open

windows: usb.core.NoBackendError: No backend available #16

jhgorse opened this issue Jul 6, 2023 · 0 comments

Comments

@jhgorse
Copy link

jhgorse commented Jul 6, 2023

pyusb appears to have issues with windows.
pyusb/pyusb#120

Installing libusb dll into
C:\Windows\SysWOW64 had no effect.
C:\Windows\System32 dll was found, but libusb is not functional.

(env) PS C:\Work\g203-led> python g203-led.py solid 00FFFF
Traceback (most recent call last):
  File "g203-led.py", line 301, in <module>
    main()
  File "g203-led.py", line 67, in main
    set_led_solid(process_color(args[2]))
  File "g203-led.py", line 170, in set_led_solid
    return set_led('01', color + '0000000000')
  File "g203-led.py", line 185, in set_led
    send_command(prefix + mode + data + suffix)
  File "g203-led.py", line 251, in send_command
    attach_mouse()
  File "g203-led.py", line 285, in attach_mouse
    if dev.is_kernel_driver_active(wIndex) is True:
  File "C:\Users\home\AppData\Roaming\Python\Python38\site-packages\usb\core.py", line 1062, in is_kernel_driver_active
    return self._ctx.backend.is_kernel_driver_active(
  File "C:\Users\home\AppData\Roaming\Python\Python38\site-packages\usb\backend\libusb1.py", line 897, in is_kernel_driver_active
    return bool(_check(self.lib.libusb_kernel_driver_active(dev_handle.handle,
  File "C:\Users\home\AppData\Roaming\Python\Python38\site-packages\usb\backend\libusb1.py", line 593, in _check
    raise NotImplementedError(_strerror(ret))
NotImplementedError: Operation not supported or unimplemented on this platform

What are the options? I feel like this is a lot of dependency to do a little usb hid wiggling.

Cheers,
Joe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant