I am not so sure why pyusb can not find the backend
under Cygwin Python (latest svn). Kind of strange.

I have cygusb0.dll and cygusb-1.0.dll under
c:\cygwin\bin and they are the DLL name for
libusb-win32 0.1 and libusb 1.0 Windows under
Cygwin respectively.

I even tried to add 'cygusb0' and 'cygusb-1.0'
for the load library function, but it does not
seem to work. Maybe Cygwin is a bit special.

mc...@acerpc ~/mcu/pyusb/pyusb
$ python setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/usb
copying usb/core.py -> build/lib/usb
copying usb/legacy.py -> build/lib/usb
copying usb/util.py -> build/lib/usb
copying usb/_interop.py -> build/lib/usb
copying usb/__init__.py -> build/lib/usb
creating build/lib/usb/backend
copying usb/backend/libusb01.py -> build/lib/usb/backend
copying usb/backend/libusb10.py -> build/lib/usb/backend
copying usb/backend/openusb.py -> build/lib/usb/backend
copying usb/backend/__init__.py -> build/lib/usb/backend
running install_lib
running install_egg_info
Removing /usr/lib/python2.5/site-packages/PyUSB-1.0.0_a0-py2.5.egg-info
Writing /usr/lib/python2.5/site-packages/PyUSB-1.0.0_a0-py2.5.egg-info

mc...@acerpc ~/mcu/pyusb/pyusb/tests
$ 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()
>>> assert b is not None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError
>>> import usb.backend.libusb01
>>> a=usb.backend.libusb01.get_backend()
>>> assert a is not None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError

-- 
Xiaofan http://mcuee.blogspot.com

------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to