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
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
--
> 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
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
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.
>>
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...
-
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
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
*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(&
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.
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
>
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
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
(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?
>
***
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
---
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.
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 =
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
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
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
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
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
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\
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
;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
-
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
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
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
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
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
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
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
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
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
--
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
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
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
/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
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
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__
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
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
+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
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
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
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
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
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 :
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
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
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
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.
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
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
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
55 matches
Mail list logo