2010/7/10 Chris Wolf <cw10...@gmail.com>: > > > 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())
Set the environment variable PYUSB_DEBUG_LEVEL=debug, run this test again and send the results, please. > *** 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 > -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ 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