By the way, it feels like the problem with libusb_init is that it cannot load winusb.dll, but I haven't debug enough to be sure about that...
2010/4/6 Wander Lairson <wander.lair...@gmail.com>: > Kind of strange, for libusb 1.0 fails on libusb_init call, and libusb > 0.1 is sucessfully loaded: > > > wan...@darkstar /cygdrive/c/Projetos/pyusb/trunk > $ python > Python 2.5.5 (r255:77872, Mar 15 2010, 00:43:13) > [GCC 4.3.4 20090804 (release) 1] on cygwin > Type "help", "copyright", "credits" or "license" for more information. >>>> from usb.backend import libusb10, libusb01 >>>> b = libusb01.get_backend() >>>> b = libusb10.get_backend() > 2010-04-06 21:56:10,509 DEBUG:usb.backend.libusb10:Error loading libusb 1.0 > back > end > Traceback (most recent call last): > File "../usb/backend/libusb10.py", line 558, in get_backend > File "../usb/backend/libusb10.py", line 375, in __init__ > File "../usb/backend/libusb10.py", line 344, in _check > USBError: Unknown error > > wan...@darkstar /cygdrive/c/Projetos/pyusb/trunk > $ > > Note that after try to load libusb 1.0, the python interpreter dies... > > 2010/4/6 Xiaofan Chen <xiaof...@gmail.com>: >> On Tue, Apr 6, 2010 at 10:09 PM, Wander Lairson >> <wander.lair...@gmail.com> wrote: >>> Oh, I haven't realized that the problem was just library names... >>> Sorry making you loosing your time.. I updated the code to support >>> cygwin libraries, rev 58 should work. >>> >> >> Unfortunately not, Cygwin seems to be a bit different. >> >> mc...@acerpc ~/mcu/pyusb/pyusb/usb >> $ export PYUSB_DEBUG_LEVEL=debug >> >> mc...@acerpc ~/mcu/pyusb/pyusb/usb >> $ env | grep PYUSB >> PYUSB_DEBUG_LEVEL=debug >> >> mc...@acerpc ~/mcu/pyusb/pyusb >> $ svn update >> At revision 58. >> >> mc...@acerpc ~/mcu/pyusb/pyusb/usb >> $ python >> Python 2.5.2 (r252:60911, Dec 2 2008, 09:26:14) >> [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin >> Type "help", "copyright", "credits" or "license" for more information. >>>>> import usb.core >>>>> import usb.backend.libusb10 >>>>> b=usb.backend.libusb10.get_backend() >> 2010-04-07 07:41:30,974 DEBUG:usb.backend.libusb10:Error loading libusb 1.0 >> back >> end >> Traceback (most recent call last): >> File "/usr/lib/python2.5/site-packages/usb/backend/libusb10.py", line 556, >> in >> get_backend >> _lib = _load_library() >> File "/usr/lib/python2.5/site-packages/usb/backend/libusb10.py", line 151, >> in >> _load_library >> raise OSError('USB library could not be found') >> OSError: USB library could not be found >>>>> import usb.backend.libusb01 >>>>> a=usb.backend.libusb01.get_backend() >> 2010-04-07 07:41:53,032 DEBUG:usb.backend.libusb01:Error loading libusb 0.1 >> back >> end >> Traceback (most recent call last): >> File "/usr/lib/python2.5/site-packages/usb/backend/libusb01.py", line 512, >> in >> get_backend >> _lib = _load_library() >> File "/usr/lib/python2.5/site-packages/usb/backend/libusb01.py", line 171, >> in >> _load_library >> raise OSError('USB library could not be found') >> OSError: USB library could not be found >>>>> >> >> -- >> 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 >> > ------------------------------------------------------------------------------ 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