From: David P. C. <dav...@gm...> - 2009-01-28 19:28:46
|
Yes. See here: $ 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 (both user "David" and "Administrator" have administrator rights in WinXP) DAvid On Wed, Jan 28, 2009 at 8:09 PM, Wander Lairson <wan...@gm...>wrote: > Is the usb.pyd in the site-packages file? (or usb.dll) > > 2009/1/29 David Portabella Clotet <dav...@gm...>: > > Hello, > > > > I am having problems installing PyUSB for Cygwin. > > > > I've downloaded pyusb-0.4.1.tar.gz from: > > http://pyusb.berlios.de/ > > http://sourceforge.net/projects/pyusb > > > > --- > > Then, based on the README file, I follow the steps: > > > > -install cygwin > > > > -download and execute libusb-win32-filter-bin-0.1.12.1.exe from > > http://libusb-win32.sourceforge.net > > > > $ 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/ > > > > $ 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 > > > > ++++++++++++++ > > So, the installation seems to work. > > However, I try with: > > > > $ cd samples > > $ python usbenum.py > > Traceback (most recent call last): > > File "usbenum.py", line 7, in <module> > > import usb > > ImportError: No such file or directory > > > > ---- > > and it does not work. > > > > What can be the problem? > > > > > > Best regards, > > DAvid > > |