I am runing Python 2.7.8 at Win 7 operation system. I am trying to communicate a USB device (Numato 32 channel GPIO device) by PyUSB.
I downloaded walac-pyusb-7071ad3 from URL: http://walac.github.io/pyusb
I stop at receiving "ValueError: No backend available". Could any Python expert tell me where is wrong?
Here is the code:
import sys
import usb
import usb.core
import usb.util
import usb.backend.libusb1
backend = usb.backend.libusb1.get_backend(find_library=lambda C:'Python27')
numato = usb.core.find(idVendor=00000006,idProduct = 00000000, backend=backend)
Here is Python error message:
Traceback (most recent call last):
File "C:Python_YangPyUSBNumato.py", line 19, in <module>
numato = usb.core.find(idVendor=00000006,idProduct = 00000000, backend=backend)
File "C:Python_Yangusbcore.py", line 1199, in find
raise ValueError('No backend available')
ValueError: No backend available
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…