On Thu, Apr 8, 2010 at 1:01 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Thu, Apr 8, 2010 at 8:08 AM, Wander Lairson <wander.lair...@gmail.com> > wrote: >> I tried to manually interact with device using python command prompt, >> and it worked fine: >> >> C:\Projetos\pyusb\trunk>python >> ActivePython 2.6.1.1 (ActiveState Software Inc.) based on >> Python 2.6.1 (r261:67515, Dec 5 2008, 13:58:38) [MSC v.1500 32 bit (Intel)] >> on >> win32 >> Type "help", "copyright", "credits" or "license" for more information. > > Ah I will check again. I am using Python 2.6.4 from Python.org, not > ActivePython. But I think the result should be similar. >
I do not have the test device for this PC. But it seems to me that no more error when loading the libusb1.0 backend. The results for Python 2.5 and 2.6 are the same. This PC runs Windows XP Professional SP2. C:\cygwin\home\XFCHEN\pyusb\pyusb\tests>set PYUSB_DEBUG_LEVEL=debug C:\cygwin\home\XFCHEN\pyusb\pyusb\tests>c:\Python26\python.exe testall.py 2010-04-08 15:21:18,706 INFO:usb.core:Using backend "usb.backend.libusb10" 2010-04-08 15:21:19,378 WARNING:usb.test:Test hardware not connected 2010-04-08 15:21:19,410 WARNING:usb.test:Test hardware not found for backend usb .backend.libusb10 2010-04-08 15:21:19,410 WARNING:usb.test:Test hardware not found for backend usb .backend.libusb01 2010-04-08 15:21:19,424 DEBUG:usb.backend.openusb:Error loading OpenUSB backend Traceback (most recent call last): File "C:\cygwin\home\XFCHEN\pyusb\pyusb\usb\backend\openusb.py", line 568, in get_backend _lib = _load_library() File "C:\cygwin\home\XFCHEN\pyusb\pyusb\usb\backend\openusb.py", line 148, in _load_library raise OSError('USB library could not be found') OSError: USB library could not be found ....... ---------------------------------------------------------------------- Ran 7 tests in 0.000s OK C:\cygwin\home\XFCHEN\pyusb\pyusb\tests>c:\Python25\python.exe testall.py 2010-04-08 15:23:58,073 INFO:usb.core:Using backend "usb.backend.libusb10" 2010-04-08 15:23:58,448 WARNING:usb.test:Test hardware not connected 2010-04-08 15:23:58,480 WARNING:usb.test:Test hardware not found for backend usb .backend.libusb10 2010-04-08 15:23:58,496 WARNING:usb.test:Test hardware not found for backend usb .backend.libusb01 2010-04-08 15:23:58,496 DEBUG:usb.backend.openusb:Error loading OpenUSB backend Traceback (most recent call last): File "C:\cygwin\home\XFCHEN\pyusb\pyusb\usb\backend\openusb.py", line 568, in get_backend _lib = _load_library() File "C:\cygwin\home\XFCHEN\pyusb\pyusb\usb\backend\openusb.py", line 148, in _load_library raise OSError('USB library could not be found') OSError: USB library could not be found ....... ---------------------------------------------------------------------- Ran 7 tests in 0.000s OK -- 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