[MacPorts] #62661: No backend available error when using py-pyusb

MacPorts noreply at macports.org
Thu Apr 8 18:29:04 UTC 2021


#62661: No backend available error when using py-pyusb
-----------------------------+------------------------
 Reporter:  programmingkidx  |      Owner:  (none)
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.6.4
 Keywords:  USB              |       Port:  py39-pyusb
-----------------------------+------------------------
 I installed pyusb like this: sudo port install py-pyusb. py39-pyusb was
 installed. I then opened python 3.9 from here: /opt/local/bin/python3.9.
 When I imported the usb.core module there were no problems. But when I
 tried to run this program I saw the error about no backend available:

 import usb.core

 dev = usb.core.find(idVendor=0x0d8c,idProduct=0x0008)


 Here is the full error:

 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/usb/core.py", line 1297, in find
     raise NoBackendError('No backend available')
 usb.core.NoBackendError: No backend available


 I tried to fix the problem by installing libusb like this: sudo port
 install libusb. This did not fix the problem.

 My info:
 Mac OS 11.1
 M1 Mac
 Python 3.9

-- 
Ticket URL: <https://trac.macports.org/ticket/62661>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list