Can't find shared library libusb

Tomeu Vizoso tomeu at
Mon Oct 18 03:55:31 EDT 2010

On Fri, Oct 15, 2010 at 21:24, Emiliano Pastorino
<epastorino at> wrote:
> Hi everyone,
> I'm trying to use libusb, but I'm getting this behaviour in python:
>>> from ctypes.util import find_library
>>> find_library('usb')
> (returned None)

What about "find_library('usb-1.0')"?

It's probably good that you need to specify the version in this case
because the API between 0.1 and 1.0 is likely to have changed. This is
because there's no symlink.



> The strange thing is that in another XO, same build (802), it does find the
> library:
>>> from ctypes.util import find_library
>>> find_library('usb')
>>> 'libusb-0.1-so.4'
> Both XO have this file in /usr/lib, but the first one won't find it.
> Nevertheless, it finds other libraries under /usr/lib.
> I've checked /etc/ and it's the same for both XO.
> I'm using the same version of libusb and libusb-devel, and they were
> installed with yum.
> Any tips?
> _______________________________________________
> Devel mailing list
> Devel at

More information about the Devel mailing list