2011/11/29 Barney, Bryson <bbar...@sandia.gov>:
> Ok, I installed the binary backend in addition to the Python bindings.  Now
> it can find a backend, and I am pretty sure that it is finding my device as
> well.  When I run the script, it returns:
>
>
>
> <usb.core.Device object at 0x000000000251B080>
>
> Traceback (most recent call last):
>
>     File “usb_test.py”, line 17, in <module>
>
>         interface_number = cfg[0].bInterfaceNumber
>

The tutorial were wrong, the correct line code should be:

 interface_number = cfg[(0,0)].bInterfaceNumber

I already fixed it and updated the page. I apologize.

-- 
Best Regards,
Wander Lairson Costa
https://github.com/walac
https://gitorious.org/~walac

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to