On Thu, Mar 1, 2012 at 4:22 PM, Klyvard <cl...@ieee.org> wrote:

> Hi, I just used macports to get libusb giving me libusb @1.0.8_0+universal
> but when I try to get this in as the backend it cannot be found.
>
>>>> import usb.backend.libusb
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> ImportError: No module named libusb
>
> Obviously, I am doing something wrong but this is my first go at the usb
> interface so any help would be appreciated.

I do not use Macports myself but rather Homebrew to install
libusb-1.0 (universal) to /usr/local. I can use pyusb
(the libusb-1.0 backend).

For Macports, libusb-1.0 will most likely to be installed
in /opt/local. Make sure Python can find the dylib.

You may try the following to see if it helps.
export DYLD_LIBRARY_PATH=/opt/local/lib

-- 
Xiaofan

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to