From: David P. C. <dav...@gm...> - 2009-01-31 23:33:48
|
Hello again Wander, Here it is what I tried: $ 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 It doesn't like as a python path problem. There is not ldd in cygwin, but I found an alternative ldd.sh 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". any idea? I looked for such a file: $ find / | grep -i .*usb.*dll.* here some relevant results: /cygdrive/c/WINDOWS/system32/libusb0.dll /lib/python2.5/site-packages/usb.dll /usr/lib/python2.5/site-packages/usb.dll and $ find / | grep -i ".*usb.*\.a.*" /cygdrive/c/Program Files/LibUSB-Win32/lib/gcc/libusb.a /lib/libusb.a /lib/w32api/libusbcamd.a /lib/w32api/libusbcamd2.a /usr/lib/libusb.a /usr/lib/w32api/libusbcamd.a /usr/lib/w32api/libusbcamd2.a but not cygusb0.dll file found. Regards, DAvid On Fri, Jan 30, 2009 at 10:51 AM, Wander Lairson <wan...@gm...>wrote: > Well, I would try but as I am moving to a new house, my computer is > inside a box. > You could try open a interactive python session from site-packages > directory and type: > > import usb > > If it works, we have a problem regarding python path. If it does not > work, try this: > > ldd usb.dll > > And look if at the results to check if libusb dll is found. > Let me know the results. > > PS: please, reply to mailing list, your doubt could be the doubt of > others... ;) > > |