From: Steven P. <n9...@n9...> - 2003-12-10 04:07:33
|
On Dec 9, 2003, at 9:41 PM, Steven Palm wrote: > I compiled and installed version 1.7 of libusb. I then installed/ran > SWIG to generate the hooks for python, and then tried to run your > usbscan.py script. I just compiled the CVS tree version of libusb, and the output differs slightly: From v1.7: > usb_set_debug: Setting debugging level to 255 (on) > usb_os_find_busses: Found 003 > usb_os_find_busses: Found 003 > usb_os_find_busses: Found 003 > usb_os_find_busses: Found 002 > usb_os_find_devices: Found 001 on 003 > usb_os_find_devices: Found 002 on 003 > usb_os_find_devices: Found 001 on 003 > usb_os_find_devices: Found 001 on 003 > usb_os_open: 05ac:8005 > USB error: could not open device > usb_os_open: 05ac:8005 > USB error: could not open device > usb_os_open: 1004:6000 > USB error: could not open device > usb_os_open: 05ac:8006 > USB error: could not open device > usb_os_find_devices: Found 001 on 003 > usb_os_find_devices: Found 002 on 003 > usb_os_find_devices: Found 001 on 003 > usb_os_find_devices: Found 001 on 003 > usb_os_open: 05ac:8005 > USB error: could not open device > usb_os_open: 05ac:8005 > USB error: could not open device > usb_os_open: 1004:6000 > USB error: could not open device > usb_os_open: 05ac:8006 > USB error: could not open device > usb_os_find_devices: Found 001 on 003 > usb_os_find_devices: Found 002 on 003 > usb_os_find_devices: Found 001 on 003 > usb_os_find_devices: Found 001 on 003 > usb_os_open: 05ac:8005 > USB error: could not open device > usb_os_open: 05ac:8005 > USB error: could not open device > usb_os_open: 1004:6000 > USB error: could not open device > usb_os_open: 05ac:8006 > USB error: could not open device > usb_os_find_devices: Found 002 on 002 > usb_os_find_devices: Found 001 on 002 > usb_os_open: 05ac:8005 > USB error: could not open device > usb_os_open: 05ac:8203 > USB error: could not open device > usb_os_open: 05ac:8006 > USB error: could not open device > usb_open(<C usb_device instance at _02848800_p_usb_device>)=None > Traceback (most recent call last): > File "usbscan.py", line 70, in ? > res=usbscan() > File "usbscan.py", line 28, in usbscan > for device in bus.devices(): > File "/Users/n9yty/my_cvs/bitpim/bitpim/native/usb/usb.py", line 43, > in devices > yield USBDevice(dev) > File "/Users/n9yty/my_cvs/bitpim/bitpim/native/usb/usb.py", line 56, > in __init__ > raise USBException() > native.usb.usb.USBException: could not open device From CVS: usb_set_debug: Setting debugging level to 255 (on) usb_os_find_busses: Found 026 usb_os_find_busses: Found 027 usb_os_find_busses: Found 059 usb_os_find_busses: Found 091 usb_os_find_devices: Found 001 on 026 usb_os_find_devices: Found 002 on 026 usb_os_open: 05ac:8203 USB error: usb_os_open: Another process already has exclusive access to the device. usb_os_open: 05ac:8005 USB error: usb_os_open: Another process already has exclusive access to the device. usb_os_find_devices: Found 001 on 027 usb_os_open: 05ac:8005 USB error: usb_os_open: Another process already has exclusive access to the device. usb_os_find_devices: Found 001 on 059 usb_os_find_devices: Found 002 on 059 usb_os_open: 1004:6000 USB error: usb_os_open: Another process already has exclusive access to the device. usb_os_open: 05ac:8005 USB error: usb_os_open: Another process already has exclusive access to the device. usb_os_find_devices: Found 001 on 091 usb_os_open: 05ac:8006 USB error: usb_os_open: Another process already has exclusive access to the device. usb_os_open: 05ac:8005 USB error: usb_os_open: Another process already has exclusive access to the device. usb_open(<C usb_device instance at _02841a00_p_usb_device>)=None Traceback (most recent call last): File "usbscan.py", line 70, in ? res=usbscan() File "usbscan.py", line 28, in usbscan for device in bus.devices(): File "/Users/n9yty/my_cvs/bitpim/bitpim/native/usb/usb.py", line 43, in devices yield USBDevice(dev) File "/Users/n9yty/my_cvs/bitpim/bitpim/native/usb/usb.py", line 56, in __init__ raise USBException() native.usb.usb.USBException: usb_os_open: Another process already has exclusive access to the device. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |