From: Chris <ch...@pi...> - 2011-03-16 20:38:16
|
Hi, I'm running pyusb-1.0.0-a1 on Python 2.5.1 on OSX 10.5.8 and getting this error with connecting to the backend. Python 2.5.1 (r251:54863, Jun 11 2008, 17:26:19) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import usb.core >>> usb.core.find() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/myhome/pyusb-1.0.0-a1/usb/core.py", line 829, in find raise ValueError('No backend available') ValueError: No backend available Also the same error from running tests/testall.py .E..... ====================================================================== ERROR: runTest (test_util.FindDescriptorTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/myhome/Downloads/pyusb-1.0.0-a1/tests/test_util.py", line 66, in runTest d = usb.core.find(idVendor=ID_VENDOR) File "/Users/myhome/Downloads/pyusb-1.0.0-a1/usb/core.py", line 829, in find raise ValueError('No backend available') ValueError: No backend available ---------------------------------------------------------------------- Ran 7 tests in 0.005s FAILED (errors=1) It seems like libusb isn't installed correctly, but I used 'sudo apt-get install libusb' and after installing pyusb openusb.py, libusb10.py and libusb01.py are in /sw/lib/python2.5/site-packages/usb/backend. Am I missing something? Also setting the dubug var gives me this: ERROR:usb.backend.libusb10:Error loading libusb 1.0 backend Chris |
From: Bruce L. <bru...@gm...> - 2014-05-09 20:53:50
|
Good morning .. I have an iMac 7.1 running OS X Mavericks and use Enthought Canopy to run Python. I want to use Python to read data from and write data to USB ports. I have used MacPorts to install PyUSB and libusb using their portfiles. >From Idle I have run... import usb.core import usb.util dev = usb.core.find(find_all=True) and receive the following error... Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> dev = usb.core.find(find_all=True) File "/Library/Python/2.7/site-packages/usb/core.py", line 867, in find raise ValueError('No backend available') ValueError: No backend available I have trawled through the various web sites that identify this error and I have been unable to resolve the problem. Does anyone please have a solution? Thanks ... Bruce |
From: Wander L. C. <wan...@gm...> - 2014-05-09 22:22:55
|
2014-05-09 17:53 GMT-03:00 Bruce Lewis <bru...@gm...>: > Good morning .. > > I have an iMac 7.1 running OS X Mavericks and use Enthought Canopy to run > Python. > I want to use Python to read data from and write data to USB ports. > I have used MacPorts to install PyUSB and libusb using their portfiles. > From Idle I have run... > > import usb.core > import usb.util > dev = usb.core.find(find_all=True) > > and receive the following error... > > Traceback (most recent call last): > File "<pyshell#5>", line 1, in <module> > dev = usb.core.find(find_all=True) > File "/Library/Python/2.7/site-packages/usb/core.py", line 867, in find > raise ValueError('No backend available') > ValueError: No backend available > > I have trawled through the various web sites that identify this error and I > have been unable to resolve the problem. > Does anyone please have a solution? > Where is libusb installed at? -- Best Regards, Wander Lairson Costa |
From: Michael H. <mic...@ri...> - 2018-02-08 00:50:19
|
I'm having trouble make pyusb work at all. When typing usb stuff in interactive mode, usb.core.find(...) either produces ant empty list or something that prints as nothing. \Python27\python search.py produced ValueError: No backend available . search.py : import usb.core import usb.util import usb.control import array dev = usb.core.find(find_all=True) print dev dev = usb.core.find() dev = usb.core.find(find_all=True, idVendor=0x045e, idProduct=0x0040) # my mouse print dev dev = usb.core.find( idVendor=0x045e, idProduct=0x0040) # my mouse print dev dev = usb.core.find(find_all=True, idVendor=0x03eb, idProduct=0x2141) # Atmel ICE print dev dev = usb.core.find( idVendor=0x03eb, idProduct=0x2141) # Atmel ICE print dev I'm on Windows 10. A find on libusb produces only files with names beginning libusb0. How do I make pyusb work? Michael Hennebry |
From: Xiaofan C. <xia...@gm...> - 2018-02-24 03:37:55
|
On Thu, Feb 8, 2018 at 8:25 AM, Michael Hennebry <mic...@ri...> wrote: > I'm having trouble make pyusb work at all. > When typing usb stuff in interactive mode, > usb.core.find(...) either produces ant empty list > or something that prints as nothing. > \Python27\python search.py > produced ValueError: No backend available . > search.py : > import usb.core > import usb.util > import usb.control > import array > dev = usb.core.find(find_all=True) > print dev > dev = usb.core.find() > dev = usb.core.find(find_all=True, idVendor=0x045e, idProduct=0x0040) # my > mouse > print dev > dev = usb.core.find( idVendor=0x045e, idProduct=0x0040) # my > mouse > print dev > dev = usb.core.find(find_all=True, idVendor=0x03eb, idProduct=0x2141) # > Atmel ICE > print dev > dev = usb.core.find( idVendor=0x03eb, idProduct=0x2141) # > Atmel ICE > print dev > > I'm on Windows 10. > A find on libusb produces only files with names beginning libusb0. > How do I make pyusb work? pyusb supports libusb-win32 and libusb (aka libusb-1.0) under Windows. libusb-win32 is a bit old. So the better option is libusb Windows. 1) Use Zadig to install WinUSB driver to the device you are interested. https://github.com/libusb/libusb/wiki/Windows#driver-installation 2) Get latest version of libusb Windows binary (libusb-1.0.dll) and put it into a location your Python installation recognizes. -- Xiaofan |
From: Michael H. <mic...@ri...> - 2018-02-26 22:20:21
|
zadig gives me the following options: libusbK (v 3.0.7.0) libusb-win32 (v 1.2.6.0) winUSB (v 6.1.7600.16385) USB Serial (CDC) The current libusb0 (v 1.2.6.0) was not obtained through zadig. I think I got it by letting Windows go fish. My recollection is that nothing from zadig worked with avrdude. I want avrdude and python.so I don't have to go back and forth between libraries. I guess I'll have to try libusb-1.0 and hope it works. ' On Fri, Feb 23, 2018 at 9:11 PM, Xiaofan Chen <xia...@gm...> wrote: > On Thu, Feb 8, 2018 at 8:25 AM, Michael Hennebry > <mic...@ri...> wrote: > > I'm having trouble make pyusb work at all. > > When typing usb stuff in interactive mode, > > usb.core.find(...) either produces ant empty list > > or something that prints as nothing. > > \Python27\python search.py > > produced ValueError: No backend available . > > search.py : > > import usb.core > > import usb.util > > import usb.control > > import array > > dev = usb.core.find(find_all=True) > > print dev > > dev = usb.core.find() > > dev = usb.core.find(find_all=True, idVendor=0x045e, idProduct=0x0040) # > my > > mouse > > print dev > > dev = usb.core.find( idVendor=0x045e, idProduct=0x0040) # > my > > mouse > > print dev > > dev = usb.core.find(find_all=True, idVendor=0x03eb, idProduct=0x2141) # > > Atmel ICE > > print dev > > dev = usb.core.find( idVendor=0x03eb, idProduct=0x2141) # > > Atmel ICE > > print dev > > > > I'm on Windows 10. > > A find on libusb produces only files with names beginning libusb0. > > How do I make pyusb work? > > pyusb supports libusb-win32 and libusb (aka libusb-1.0) under Windows. > libusb-win32 is a bit old. So the better option is libusb Windows. > > 1) Use Zadig to install WinUSB driver to the device you are interested. > https://github.com/libusb/libusb/wiki/Windows#driver-installation > > 2) Get latest version of libusb Windows binary (libusb-1.0.dll) and put > it into a location your Python installation recognizes. > > > -- > Xiaofan > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |
From: Michael H. <mic...@ri...> - 2018-02-27 00:20:05
|
Any suggestions on where to get the dll? I've tried www.opendlls.com , but the checksums did not match. On Mon, Feb 26, 2018 at 4:20 PM, Michael Hennebry < mic...@ri...> wrote: > zadig gives me the following options: > libusbK (v 3.0.7.0) > libusb-win32 (v 1.2.6.0) > winUSB (v 6.1.7600.16385) > USB Serial (CDC) > > The current libusb0 (v 1.2.6.0) was not obtained through zadig. > I think I got it by letting Windows go fish. > > My recollection is that nothing from zadig worked with avrdude. > I want avrdude and python.so I don't have to go back and forth between > libraries. > I guess I'll have to try libusb-1.0 and hope it works. > ' > > On Fri, Feb 23, 2018 at 9:11 PM, Xiaofan Chen <xia...@gm...> wrote: > >> On Thu, Feb 8, 2018 at 8:25 AM, Michael Hennebry >> <mic...@ri...> wrote: >> > I'm having trouble make pyusb work at all. >> > When typing usb stuff in interactive mode, >> > usb.core.find(...) either produces ant empty list >> > or something that prints as nothing. >> > \Python27\python search.py >> > produced ValueError: No backend available . >> > search.py : >> > import usb.core >> > import usb.util >> > import usb.control >> > import array >> > dev = usb.core.find(find_all=True) >> > print dev >> > dev = usb.core.find() >> > dev = usb.core.find(find_all=True, idVendor=0x045e, idProduct=0x0040) >> # my >> > mouse >> > print dev >> > dev = usb.core.find( idVendor=0x045e, idProduct=0x0040) >> # my >> > mouse >> > print dev >> > dev = usb.core.find(find_all=True, idVendor=0x03eb, idProduct=0x2141) # >> > Atmel ICE >> > print dev >> > dev = usb.core.find( idVendor=0x03eb, idProduct=0x2141) # >> > Atmel ICE >> > print dev >> > >> > I'm on Windows 10. >> > A find on libusb produces only files with names beginning libusb0. >> > How do I make pyusb work? >> >> pyusb supports libusb-win32 and libusb (aka libusb-1.0) under Windows. >> libusb-win32 is a bit old. So the better option is libusb Windows. >> >> 1) Use Zadig to install WinUSB driver to the device you are interested. >> https://github.com/libusb/libusb/wiki/Windows#driver-installation >> >> 2) Get latest version of libusb Windows binary (libusb-1.0.dll) and put >> it into a location your Python installation recognizes. >> >> >> -- >> Xiaofan >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> pyusb-users mailing list >> pyu...@li... >> https://lists.sourceforge.net/lists/listinfo/pyusb-users >> > > |
From: Michael H. <mic...@ri...> - 2018-02-27 19:06:56
|
Is www.opendll.com a good place to get libusb-1? I'm using WIndows because I have to and do not know what places are safe or otherwise? On Fri, Feb 23, 2018 at 9:11 PM, Xiaofan Chen <xia...@gm...> wrote: > On Thu, Feb 8, 2018 at 8:25 AM, Michael Hennebry > <mic...@ri...> wrote: > > I'm having trouble make pyusb work at all. > > When typing usb stuff in interactive mode, > > usb.core.find(...) either produces ant empty list > > or something that prints as nothing. > > \Python27\python search.py > > produced ValueError: No backend available . > > search.py : > > import usb.core > > import usb.util > > import usb.control > > import array > > dev = usb.core.find(find_all=True) > > print dev > > dev = usb.core.find() > > dev = usb.core.find(find_all=True, idVendor=0x045e, idProduct=0x0040) # > my > > mouse > > print dev > > dev = usb.core.find( idVendor=0x045e, idProduct=0x0040) # > my > > mouse > > print dev > > dev = usb.core.find(find_all=True, idVendor=0x03eb, idProduct=0x2141) # > > Atmel ICE > > print dev > > dev = usb.core.find( idVendor=0x03eb, idProduct=0x2141) # > > Atmel ICE > > print dev > > > > I'm on Windows 10. > > A find on libusb produces only files with names beginning libusb0. > > How do I make pyusb work? > > pyusb supports libusb-win32 and libusb (aka libusb-1.0) under Windows. > libusb-win32 is a bit old. So the better option is libusb Windows. > > 1) Use Zadig to install WinUSB driver to the device you are interested. > https://github.com/libusb/libusb/wiki/Windows#driver-installation > > 2) Get latest version of libusb Windows binary (libusb-1.0.dll) and put > it into a location your Python installation recognizes. > > > -- > Xiaofan > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |
From: Xiaofan C. <xia...@gm...> - 2018-02-28 14:14:28
|
On Wed, Feb 28, 2018 at 3:06 AM, Michael Hennebry <mic...@ri...> wrote: > Is www.opendll.com a good place to get libusb-1? > I'm using WIndows because I have to and do not know > what places are safe or otherwise? I do not know about opendll. Anyway, libusb is an open source project and you should go to the official website. http://libusb.info/ Latest Windows binary release https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.21/libusb-1.0.21.7z/download -- Xiaofan |
From: Xiaofan C. <xia...@gm...> - 2018-02-28 14:18:35
|
On Tue, Feb 27, 2018 at 6:20 AM, Michael Hennebry <mic...@ri...> wrote: > zadig gives me the following options: > libusbK (v 3.0.7.0) > libusb-win32 (v 1.2.6.0) > winUSB (v 6.1.7600.16385) > USB Serial (CDC) > > The current libusb0 (v 1.2.6.0) was not obtained through zadig. > I think I got it by letting Windows go fish. > > My recollection is that nothing from zadig worked with avrdude. > I want avrdude and python.so I don't have to go back and forth between > libraries. > I guess I'll have to try libusb-1.0 and hope it works. I am not so sure why you are saying nothing from Zadig work with avrdude, avrdude works either with libusb-0.1 API (libusb-win32, libusb0.sys driver, libusb0.dll library) or libusb-1.0 API (libusb Windows, WinUSB driver, libusb-1.0.dll library). Zadig will install libusb-win32 driver or WinUSB driver for you. -- Xiaofan |
From: Michael H. <mic...@ri...> - 2018-03-01 22:16:24
|
Don't know why I wrote avrdude. 'Tis Atmel Studio giving me trouble. Avrdude is working. For some reason, I had thought that one could not get Windows binaries from libusb.info . I copied into a python directory and pyusb seems to be functioning now. On Wed, Feb 28, 2018 at 8:18 AM, Xiaofan Chen <xia...@gm...> wrote: > On Tue, Feb 27, 2018 at 6:20 AM, Michael Hennebry > <mic...@ri...> wrote: > > zadig gives me the following options: > > libusbK (v 3.0.7.0) > > libusb-win32 (v 1.2.6.0) > > winUSB (v 6.1.7600.16385) > > USB Serial (CDC) > > > > The current libusb0 (v 1.2.6.0) was not obtained through zadig. > > I think I got it by letting Windows go fish. > > > > My recollection is that nothing from zadig worked with avrdude. > > I want avrdude and python.so I don't have to go back and forth between > > libraries. > > I guess I'll have to try libusb-1.0 and hope it works. > > I am not so sure why you are saying nothing from Zadig work with > avrdude, avrdude works either with libusb-0.1 API (libusb-win32, > libusb0.sys driver, libusb0.dll library) or libusb-1.0 API (libusb > Windows, WinUSB driver, libusb-1.0.dll library). Zadig will install > libusb-win32 driver or WinUSB driver for you. > > > > > -- > Xiaofan > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |
From: Xiaofan C. <xia...@gm...> - 2018-03-04 05:05:38
|
On Fri, Mar 2, 2018 at 10:57 AM, Xiaofan Chen <xia...@gm...> wrote: > On Fri, Mar 2, 2018 at 3:52 AM, Michael Hennebry > <mic...@ri...> wrote: >> Don't know why I wrote avrdude. 'Tis Atmel Studio giving me trouble. >> Avrdude is working. > > I see. If Atmel studio is using a different driver than the driver > installed with Zadig, then it will not work. You have to switch driver > between applications using vendor driver and libusb supported driver. > That is a hassle you have to deal with. > > Recent version of libusb WIndows supports usbdk backend, it > is less mature but it will allow you to use both sets of application > without switching driver. > Ref: https://github.com/daynix/UsbDk > >> For some reason, I had thought that one >> could not get Windows binaries from libusb.info . >> I copied into a python directory and pyusb seems to be functioning now. > > Glad to know that. > It seems this mail may not reach the mailing list due to Sourceforge problem, sending again. -- Xiaofan |
From: Emmanuel B. <ebl...@gm...> - 2011-03-16 21:13:28
|
> It seems like libusb isn't installed correctly, but I used 'sudo apt-get > install libusb' and after installing pyusb openusb.py, libusb10.py and > libusb01.py are in /sw/lib/python2.5/site-packages/usb/backend. Am I > missing something? Try defining the path for the dynamic loader: export DYLD_LIBRARY_PATH=/sw/... /sw/... being the directory where you've installed the libusb*.dylib file. |