Re: [pyusb-users] backend not loading

2017-12-21 Thread Tormod Volden
It can be discussed what is the best way, but what is supported from the distribution point of view is installing the "python-usb" package and not using pip. Anyway, if the python stack trace doesn't tell what's going wrong, I'd recommend running strace, maybe "strace -e open" for a start. Tormod

Re: [pyusb-users] backend not loading

2017-12-21 Thread Sylvain Martel
Hi,     Not sure what you mean by custom build as pyusb(1.0.2) is installed using pip, and python is the stock install from the OS.  But it run fine outside a container.  I'll try to find out why On 2017-12-20 06:15 PM, Tormod Volden wrote: > Sylvain, > > Does it work with stock python and pyusb

Re: [pyusb-users] backend not loading

2017-12-20 Thread Tormod Volden
Sylvain, Does it work with stock python and pyusb ("python-usb" on Debian) packages? Apparently you are running some custom built modules under /usr/local. BTW, the -dev package (development headers and archives) depends on the libusb-1.0-0 library package, so installing the former will pull in t

Re: [pyusb-users] backend not loading

2017-12-19 Thread Sylvain Martel
Hi,   No change by installing libusb-1.0-0.  I also tried pointing to it directly using this line usb.backend.libusb1.get_backend(find_library=lambda x: "/usr/lib/x86_64-linux-gnu/libusb-1.0.so") Still the same error :-/ python_1    | 2017-12-19 19:40:25,197 DEBUG:usb.backend.libusb1:_LibUSB.__

Re: [pyusb-users] backend not loading

2017-12-19 Thread Srujan Chaitanya
Try installing libusb , I think dev version just by itself not usefull. > On Dec 19, 2017, at 6:36 AM, Sylvain Martel wrote: > > Hi, > > I'm trying to use pyusb in a container but it has problem connecting to > libusb. > > In the container, libusb is installed using "RUN apt-get install -y

[pyusb-users] backend not loading

2017-12-19 Thread Sylvain Martel
Hi, I'm trying to use pyusb in a container but it has problem connecting to libusb. In the container, libusb is installed using "RUN apt-get install -y libusb-1.0-0-dev" and I'm trying this simple code: import usb.core import usb.util def main(args=None): #open() usb.core.find() I th