Thanks for looking. -Chris
On 7/10/10 8:48 PM, Wander Lairson wrote: > 2010/7/10 Chris Wolf <cw10...@gmail.com>: [...] >> >> 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. *** dev = usb.core.find(find_all=True) 2010-07-11 02:25:22,785 ERROR:usb.backend.libusb10:Error loading libusb 1.0 backend Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/usb/backend/libusb10.py", line 588, in get_backend _lib = _load_library() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/usb/backend/libusb10.py", line 170, in _load_library raise OSError('USB library could not be found') OSError: USB library could not be found 2010-07-11 02:25:22,787 ERROR:usb.backend.openusb:Error loading OpenUSB backend Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/usb/backend/openusb.py", line 588, in get_backend _lib = _load_library() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/usb/backend/openusb.py", line 149, in _load_library raise OSError('USB library could not be found') OSError: USB library could not be found 2010-07-11 02:25:22,789 INFO:usb.core:find(): using backend "usb.backend.libusb01" 2010-07-11 02:25:22,789 DEBUG:usb.backend.libusb01:_LibUSB.enumerate_devices() *** print dev [] >> >> 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 >> >> *** dev = find(0x05ac, 0x8240) 2010-07-11 02:26:59,512 ERROR:usb.backend.libusb10:Error loading libusb 1.0 backend Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/usb/backend/libusb10.py", line 588, in get_backend _lib = _load_library() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/usb/backend/libusb10.py", line 170, in _load_library raise OSError('USB library could not be found') OSError: USB library could not be found 2010-07-11 02:26:59,513 ERROR:usb.backend.openusb:Error loading OpenUSB backend Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/usb/backend/openusb.py", line 588, in get_backend _lib = _load_library() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/usb/backend/openusb.py", line 149, in _load_library raise OSError('USB library could not be found') OSError: USB library could not be found 2010-07-11 02:26:59,515 INFO:usb.core:find(): using backend "usb.backend.libusb01" 2010-07-11 02:26:59,515 DEBUG:usb.backend.libusb01:_LibUSB.enumerate_devices() <usb.legacy.Bus object at 0x70e10> Traceback (most recent call last): File "usbtest.py", line 21, in ? raise ValueError('Device not found') ValueError: Device not found Enumeration in 'C' using direct libusb01 : ./usbtest BUS: 1d000000: 001 DEV: 001-05ac-8005-09-00 - 9 0x05ac.0x8005 Alt Interface: 9 - 0 DEV: 002-05ac-021a-00-00 - 0 0x05ac.0x021a Alt Interface: 3 - 0 Alt Interface: 3 - 1 Alt Interface: 3 - 2 BUS: 3d000000: 002 DEV: 001-05ac-8005-09-00 - 9 0x05ac.0x8005 Alt Interface: 9 - 0 BUS: 5d000000: 003 DEV: 001-05ac-8005-09-00 - 9 0x05ac.0x8005 Alt Interface: 9 - 0 BUS: 7d000000: 004 DEV: 001-05ac-8005-09-00 - 9 0x05ac.0x8005 Alt Interface: 9 - 0 BUS: fd000000: 005 DEV: 001-05ac-8006-09-00 - 9 0x05ac.0x8006 Alt Interface: 9 - 0 DEV: 003-1307-0361-00-00 - 0 0x1307.0x0361 Alt Interface: 8 - 0 Alt Interface: 255 - 1 ------------------------------------------------------------------------------ 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