Hello,

I am just trying to perform basic iteration of USB devices to start with and
am not getting anything.

First, I installed a binary distribution of libusb01 from this location:

http://www.ellert.se/twain-sane/


...then I installed pyusb-1.0.0-a0.

...followed by attempting to run the tutorial here:

http://pyusb.sourceforge.net/docs/1.0/tutorial.html

That didn't work, so I tried:

*** dev = usb.core.find(find_all=True, backend=libusb01.get_backend())
*** print dev
*** []

- nothing :(

def find(vendor, product):
    for bus in usb.busses():
        print bus
        for device in bus.devices:
            print device
            if device.idVendor == vendor and device.idProduct == product:
                return device
    return None

-- still nothing!

Note that direct use of the libusb API works - I took this sample code:
http://libusb.sourceforge.net/doc/examples-code.html
and  added print statements to show the iteration of busses/devices
which worked fine and matched what the system profiler shows as my
attached USB devices.

Does anyone have a clue for me?  Thanks in advance...

   -Chris



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to