You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(3) |
Nov
(4) |
Dec
|
2008 |
Jan
(1) |
Feb
(5) |
Mar
(2) |
Apr
|
May
(8) |
Jun
(4) |
Jul
|
Aug
|
Sep
(11) |
Oct
|
Nov
|
Dec
(20) |
2009 |
Jan
(16) |
Feb
(7) |
Mar
(9) |
Apr
(4) |
May
(6) |
Jun
(17) |
Jul
(3) |
Aug
(4) |
Sep
(5) |
Oct
(10) |
Nov
(16) |
Dec
|
2010 |
Jan
(22) |
Feb
(18) |
Mar
(9) |
Apr
(102) |
May
(29) |
Jun
(40) |
Jul
(80) |
Aug
(21) |
Sep
(47) |
Oct
(13) |
Nov
(19) |
Dec
(45) |
2011 |
Jan
(82) |
Feb
(20) |
Mar
(47) |
Apr
(25) |
May
(18) |
Jun
(24) |
Jul
(24) |
Aug
(47) |
Sep
(23) |
Oct
(22) |
Nov
(69) |
Dec
(20) |
2012 |
Jan
(56) |
Feb
(42) |
Mar
(43) |
Apr
(27) |
May
(18) |
Jun
(11) |
Jul
(61) |
Aug
(19) |
Sep
(13) |
Oct
(49) |
Nov
(32) |
Dec
(37) |
2013 |
Jan
(46) |
Feb
(14) |
Mar
(13) |
Apr
(20) |
May
(20) |
Jun
(3) |
Jul
(19) |
Aug
(7) |
Sep
(4) |
Oct
(33) |
Nov
(7) |
Dec
(15) |
2014 |
Jan
(5) |
Feb
(21) |
Mar
(3) |
Apr
(3) |
May
(30) |
Jun
(1) |
Jul
(30) |
Aug
(2) |
Sep
(22) |
Oct
(14) |
Nov
(22) |
Dec
(6) |
2015 |
Jan
(7) |
Feb
(4) |
Mar
(16) |
Apr
(9) |
May
(17) |
Jun
(28) |
Jul
(3) |
Aug
(18) |
Sep
(3) |
Oct
|
Nov
(6) |
Dec
(3) |
2016 |
Jan
(15) |
Feb
(18) |
Mar
(12) |
Apr
(14) |
May
(15) |
Jun
(3) |
Jul
(3) |
Aug
(42) |
Sep
(24) |
Oct
(6) |
Nov
(5) |
Dec
(6) |
2017 |
Jan
(6) |
Feb
(2) |
Mar
(12) |
Apr
|
May
(1) |
Jun
(3) |
Jul
(2) |
Aug
(6) |
Sep
|
Oct
(1) |
Nov
(5) |
Dec
(7) |
2018 |
Jan
|
Feb
(9) |
Mar
(7) |
Apr
|
May
(10) |
Jun
(20) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(20) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(9) |
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(5) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
|
Nov
(8) |
Dec
(2) |
2021 |
Jan
(16) |
Feb
(1) |
Mar
|
Apr
(9) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
(2) |
Nov
|
Dec
(1) |
2022 |
Jan
|
Feb
(7) |
Mar
|
Apr
(4) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(2) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: David P. C. <dav...@gm...> - 2009-02-06 22:23:45
|
Just to let you know, I've send this email to the libusb mailing list. ---------- Forwarded message ---------- From: David Portabella Clotet <dav...@gm...> Date: Fri, Feb 6, 2009 at 11:14 PM Subject: libusb-win32 & pyusb-0.4.1 for cygwin To: lib...@li... 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 |
From: Phil H. <ph...@ha...> - 2009-02-02 10:27:13
|
Christopher Moore wrote: > I was wondering if there was a way to recover (aka regain communication > with the device) from a "Timer expired" message. The only way I've > found so far is to physically re-plugin the device. I have a different approach to you, I have a class PlugUSBDevice which initialises the device. Here is a cut down version of how it is initalised: class PlugUSBDevice(object) : PLUG_VENDOR_ID = 0x08D3 PLUG_PRODUCT_ID = 0x0001 PLUG_INTERFACE_ID = 0 PLUG_BULK_IN_EP = 0x2 PLUG_BULK_OUT_EP = 0x81 MAX_PACKET_SIZE = 8 def __init__(self) : self.device_descriptor = DeviceDescriptor(PlugUSBDevice.PLUG_VENDOR_ID, PlugUSBDevice.PLUG_PRODUCT_ID, PlugUSBDevice.PLUG_INTERFACE_ID) self.handle = None self.devicestate = PlugUSBDevice.MIMIO_MODESTATE_INVALID self.greeted = 0 self.currentMaxPacketSize = 8 def open(self) : self.device = self.device_descriptor.getDevice() self.handle = self.device.open() self.handle.reset() if sys.platform == 'darwin' : # XXX : For some reason, Mac OS X doesn't set the # configuration automatically like Linux does. self.handle.setConfiguration(1) self.handle.claimInterface(self.device_descriptor.interface_id) #self.handle.setAltInterface(self.device_descriptor.interface_id) #print "handle", self.handle #print dir(self.handle) print "Claimed interface" I then in my other routine call: self.plug = PlugUSBDevice() self.plug.open() if something goes wrong I can just call open again and it resets the device. Regards Phil Hannent |
From: Wander L. <wan...@gm...> - 2009-02-02 09:56:56
|
Hmmm... I think this file is a libusb dependency for cygwin... I guess this a question to libusb guys. Would mind asking it at libusb mailing list? Wander 2009/2/1 David Portabella Clotet <dav...@gm...>: > 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... ;) >> > > |
From: Christopher M. <chr...@bn...> - 2009-02-01 17:12:42
|
Hey everyone, I was wondering if there was a way to recover (aka regain communication with the device) from a "Timer expired" message. The only way I've found so far is to physically re-plugin the device. I've tried using the following without success: handle.resetEndpoint(0x83) handle.clearHalt(0x83) handle.reset() The way I'm claiming the device is the following: -------------------------------------------------------- # linksys CIT200 Device Info vendor_id = 5041 product_id = 29 buses = usb.busses() for bus in buses : for device in bus.devices : if device.idVendor == vendor_id : if device.idProduct == product_id : # found the CIT200 print "Found Linksys Device ..." linksys = device # setup interface and configs ... there are 4 interfaces for this device... config = linksys.configurations[0] interface = config.interfaces[3][0] endpoint = interface.endpoints[0] # open device handle = linksys.open() handle.detachKernelDriver(3) handle.getDescriptor(usb.DT_REPORT,0,0x9c,usb.ENDPOINT_OUT) handle.controlMsg(0x21,0x0a,0,0,0x03) -------------------------------------------------------- I haven't been able to find anything else in the pyUSB docs. Any help would be appreciated. Thanks Christopher |
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... ;) > > |
From: Wander L. <wan...@gm...> - 2009-01-30 09:51:30
|
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... ;) 2009/1/30 David Portabella Clotet <dav...@gm...>: > > > On Thu, Jan 29, 2009 at 10:38 AM, Wander Lairson <wan...@gm...> > wrote: >> >> Probably libusb is not in your cygwin lib path. Try to run some C >> program demo therein... > > i've tried with: > $ export LD_LIBRARY_PATH=/usr/lib/ > $ python usbenum.py > > but I get the same error. > (remember that I copied libusb.a from /cygdrive/c/Program\ > Files/LibUSB-Win32/lib/gcc/ to /usr/lib/ according to the pyusb manual) > > > outside cygwin, i've tried and it seems that libusb works: > $ "/cygdrive/c/Program Files/LibUSB-Win32/bin/testlibusb.exe" > Dev #0: 0000 - 0000 > Dev #1: Maxtor - Basics Desktop > Dev #2: 046D - 08B0 > > --- > i've used this package that lists the python installed packages: > http://code.activestate.com/recipes/440501/ > and I didn't find anything with "*usb*". > $ python pkgsearch.py >a.txt > /home/David/bb/pkgsearch.py:125: DeprecationWarning: the gopherlib module is > deprecated > M = load_module(pkgname, of, pathname, desc) > /home/David/bb/pkgsearch.py:125: DeprecationWarning: The sre module is > deprecated, please import re. > M = load_module(pkgname, of, pathname, desc) > /usr/lib/python2.5/xmllib.py:9: DeprecationWarning: The xmllib module is > obsolete. Use xml.sax instead. > warnings.warn("The xmllib module is obsolete. Use xml.sax instead.", > DeprecationWarning) > /home/David/bb/pkgsearch.py:125: DeprecationWarning: the rgbimg module is > deprecated > M = load_module(pkgname, of, pathname, desc) > > can you please try this and tell me if your find the usb packaged listed > here? > > or any other idea to try? > > Regards, > DAvid > > >> >> 2009/1/29 David Portabella Clotet <dav...@gm...>: >> > 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 >> >> >> > >> > >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Pyusb-users mailing list >> Pyu...@li... >> https://lists.sourceforge.net/lists/listinfo/pyusb-users > > |
From: Wander L. <wan...@gm...> - 2009-01-29 09:38:15
|
Probably libusb is not in your cygwin lib path. Try to run some C program demo therein... 2009/1/29 David Portabella Clotet <dav...@gm...>: > 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 >> > > |
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 > > |
From: Wander L. <wan...@gm...> - 2009-01-28 19:09:37
|
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 > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Pyusb-users mailing list > Pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > |
From: David P. C. <dav...@gm...> - 2009-01-28 18:41:05
|
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 |
From: Santiago P. Sanchez-M. <sp...@gm...> - 2009-01-09 12:55:30
|
Yes, it is worth! I used it in my office for some prototyping of different hardware. The final version of the driver is implemented on C (using libusb also) due to interoperability, but the experience with your library was very nice, and saved us from M$ ugly, unproductive, and non portable DDK. It made my work much more unix like, and made me save a lot on antidepresants. I should send you some wine. :D On Fri, Jan 9, 2009 at 12:39 PM, Wander Lairson <wan...@gm...>wrote: > WOW! When I started PyUSB, I just wanted a libusb binding for > prototypes. But since its first release, I see that it is being > greater to people than I ever thought... It is good to hear that PyUSB > is being worth... > > Wander > > 2009/1/9 Phil Hannent <ph...@ha...>: > > Hello, > > > > Just wanted to say thank you for your help. > > > > Yesterday I presented my first beta of my driver to my boss and the > people that > > commissioned the work. It all worked perfectly and I get to present it > to 30+ > > sales people on Monday. > > > > PyUSB is a fantastic library. > > > > Regards > > Phil Hannent > > > > > > > ------------------------------------------------------------------------------ > > Check out the new SourceForge.net Marketplace. > > It is the best place to buy or sell services for > > just about anything Open Source. > > http://p.sf.net/sfu/Xq1LFB > > _______________________________________________ > > Pyusb-users mailing list > > Pyu...@li... > > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > > > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Pyusb-users mailing list > Pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |
From: Wander L. <wan...@gm...> - 2009-01-09 12:50:57
|
WOW! When I started PyUSB, I just wanted a libusb binding for prototypes. But since its first release, I see that it is being greater to people than I ever thought... It is good to hear that PyUSB is being worth... Wander 2009/1/9 Phil Hannent <ph...@ha...>: > Hello, > > Just wanted to say thank you for your help. > > Yesterday I presented my first beta of my driver to my boss and the people that > commissioned the work. It all worked perfectly and I get to present it to 30+ > sales people on Monday. > > PyUSB is a fantastic library. > > Regards > Phil Hannent > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Pyusb-users mailing list > Pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > |
From: Phil H. <ph...@ha...> - 2009-01-09 10:59:09
|
Hello, Just wanted to say thank you for your help. Yesterday I presented my first beta of my driver to my boss and the people that commissioned the work. It all worked perfectly and I get to present it to 30+ sales people on Monday. PyUSB is a fantastic library. Regards Phil Hannent |
From: Phil H. <ph...@ha...> - 2009-01-05 09:41:53
|
Wander Lairson wrote: > hmmm, I think something like this should work: > > try: > import usb > except: > print "PyUSB not found" Thank you very much. > 2009/1/2 Phil Hannent <ph...@ha...>: >> I am setting up my application to start the driver and that is all OK. My >> question is what is the best way to determine if the Linux machine has python >> and PyUSB installed? |
From: Wander L. <wan...@gm...> - 2009-01-05 00:40:13
|
detachKernelDriver will fail if you have no enough permissions, won't it? 2009/1/2 Jim Easterbrook <ji...@ji...>: > Karl Ostmo wrote: >> I use this approach in my code: >> >> try: >> self.handle.claimInterface( 0 ) >> except usb.USBError, e: >> if e.message.find("could not claim interface") >= 0: >> self.handle.detachKernelDriver( 0 ) >> self.handle.claimInterface( 0 ) > > I'm the author of the weather station software David is trying to use. I > call detachKernelDriver before calling claimInterface anyway, so I don't > think this is David's problem. > > Is there an advantage in not calling detachKernelDriver unless > claimInterface has failed? > > -- > Jim Easterbrook <http://www.jim-easterbrook.me.uk/> > > ------------------------------------------------------------------------------ > _______________________________________________ > Pyusb-users mailing list > Pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |
From: Wander L. <wan...@gm...> - 2009-01-05 00:38:27
|
hmmm, I think something like this should work: try: import usb except: print "PyUSB not found" Wander 2009/1/2 Phil Hannent <ph...@ha...>: > Hello, > > I am setting up my application to start the driver and that is all OK. My > question is what is the best way to determine if the Linux machine has python > and PyUSB installed? > > Regards > Phil Hannent > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Pyusb-users mailing list > Pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > |
From: Jim E. <ji...@ji...> - 2009-01-02 14:51:49
|
Karl Ostmo wrote: > I use this approach in my code: > > try: > self.handle.claimInterface( 0 ) > except usb.USBError, e: > if e.message.find("could not claim interface") >= 0: > self.handle.detachKernelDriver( 0 ) > self.handle.claimInterface( 0 ) I'm the author of the weather station software David is trying to use. I call detachKernelDriver before calling claimInterface anyway, so I don't think this is David's problem. Is there an advantage in not calling detachKernelDriver unless claimInterface has failed? -- Jim Easterbrook <http://www.jim-easterbrook.me.uk/> |
From: Phil H. <ph...@ha...> - 2009-01-02 14:48:38
|
Hello, I am setting up my application to start the driver and that is all OK. My question is what is the best way to determine if the Linux machine has python and PyUSB installed? Regards Phil Hannent |
From: Wander L. <wan...@gm...> - 2009-01-01 23:40:07
|
Hi Maciej, No libusb 1.0 support is yet planned. I intend to start the next major version of PyUSB (which will include libusb 1.0) at about March. PyUSB probably will include support for openusb and for 0.1 branch of libusb also. Wander 2009/1/2 Maciej Dziardziel <mac...@wp...>: > Dnia 1-01-2009 o godz. 10:19 Maciej Dziardziel napisał(a): > Hi > > As libusb 1.0 is ready, i'd like to know status of python support for > it. I am preparing some driver and that would really usefull for me. > anyone working on it? > > Best regards > -- > Maciej "Fiedzia" Dziardziel > mac...@wp... > > ---------------------------------------------------- > Potrzebujesz pomocy szkolnej? > Streszczenia lektur, gotowe opracowania, > recenzje filmów i książek, Kliknij: > http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fnaleniucha.html&sid=600 > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Pyusb-users mailing list > Pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |
From: Maciej D. <mac...@wp...> - 2009-01-01 15:28:44
|
Dnia 1-01-2009 o godz. 10:19 Maciej Dziardziel napisał(a): Hi As libusb 1.0 is ready, i'd like to know status of python support for it. I am preparing some driver and that would really usefull for me. anyone working on it? Best regards -- Maciej "Fiedzia" Dziardziel mac...@wp... ---------------------------------------------------- Potrzebujesz pomocy szkolnej? Streszczenia lektur, gotowe opracowania, recenzje filmów i książek, Kliknij: http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fnaleniucha.html&sid=600 |
From: Karl O. <ko...@gm...> - 2008-12-31 18:47:32
|
Hi David, I use this approach in my code: try: self.handle.claimInterface( 0 ) except usb.USBError, e: if e.message.find("could not claim interface") >= 0: self.handle.detachKernelDriver( 0 ) self.handle.claimInterface( 0 ) Also, you might need to be root, by running the program with "sudo", for instance. Karl On Wed, Dec 31, 2008 at 4:21 AM, David Portabella Clotet < da...@po...> wrote: > Hello, > I am using PyUSB 2.6 in OSX 10.5.4 (installed using Fink) to use a weather > station software (http://www.jim-easterbrook.me.uk/weather/ ) > > When I run "python TestWeatherStation.py" without the weather station > connected, it correctly says that it does not find the weather station. > > When I run it again with the weather station connected, it says the > following error: > usb.USBError: usb_claim_interface: couldn't claim interface > > I am using the last version PyUSB 2.6, installed using Fink. > Do you know what could be the problem? > The author of the Weather station software told me: > >if there is a way of examining what USB devices are active you might be > >able to see if another driver is claiming the weather station. I know > >that on Windows I had to disable the operating system driver for it > >(which stopped the station's own software using it) before being able to > >talk to it with PyUSB. > > do you know how to do this? > > > > Many thanks, > DAvid > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Pyusb-users mailing list > Pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > -- Code or be coded. |
From: David P. C. <da...@po...> - 2008-12-31 10:21:33
|
Hello, I am using PyUSB 2.6 in OSX 10.5.4 (installed using Fink) to use a weather station software (http://www.jim-easterbrook.me.uk/weather/ ) When I run "python TestWeatherStation.py" without the weather station connected, it correctly says that it does not find the weather station. When I run it again with the weather station connected, it says the following error: usb.USBError: usb_claim_interface: couldn't claim interface I am using the last version PyUSB 2.6, installed using Fink. Do you know what could be the problem? The author of the Weather station software told me: >if there is a way of examining what USB devices are active you might be >able to see if another driver is claiming the weather station. I know >that on Windows I had to disable the operating system driver for it >(which stopped the station's own software using it) before being able to >talk to it with PyUSB. do you know how to do this? Many thanks, DAvid |
From: Phil H. <ph...@ha...> - 2008-12-23 12:47:08
|
Phil Hannent wrote: > Wander Lairson wrote: > >> By I remmember from USB Spec, endpoint 0x81 should be IN (MSB 1) and >> endpoint 0x2 should be OUT (MSB 0). I don't what are exactly the side >> effects of inverting them... Did you write the device firmware also? >> If not, probably you should swap the values of PLUG_BULK_IN_EP and >> PLUG_BULK_OUT_EP. If so, revise your fw source code to follow the >> correct USB Spec. After that, report the result to the list. >> >> > Very interesting, no I did not write the firmware and I have nothing to > do with it. I have tried swapping the values and it causes it to fail > at the "Hello" with a "usb.USBError: No error" message. > > I noticed that pyGarmin has the same values as I do. > http://bazaar.launchpad.net/~pygarmin-dev/pygarmin/trunk/annotate/head%3A/garmin.py > > I was thinking that when I am doing the read the interrupt might not > have any data and that might be why it crashes: > read_bytes = self.handle.interruptRead(PlugUSBDevice.PLUG_BULK_OUT_EP,8); > usb.USBError: No error > > Do I have to catch the error and ignore it in this case just because > someone has not put a pen against the board yet? > Woohoo, success. I have the pen data coming out of the board. I ignore the No error message. I also had a delay within my loop so that I could see the messages, I reduced the time.sleep(0.5) to time.sleep(0.005) and the interrupt is reading the packets just fine 90% of the time. It gets offset at sometimes but I am sure that will be a tuning issue. Thanks for the help so far. PyUSB is a fantastic tool. Regards Phil Hannent |
From: Phil H. <ph...@ha...> - 2008-12-23 11:24:58
|
Wander Lairson wrote: > By I remmember from USB Spec, endpoint 0x81 should be IN (MSB 1) and > endpoint 0x2 should be OUT (MSB 0). I don't what are exactly the side > effects of inverting them... Did you write the device firmware also? > If not, probably you should swap the values of PLUG_BULK_IN_EP and > PLUG_BULK_OUT_EP. If so, revise your fw source code to follow the > correct USB Spec. After that, report the result to the list. > Very interesting, no I did not write the firmware and I have nothing to do with it. I have tried swapping the values and it causes it to fail at the "Hello" with a "usb.USBError: No error" message. I noticed that pyGarmin has the same values as I do. http://bazaar.launchpad.net/~pygarmin-dev/pygarmin/trunk/annotate/head%3A/garmin.py I was thinking that when I am doing the read the interrupt might not have any data and that might be why it crashes: read_bytes = self.handle.interruptRead(PlugUSBDevice.PLUG_BULK_OUT_EP,8); usb.USBError: No error Do I have to catch the error and ignore it in this case just because someone has not put a pen against the board yet? Regards Phil |
From: Wander L. <wan...@gm...> - 2008-12-23 04:36:37
|
By I remmember from USB Spec, endpoint 0x81 should be IN (MSB 1) and endpoint 0x2 should be OUT (MSB 0). I don't what are exactly the side effects of inverting them... Did you write the device firmware also? If not, probably you should swap the values of PLUG_BULK_IN_EP and PLUG_BULK_OUT_EP. If so, revise your fw source code to follow the correct USB Spec. After that, report the result to the list. 2008/12/23 Phil Hannent <ph...@ha...>: > Wander Lairson wrote: >> What are the constants PLUG_BULK_IN_EP and PLUG_BULK_OUT_EP? >> > They are: > PLUG_BULK_IN_EP = 0x2 > PLUG_BULK_OUT_EP = 0x81 > > The device enumerates to: > Device: 006 > Device class: 255 > Device sub class: 0 > Device protocol: 255 > Max packet size: 8 > idVendor: 2259 > idProduct: 1 > Device Version: 00.01 > Configuration: 1 > Total length: 32 > selfPowered: 0 > remoteWakeup: 0 > maxPower: 200 > Interface: 0 > Alternate Setting: 0 > Interface class: 255 > Interface sub class: 0 > Interface protocol: 255 > Endpoint: 0x81L > Type: 3 > Max packet size: 8 > Interval: 1 > Endpoint: 0x2L > Type: 3 > Max packet size: 8 > Interval: 1 > > I have just been googling some more and found this: > http://osdir.com/mlpython.pyusb.user/2008-05/msg00001.html > > Where the suggestion is to claim the interface. This is my open function: > def open(self) : > self.device = self.device_descriptor.getDevice() > self.handle = self.device.open() > self.handle.reset() > if sys.platform == 'darwin' : > # XXX : For some reason, Mac OS X doesn't set the > # configuration automatically like Linux does. > self.handle.setConfiguration(1) > self.handle.claimInterface(self.device_descriptor.interface_id) > > What do you think? > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Pyusb-users mailing list > Pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > |