On Wed, Apr 7, 2010 at 11:11 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> This is the test result now with testall.py (removing all those debug > information from libusb 1.0 Windows). It seems to me that libusb-1.0.dll debugging information will disturb the results. So I build it under Cygwin again to remove the debugging information. The following is the new test result. mc...@acerpc ~/mcu/pyusb/pyusb/tests $ python testall.py 2010-04-07 12:22:11,765 INFO:usb.core:Using backend "usb.backend.libusb10" 2010-04-07 12:22:11,910 INFO:usb.test:Adding BackendTest(usb.backend.libusb10) t o test suite... 2010-04-07 12:22:12,073 INFO:usb.test:Adding BackendTest(usb.backend.libusb01) t o test suite... 2010-04-07 12:22:12,079 DEBUG:usb.backend.openusb:Error loading OpenUSB backend Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/usb/backend/openusb.py", line 568, in g et_backend _lib = _load_library() File "/usr/lib/python2.5/site-packages/usb/backend/openusb.py", line 148, in _ load_library raise OSError('USB library could not be found') OSError: USB library could not be found 2010-04-07 12:22:12,138 WARNING:usb.test:BackendTest(usb.backend.openusb) is not available 2010-04-07 12:22:12,307 INFO:usb.test:Adding DeviceTest(usb.backend.libusb10) to test suite... 2010-04-07 12:22:12,310 INFO:usb.test:Adding ConfigurationTest(usb.backend.libus b10) to test suite... 2010-04-07 12:22:12,314 INFO:usb.test:Adding InterfaceTest(usb.backend.libusb10) to test suite... 2010-04-07 12:22:12,317 INFO:usb.test:Adding EndpointTest(usb.backend.libusb10) to test suite... 2010-04-07 12:22:12,323 INFO:usb.core:Setting configuration 1 2010-04-07 12:22:12,329 WARNING:usb.test:Test hardware not found for backend usb .backend.libusb01 2010-04-07 12:22:12,333 DEBUG:usb.backend.openusb:Error loading OpenUSB backend Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/usb/backend/openusb.py", line 568, in g et_backend _lib = _load_library() File "/usr/lib/python2.5/site-packages/usb/backend/openusb.py", line 148, in _ load_library raise OSError('USB library could not be found') OSError: USB library could not be found EF.2010-04-07 12:22:12,504 INFO:usb.core:Setting configuration 1 2010-04-07 12:22:12,506 INFO:usb.core:Setting configuration 1 2010-04-07 12:22:12,511 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,512 INFO:usb.core:Setting interface. bInterfaceNumber=0, bAl ternateSetting=0 2010-04-07 12:22:12,515 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,517 INFO:usb.core:Setting interface. bInterfaceNumber=0, bAl ternateSetting=0 2010-04-07 12:22:12,522 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,528 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,533 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,537 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,542 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,546 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,549 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,552 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,557 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,562 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,566 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,570 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,574 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,606 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,622 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,638 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,654 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,670 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,686 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,702 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,719 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,734 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,750 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,766 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,793 INFO:usb.core:Releasing interface 0 .2010-04-07 12:22:12,796 INFO:usb.core:Setting configuration 1 .2010-04-07 12:22:12,799 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,805 INFO:usb.core:Setting interface. bInterfaceNumber=0, bAl ternateSetting=0 2010-04-07 12:22:12,809 INFO:usb.core:Releasing interface 0 .2010-04-07 12:22:12,814 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,822 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,826 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,829 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,833 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,838 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,842 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,846 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,849 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,852 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,858 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,861 INFO:usb.core:Claiming interface 0 2010-04-07 12:22:12,865 INFO:usb.core:Releasing interface 0 ....... ====================================================================== ERROR: runTest (test_backend.BackendTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/mcuee/mcu/pyusb/pyusb/tests/test_backend.py", line 49, in runTest self.test_open_device() File "/home/mcuee/mcu/pyusb/pyusb/tests/test_backend.py", line 119, in test_op en_device self.handle = self.backend.open_device(self.dev) File "/usr/lib/python2.5/site-packages/usb/backend/libusb10.py", line 427, in open_device _check(_lib.libusb_open(dev.devid, byref(handle))) File "/usr/lib/python2.5/site-packages/usb/backend/libusb10.py", line 344, in _check raise USBError(_str_error[retval.value]) USBError: Access denied (insufficient permissions) ====================================================================== FAIL: runTest (test_backend.BackendTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/mcuee/mcu/pyusb/pyusb/tests/test_backend.py", line 44, in runTest self.test_enumerate_devices() File "/home/mcuee/mcu/pyusb/pyusb/tests/test_backend.py", line 67, in test_enu merate_devices self.fail('PyUSB test device not found') AssertionError: PyUSB test device not found ---------------------------------------------------------------------- Ran 13 tests in 0.510s FAILED (failures=1, errors=1) -- Xiaofan http://mcuee.blogspot.com ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users