Hmmmm, I am sorry, I forgot, libusb under Windows is another project:
libusb-win32.sf.net. I guess they will
be more helpful regarding to this issue...

2009/2/13 David Portabella Clotet <david.portabe...@gmail.com>:
> Hello,
>
> I did not get any answer from the libusb mailing list.
>
> Can you please try this command and let me know what you get?
> /usr/bin/cygcheck `/usr/bin/cygpath -w -a
> /usr/lib/python2.5/site-packages/usb.dll`
>
> I get the following:
> $ /usr/bin/cygcheck `/usr/bin/cygpath -w -a
> /usr/lib/python2.5/site-packages/usb.dll`
> C:\cygwin\lib\python2.5\site-packages\usb.dll
>   C:\cygwin\bin\cygwin1.dll
>     C:\WINDOWS\system32\ADVAPI32.DLL
>       C:\WINDOWS\system32\KERNEL32.dll
>         C:\WINDOWS\system32\ntdll.dll
>       C:\WINDOWS\system32\RPCRT4.dll
>         C:\WINDOWS\system32\Secur32.dll
> Error: could not find cygusb0.dll
>   C:\cygwin\bin\libpython2.5.dll
>
> ---
> Regards,
> DAvid
>
>
>
>
> On Fri, Feb 6, 2009 at 11:23 PM, David Portabella Clotet
> <david.portabe...@gmail.com> wrote:
>>
>> Just to let you know, I've send this email to the libusb mailing list.
>>
>> ---------- Forwarded message ----------
>> From: David Portabella Clotet <david.portabe...@gmail.com>
>> Date: Fri, Feb 6, 2009 at 11:14 PM
>> Subject: libusb-win32 & pyusb-0.4.1 for cygwin
>> To: libusb-win32-de...@lists.sourceforge.net
>>
>>
>> Hello,
>>
>> I am having problems installing libusb and PyUSB for Cygwin.
>> Based on the README file of pyusb, I follow the steps:
>>
>> -download and execute libusb-win32-filter-bin-0.1.12.1.exe from
>> http://libusb-win32.sourceforge.net
>>
>> $ "/cygdrive/c/Program Files/LibUSB-Win32/bin/testlibusb.exe"
>> Dev #0: 0000 - 0000
>>  Dev #1: Maxtor   - Basics Desktop
>>  Dev #2: 046D - 08B0
>>
>> #libusb seems to work
>>
>>
>> -install cygwin
>>
>> $ cp /cygdrive/c/Program\ Files/LibUSB-Win32/lib/gcc/libusb.a /usr/lib/
>> $ cp /cygdrive/c/Program Files/LibUSB-Win32/src/src/usb.h /usr/include/
>>
>> -download http://sourceforge.net/projects/pyusb
>> $ tar -xvzf pyusb-0.4.1.tar.gz
>> $ cd pyusb-0.4.1
>> $ python setup.py install
>> running install
>> running build
>> running build_ext
>> running install_lib
>> running install_egg_info
>> Removing /usr/lib/python2.5/site-packages/pyusb-0.4.1-py2.5.egg-info
>> Writing /usr/lib/python2.5/site-packages/pyusb-0.4.1-py2.5.egg-info
>>
>> $ ls -l /usr/lib/python2.5/site-packages/
>> total 2150
>> -rwxr-x---+ 1 Administrator Users    119 Dec  2 15:30 README
>> ...
>> -rw-r--r--  1 David         None     385 Jan 28 19:38
>> pyusb-0.4.1-py2.5.egg-info
>> -rwxr-xr-x  1 David         None  476414 Jan 26 21:21 usb.dll
>>
>> ++++++++++++++
>> So, the installation seems to work.
>> However, I try with:
>>
>> $ cd /usr/lib/python2.5/site-packages/
>> $ echo "import usb" >test.py
>> $ python test.py
>> Traceback (most recent call last):
>>  File "test.py", line 1, in <module>
>>
>>    import usb
>> ImportError: No such file or directory
>>
>>
>> Using ldd.sh for cygwin here: http://lassauge.free.fr/cygwin/archive.htm
>> $ ldd.sh /usr/lib/python2.5/site-packages/usb.dll
>> C:\cygwin\lib\python2.5\site-packages\usb.dll
>>  C:\cygwin\bin\cygwin1.dll
>>    C:\WINDOWS\system32\ADVAPI32.DLL
>>      C:\WINDOWS\system32\KERNEL32.dll
>>        C:\WINDOWS\system32\ntdll.dll
>>      C:\WINDOWS\system32\RPCRT4.dll
>>        C:\WINDOWS\system32\Secur32.dll
>> Error: could not find cygusb0.dll
>>  C:\cygwin\bin\libpython2.5.dll
>>
>> It has a problem finding "cygusb0.dll".
>> What can be the problem?
>>
>>
>> Best regards,
>> DAvid
>>
>>
>
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Pyusb-users mailing list
Pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to