[pyusb-users] ValueError: No backend available

2011-03-16 Thread Chris
sb10.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 -- Co

Re: [pyusb-users] ValueError: No backend available

2011-03-17 Thread Chris
se in there now: -rwxr-xr-x 1 root admin 65296 17 Mar 02:28 /sw/lib/libusb-1.0.0.dylib lrwxr-xr-x 1 root admin 18 17 Mar 02:28 /sw/lib/libusb-1.0.dylib -> libusb-1.0.0.dylib Still no dice. It's a head scratcher. I must be missing something. Chris --

Re: [pyusb-users] ValueError: No backend available

2011-03-17 Thread Chris
> Still no dice. It's a head scratcher. I must be missing something. > > Chris Hmm well it now all seems to work when I don't run as root. Weird... -- Colocation vs. Managed Hosting A question

Re: [pyusb-users] ValueError: No backend available

2011-03-17 Thread Chris
On 17/03/2011 23:53, Xiaofan Chen wrote: > On Fri, Mar 18, 2011 at 3:28 AM, Emmanuel Blot wrote: >> I guess you would get a more explicit message, but what if Python is >> running in 64-bit mode and your libs are only built as 32-bit binaries? >> You may want to double check this point. >> > Or th

Re: [pyusb-users] ValueError: No backend available

2011-03-19 Thread Chris
On 18/03/2011 01:50, Xiaofan Chen wrote: > On Fri, Mar 18, 2011 at 8:46 AM, Chris wrote: >> I now have a separate issue sending data to a HID device because as the >> OSX kernel is using the native HID driver. Also usb.core.find() only >> sometimes finds the device. >>

[pyusb-users] Trouble using PyUSB on MacOS 10.5

2010-07-10 Thread Chris Wolf
mples-code.html and added print statements to show the iteration of busses/devices which worked fine and matched what the system profiler shows as my attached USB devices. Does anyone have a clue for me? Thanks in advance... -

Re: [pyusb-users] Trouble using PyUSB on MacOS 10.5

2010-07-10 Thread Chris Wolf
Thanks for looking. -Chris On 7/10/10 8:48 PM, Wander Lairson wrote: > 2010/7/10 Chris Wolf : [...] >> >> That didn't work, so I tried: >> >> *** dev = usb.core.find(find_all=True, backend=libusb01.get_backend()) > > Set the environment variable PYUSB_DE

Re: [pyusb-users] Trouble using PyUSB on MacOS 10.5

2010-07-11 Thread Chris Wolf
d: >>> import ctypes.util >>> print ctypes.util.find_library("usb") /usr/local/lib/libusb.dylib >>> print ctypes.util.find_library("libusb0") None >>> print ctypes.util.find_li

Re: [pyusb-users] Trouble using PyUSB on MacOS 10.5

2010-07-11 Thread Chris Wolf
*argv[]) { struct usb_bus *busses; usb_init(); usb_find_busses(); usb_find_devices(); busses = usb_get_busses(); struct usb_bus *bus; int c, i, a; /* ... */ for (bus = busses; bus; bus = bus->next) { struct usb_device *dev; printf(&

[pyusb-users] Potential bug with openusb.py backend.

2010-07-12 Thread Chris Wolf
r making this fix, my test code was able to successfully use the openusb backend to iterate over all my USB devices. The download code archive this occurs in is named, "pyusb-1.0.0-a0.zip". Thanks, Chris Wolf Error before patch: >>> import ctypes.util >>> import usb.

Re: [pyusb-users] Potential bug with openusb.py backend.

2010-07-12 Thread Chris Wolf
On 7/12/10 9:00 AM, Chris Wolf wrote: > Wander, > > Earlier, I mentioned that the openusb backend did not work for me on > MacOS, but I'm pretty sure I found the problem. There seems to be a > typo in backend/openusb.py on line #155, where it configures the return >

Re: [pyusb-users] Trouble using PyUSB on MacOS 10.5

2010-07-14 Thread Chris Wolf
On 7/12/10 3:32 PM, Wander Lairson wrote: > 2010/7/12 Chris Wolf : >> Wander, >> >> I tried some other things: >> >> 1.) I tried to use openusb. There were some issues building on the Mac - >>the distribution tar archive was missing a header file, &quo

Re: [pyusb-users] Potential bug with openusb.py backend.

2010-07-14 Thread Chris Wolf
t of OpenUSB. > Sorry, I'm still unclear as to which libusb you are referring to - is it libusb01 or libusb10? (i.e libusb-0.1.x.x. or libusb-1.x.x ?) Thanks, -Chris -- This SF.net email is sponsored by Spr

Re: [pyusb-users] Trouble using PyUSB on MacOS 10.5

2010-07-14 Thread Chris Wolf
(sorry, I missed this email earlier) On 7/12/10 9:46 AM, Wander Lairson wrote: *** import usb.backend.libusb01 *** usbe = usb.backend.libusb01.get_backend() *** libusb = usb.backend.libusb01._lib *** busses = libusb.usb_get_busses() *** print bool(busses) > What does "print busses" print? > ***

Re: [pyusb-users] Potential bug with openusb.py backend.

2010-07-14 Thread Chris Wolf
e with "--nolibhal", in any case, the OpenUSB library sample code doesn't work and the tar archive was missing a mac-specific header file, which I had to pull from cvs, so I'm not certain that it's the best library for MacOS at this time. -Chris ---

Re: [pyusb-users] Potential bug with openusb.py backend.

2010-07-14 Thread Chris Wolf
ibusb10 backend is the best supported backend for now? -Chris -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.

Re: [pyusb-users] Trouble using PyUSB on MacOS 10.5

2010-07-14 Thread Chris Wolf
On 7/14/10 11:19 PM, Chris Wolf wrote: > (sorry, I missed this email earlier) > > On 7/12/10 9:46 AM, Wander Lairson wrote: > *** import usb.backend.libusb01 > *** usbe = usb.backend.libusb01.get_backend() > *** libusb = usb.backend.libusb01._lib > *** busses =

Re: [pyusb-users] Potential bug with openusb.py backend.

2010-07-15 Thread Chris Wolf
On 7/15/10 6:13 AM, Wander Lairson wrote: > 2010/7/15 Chris Wolf : >> >> >> On 7/12/10 9:49 AM, Wander Lairson wrote: >>> Yes, I haven't started OpenUSB, I just "typed" the code but never >>> tested it. I will apply your fix so at least we

Re: [pyusb-users] can't find descriptor: python 2.6.5 Win32 pyusb-1.0.0-a0

2010-07-16 Thread Chris Wolf
On 7/16/10 7:53 PM, Xiaofan Chen wrote: > On Fri, Jul 16, 2010 at 11:01 PM, John Harrison > wrote: >> Perhaps I am not reading the right parts of the documentation but I can't >> figure out how to write to my device even given your hints about my device >> not having endpoints. Frankly I don't e

Re: [pyusb-users] Trouble using PyUSB on MacOS 10.5

2010-07-23 Thread Chris Wolf
On 7/22/10 12:29 PM, Wander Lairson wrote: > I will try to install a darwin kernel in a VM and debug it... > When you say, "debug it" - do you mean libusb01 itself? I can provide some info: $ export USB_DEBUG=10 $ ./usbtest usb_set_debug: Setting debugging level to 10 (on) usb_os_find_busses

Re: [pyusb-users] Trouble using PyUSB on MacOS 10.5

2010-07-23 Thread Chris Wolf
On 7/23/10 7:13 AM, Wander Lairson wrote: > 2010/7/23 Chris Wolf : >> >> >> On 7/22/10 12:29 PM, Wander Lairson wrote: >>> I will try to install a darwin kernel in a VM and debug it... >>> >> >> When you say, "debug it" - do you me

Re: [pyusb-users] Trouble using PyUSB on MacOS 10.5

2010-07-23 Thread Chris Wolf
On 7/23/10 11:49 AM, Wander Lairson wrote: >> >> >> On 7/23/10 7:13 AM, Wander Lairson wrote: >>> 2010/7/23 Chris Wolf : >>>> >>>> >>>> On 7/22/10 12:29 PM, Wander Lairson wrote: >>>>> I will try to install a darwin ke

[pyusb-users] PyUSB 1.0 and Windows reset

2011-08-07 Thread chris clark
e no idea what I'm doing. Slightly off topic, the PyUSB wiki appears to be down/empty (no errors blank screen), http://pyusb.wiki.sourceforge.net/ Thanks for PyUSB and thanks in advance for any assistance Chris Trace back #1 - missing detach: E:\asusdisplay>E:\apps\PortablePython1.0\

Re: [pyusb-users] PyUSB 1.0 and Windows reset

2011-08-07 Thread chris clark
On Sun, Aug 7, 2011 at 1:24 PM, Wander Lairson Costa wrote: > 2011/8/7 chris clark : >> 2) reset() problem (slightly different to known issue in readme for >> libusb-1.0, I guess as I'm using libusb-01). The symptom I see is that >> the TFT display appears to power o

Re: [pyusb-users] PyUSB 1.0 and Windows reset

2011-08-07 Thread chris clark
;m seeing. I've no idea how I'm going to restart it though, any pointers? Again, I'm actually up and running (with workaround), I'm trying to see if there is anything to learn from my setup to improve things. Chris -

Re: [pyusb-users] usb.core.find()

2011-08-16 Thread chris clark
ily down, check it later... I frequently get the "site down" messages and trying again a few hours (or a day) later usually helps. I ended up caching the pages at home :-) Chris -- Get a FREE DOWNLOAD! a

Re: [pyusb-users] usb.core.find()

2011-08-17 Thread chris clark
er Windows :-) Linux is a lot easier to get going. Good luck! Chris -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out o

Re: [pyusb-users] usb.core.find()

2011-08-17 Thread chris clark
On Wed, Aug 17, 2011 at 9:43 PM, Xiaofan Chen wrote: > On Thu, Aug 18, 2011 at 12:29 PM, chris clark wrote: >> the libusb mailing list is probably the best place to ask questions on >> it rather than PyUSB. However I've some rough notes that I wrote for >> my project a

[pyusb-users] pyusb logging and errors behavior

2011-08-27 Thread chris clark
something like; log = logging.getLogger('mylogger') to the user script 2) use libusb10 It isn't a huge issue but a little odd. Thanks! Chris -- EMC VNX: the world's simplest storage, starting under $10

Re: [pyusb-users] pyusb logging and errors behavior

2011-08-29 Thread chris clark
logging for that > library.  At least, that's what _I_ expect.  (it's what log4j/slf4j does, and > it's also how all of my apps and libraries work. > > I personally consider what Chris reports to be "expected behaviour" We may be getting into personal prefere

Re: [pyusb-users] pyusb logging and errors behavior

2011-08-29 Thread chris clark
l show up, which I think is useful, there aren't any in PyUSB at the moment. I hacked in a quick test to make sure they worked ;-) Thanks again for the quick turn around. Chris -- Special Offer -- Download ArcSight L

Re: [pyusb-users] Fw: Python not seeing USB

2011-08-29 Thread chris clark
dle suggestion #2 and they explain it far better than I just did! So check the archives. Good luck! Chris -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even

Re: [pyusb-users] Auto-generating USB class lookups

2011-08-31 Thread chris clark
c > > There is a bunch of other info at http://www.linux-usb.org/usb.ids with > vendor and protocol info, etc and the stuff I’ve been putting together to > include that as well.  Again – just wanted to see if this was > interesting/useful before I put in the time to make it more co

Re: [pyusb-users] PyUSB repo has been moved to github

2011-09-02 Thread chris clark
take it from there. > Only branch 1.0 was migrated You can still use svn for pull downs :-) https://github.com/blog/626-announcing-svn-support I've not tried it but it may be helpful for some users. Chris --

Re: [pyusb-users] Auto-generating USB class lookups

2011-09-11 Thread chris clark
ave most of the code for this :-). I would offer to help but I'm snowed under with other projects at the moment :-( Chris -- Using storage to extend the benefits of virtualization and iSCSI Virtualization increases

Re: [pyusb-users] Garmin GPS

2011-12-26 Thread chris clark
d connect and "do stuff", then started on getting the drivers installed/configured correctly under Windows. You can use a Ubuntu live CD if you do not want to install Linux. This worked for me as I was already familiar with Linux but for a new Linux user the l

Re: [pyusb-users] PyUSB unable to find Python 2.6

2012-01-29 Thread chris clark
check, not the setup.py). Chris On Sun, Jan 29, 2012 at 1:11 PM, Paul Shreve wrote: > Python was installed exactly as instructed into the previously stated > directory. Python, version stated, was most definitely installed first. > > On Fri, Jan 27, 2012 at 7:02 AM, Xiaofan Chen wr

Re: [pyusb-users] Neither pycm19a nor the tutorial works

2012-02-26 Thread chris clark
/files/ Have you tried contacting Michael LeMay? Chris -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowin

Re: [pyusb-users] Windows Vista 64 driver installation

2012-03-01 Thread chris clark
existing drivers. I've only ever used the first form for my project, I was the sole user of the device (there were no windows drivers available). This is more of a libusb question than PyUSB so you may get better results from a libusb mailing list. Chris

Re: [pyusb-users] pyusb / Windows

2012-03-16 Thread chris clark
hich is up) which is probably what you really care about. Chris -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure__

Re: [pyusb-users] NotImplementedError when using pyusb

2012-05-17 Thread chris clark
On Thu, May 17, 2012 at 11:40 AM, greg yurikov wrote: > > > I get this error: > > File "test.py", line 20, in > if device.is_kernel_driver_active(0): > File "C:\Python26\lib\site-packages\usb\core.py", line 704, in > is_kernel_driver_active > return self._ctx.backend.is_kernel_d

Re: [pyusb-users] NotImplementedError when using pyusb

2012-05-17 Thread chris clark
Ah! Windows (didn't notice that at first), it isn't implemented (and isn't possible). I posted a similar question a while back. The response I received is worth reading. Chris On Thu, May 17, 2012 at 2:00 PM, greg yurikov wrote: > I'm using the libusb1.2.4.9 w

Re: [pyusb-users] alpha releases [Was: pyusb on Android?]

2012-07-07 Thread chris clark
+1 for releasing 1.0.0 stable now. If we can't identify specific API changes that would change the API I think we're already stable. If something does come up there is always version 1.1.0 :-) Thanks again for such a useful project Wand

Re: [pyusb-users] reading multimeter

2013-07-17 Thread chris clark
Darn it I just re-read and saw you are on Windows. Try this instead :-) set PYUSB_DEBUG_LEVEL=debug python your_script.py On Wed, Jul 17, 2013 at 8:47 AM, chris clark wrote: > On Wed, Jul 17, 2013 at 7:58 AM, Elizabeth Tolman > wrote: > >> I'm running Windows

Re: [pyusb-users] reading multimeter

2013-07-17 Thread chris clark
ure. When I > type "export PYUSB_DEBUG_LEVEL=debug" into the Python command line, I > get an error message with "invalid syntax." > This is an OS/shell variable. This this instead: env PYUSB_DEBUG_LEVEL=debug python your_script.py It does the sam

Re: [pyusb-users] Read Remote USB

2015-11-16 Thread chris clark
On Mon, Nov 16, 2015 at 9:42 AM, Heilan Percio O M Cardoso < heilanper...@hotmail.com> wrote: > I have a ACS 122 U NFC reader connect in my computer and I need to read > this device. > The problem is : My application is running on a cloud. So I need to read > USB ports remotely. > > Is it possible

Re: [pyusb-users] [Release Candidate] Call for help

2016-01-30 Thread chris clark
On Sat, Jan 30, 2016 at 4:27 AM, Wander Lairson Costa < wander.lair...@gmail.com> wrote: > I was about to release the first release candidate, but just found out > my test board died. As I don't know when/if I can recover it, could > you please guys clone the latest code and report if everything w

Re: [pyusb-users] [Release Candidate] Call for help

2016-02-02 Thread chris clark
If you are not familiar with git, you can also download a zip of the latest code from https://github.com/walac/pyusb/archive/master.zip On Tue, Feb 2, 2016 at 9:08 AM, Wander Lairson Costa < wander.lair...@gmail.com> wrote: > Just clone it from github > > 2016-02-02 13:41 GMT-02:00 Jay Newens :

Re: [pyusb-users] (no subject)

2016-05-11 Thread chris clark
too? The other thing I like about py2exe is that there are add-ons that create installers for you (you mentioned dealing with Wix), e.g. https://code.google.com/archive/p/py2nsis/, again hopefully there is a similar thing for PyInstaller Chris

Re: [pyusb-users] pyusb1 picks wrong driver on Windows. Asking for help

2016-08-17 Thread chris clark
the driver, is that what you mean by registered? I've some rough notes on Windows usage at https://bitbucket.org/clach04/coldtears_clock/wiki/Windows On creating issues, it is worth creating it as a place holder and inc

Re: [pyusb-users] Endpoint issue

2016-11-20 Thread chris clark
Looking at some examples may be your best starting point, e.g. https://github.com/dangardner/pylcdsysinfo On Sun, Nov 20, 2016 at 2:52 AM, FETULLAH ATAŞ wrote: > Hi all, i am very new to pyusb, what i want to do is send a string format > data over usb to control algorithm of my project. So i hav

Re: [pyusb-users] More awareness to FAQ and Tutorial

2020-09-19 Thread chris clark
On Wednesday, September 16, 2020, Xiaofan Chen wrote: > Just want to raise awareness to the FAQ and Tutorial. > https://github.com/pyusb/pyusb/tree/master/docs > > FAQ -- faq.rst > Tutorial -- tutorial.rst > > You can raise issues in github if you have some suggestions > to improve the documents.

Re: [pyusb-users] Need Help Please

2020-11-13 Thread chris clark
On Thu, Nov 12, 2020 at 10:51 PM John Beamish wrote: > .. > I loaded pyusb 1.1.0 with pip install pyusb and libusb1 1.8 with pip > install libusb1 > I am running Python 3.9 0n Windows 10 Home Version 2004. > > I know I have/ or am doing something wrong but if anyone is able to advise > me I would

Re: [pyusb-users] No Backend Available

2021-01-20 Thread chris clark
As per Jonas' reply, its not clear libusb has been installed. zadig works for me and makes the install process much easier (if you want super easy, go with Linux) I did have some notes on this but they were in Bitbucket and didn't survive their mercurial purge and I've not found hosting so here is

Re: [pyusb-users] USB using HID RFID Reader

2024-05-07 Thread chris clark
TL;DR I would recommend AGAINST using pyusb for HID use cases, if you are on Linux instead use udev. If you need to know the device that was used to read, I would create a virtual device id if you really want to read directly from pyusb.. BUT I would recommend against it. I've not had to deal wit