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

usb.core.NoBackendError: No backend available #38

Open
adminy opened this issue May 2, 2024 · 0 comments
Open

usb.core.NoBackendError: No backend available #38

adminy opened this issue May 2, 2024 · 0 comments

Comments

@adminy
Copy link

adminy commented May 2, 2024

running:
./venv/bin/cp210x-program.py
gets:

Traceback (most recent call last):
  File "/root/homebridge/./venv/bin/cp210x-program.py", line 247, in <module>
    main()
  File "/root/homebridge/./venv/bin/cp210x-program.py", line 243, in main
    options.action(options)
  File "/root/homebridge/./venv/bin/cp210x-program.py", line 139, in read_cp210x
    usbdev = find_device(options.match)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/homebridge/./venv/bin/cp210x-program.py", line 133, in find_device
    for dev in cp210x.Cp210xProgrammer.list_devices(usb_patterns):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/homebridge/venv/lib/python3.11/site-packages/cp210x/cp210x.py", line 196, in list_devices
    return usb.core.find(find_all=True, custom_match=Cp210xMatch(patterns))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/homebridge/venv/lib/python3.11/site-packages/usb/core.py", line 1309, in find
    raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available

But there is:

lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/2p, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 001: Dev 009, If 0, Class=Vendor Specific Class, Driver=[none], 480M
    |__ Port 001: Dev 009, If 1, Class=Vendor Specific Class, Driver=[none], 480M
    |__ Port 002: Dev 008, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M.       <<<<<<<<<<<<<<<<
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
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