|
From: Tormod V. <lis...@gm...> - 2017-12-20 23:15:08
|
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
>
|