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" 

enter image description here doing wrong here?

enter image description here

did install usb library package? if may need add path.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -