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 ("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 the latter.
>
> Regards,
> Tormod
>
>
>
> On Tue, Dec 19, 2017 at 8:46 PM, Sylvain Martel wrote:
>> 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.__init__(<CDLL
>> '/usr/lib/x86_64-linux-gnu/libusb-1.0.so', handle 7cbd00 at 0x7fe8641b30f0>)
>> python_1    | 2017-12-19 19:40:25,197 ERROR:usb.backend.libusb1:Error
>> loading libusb 1.0 backend
>> python_1    | Traceback (most recent call last):
>> python_1    |   File
>> "/usr/local/lib/python3.6/site-packages/usb/backend/libusb1.py", line
>> 945, in get_backend
>> python_1    |     return _LibUSB(_lib)
>> python_1    |   File
>> "/usr/local/lib/python3.6/site-packages/usb/_debug.py", line 60, in do_trace
>> python_1    |     return f(*args, **named_args)
>> python_1    |   File
>> "/usr/local/lib/python3.6/site-packages/usb/backend/libusb1.py", line
>> 708, in __init__
>> python_1    |     _check(self.lib.libusb_init(byref(self.ctx)))
>> python_1    |   File
>> "/usr/local/lib/python3.6/site-packages/usb/backend/libusb1.py", line
>> 595, in _check
>> python_1    |     raise USBError(_strerror(ret), ret, _libusb_errno[ret])
>> python_1    | usb.core.USBError: [Errno None] Other error
>> python_1    | 2017-12-19 19:40:25,198
>> DEBUG:usb.backend.libusb1:_LibUSB._finalize_object()
>> west_python_1 exited with code 139
>>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users

-- 

---------------------------------
SVP encrypter les courriels si possible/Please encrypt e-mails if you can.
Certificat s/mime inclus dans le message
pgpKey Id:03044B68



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to