Thanks @emmanuel, so helpful, as always :) @anony Could you please run your script with the PYUSB_DEBUG=debug environment variable set and post the logs?
2014-10-28 20:59 GMT-02:00 Emmanuel Blot <eblot...@gmail.com>: > Adding libusb path to DYLD_LIBRARY_PATH should be enough. > > I'm using this syntax daily on OS X without any issue. > > If libusb(x) has been installed with Homebrew: > > export DYLD_LIBRARY_PATH="/usr/local/opt/libusb/lib" > > $> ls -l /usr/local/opt/libusb/lib/ > total 464 > -r--r--r-- 1 eblot admin 93280 28 Oct 23:57 libusb-1.0.0.dylib > -r--r--r-- 1 eblot admin 139144 19 Oct 18:46 libusb-1.0.a > lrwxr-xr-x 1 eblot admin 18 19 Oct 18:46 libusb-1.0.dylib -> > libusb-1.0.0.dylib > drwxr-xr-x 3 eblot admin 102 28 Oct 23:57 pkgconfig > > There is no such thing as ld.so.conf on OS X. > > Cheers, > Manu > > On Tue, Oct 28, 2014 at 10:01 PM, Wander Lairson Costa > <wander.lair...@gmail.com> wrote: >> 2014-10-28 18:51 GMT-02:00 Anony Mous <fyng...@gmail.com>: >>> ok, is it the other way around? OSX requires dylibs, rather than .so, so >>> PyUSB is looking for/using the wrong thing? >>> >>> There's a line in the usblib configure that says the linker doesn't support >>> .so and elsewhere it implies that the default *is* the .so format, so it >>> seems like it really thinks it ought to be making dylibs... >>> >>> but if that's the case, why doesn't PyUSB look for dylibs? >>> >>> So confused... >>> >> >> PyUSB uses ctypes, which works fine with dynlib, but iirc it does not >> look at environment variables setup, so you need the path of libusb >> configured in the search path for your system. I never used a Mac OSX, >> don't how it works, but should be something like /etc/ld.so.conf in >> Linux. >> >> >> -- >> Best Regards, >> Wander Lairson Costa >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> pyusb-users mailing list >> pyusb-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pyusb-users > > ------------------------------------------------------------------------------ > _______________________________________________ > pyusb-users mailing list > pyusb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyusb-users -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users