USB support

R

rodmc

Hi,

I need to write a program which can access the USB ports on Mac and
Linux, is there a library available for Python?

Thanks in advance.

Best,

rod
 
T

Tim Roberts

rodmc said:
I need to write a program which can access the USB ports on Mac and
Linux, is there a library available for Python?

The "stable" version of Libusb includes a Python binding. The version in
development does not yet.
 
R

rodmc

Thanks for this, I have managed to build PyUSB and install it in the
relevant directory. However I get bus errors when I try the PlugUSB.py
example. Does anyone know why this is likely to be the case?

I am using Macpython 2.4, Libusb 0.1.12 and PyUSB 0.3.3 on an Intel
based mac.

Thanks in advance.

Rod
 
T

Tim Roberts

rodmc said:
Thanks for this, I have managed to build PyUSB and install it in the
relevant directory. However I get bus errors when I try the PlugUSB.py
example. Does anyone know why this is likely to be the case?

I am using Macpython 2.4, Libusb 0.1.12 and PyUSB 0.3.3 on an Intel
based mac.

It is my understanding that OS/X does not support the /proc filesystem.
Without /proc, libusb cannot operate.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top