windows - USB interface in Python -
i have (http://www.gesytec.de/en/download/easylon/p/16/) usb device connected win7. trying read vendor id , product id. have python 2.7.
here code,
import usb busses = usb.busses() bus in busses: devices = bus.devices dev in devices: print "device:", dev.filename print " idvendor: %d (0x%04x)" % (dev.idvendor, dev.idvendor) print " idproduct: %d (0x%04x)" % (dev.idproduct, dev.idproduct)
i getting following error,
"file "<stdin>", line 1, in <module> file "c:\python27\lib\usb\core.py", line 846, in find raise valueerror('no backend available') valueerror: no backend available"
doing wrong here?
did install usb library package? if may need add path.
Comments
Post a Comment