> > What about "find_library('usb-1.0')"?
Yes! That did the job. Thanks everyone. Now my Lego Mindstorms NXT2.0 works connected to the XO :) On Mon, Oct 18, 2010 at 5:55 AM, Tomeu Vizoso <to...@sugarlabs.org> wrote: > On Fri, Oct 15, 2010 at 21:24, Emiliano Pastorino > <epastor...@plan.ceibal.edu.uy> 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 libusb.so symlink. > > Regards, > > Tomeu > > > 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/ld.so.conf 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@lists.laptop.org > > http://lists.laptop.org/listinfo/devel > > > > > -- Ing. Emiliano Pastorino Plan Ceibal Av. Italia 6201 CP: 11500, Montevideo, Uruguay Tel: (598) 2 601 5773 int.: 2232
_______________________________________________ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel