radiacode icon indicating copy to clipboard operation
radiacode copied to clipboard

Запуск на android через termux. Radiacode подключен через USB.

Open Am6er opened this issue 3 years ago • 1 comments

Radiacode подключен по USB к android. При попытке запуска python3 -m radiacode-examples.basic в приложении termux, выдается ошибка:

✘ u0_a268@localhost  ~  python3 -m radiacode-examples.basic
will use USB connection
Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/data/data/com.termux/files/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/radiacode-examples/basic.py", line 35, in <module>
    main()
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/radiacode-examples/basic.py", line 17, in main
    rc = RadiaCode()
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/radiacode/radiacode.py", line 26, in __init__
    self._connection = Usb()
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/radiacode/transports/usb.py", line 14, in __init__
    self._device = usb.core.find(idVendor=0x483, idProduct=0xF123)
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/usb/core.py", line 1299, in find
    raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available

Am6er avatar Jun 10 '21 09:06 Am6er

@Am6er you can try "pip install libusb"

sbobko avatar Feb 16 '22 16:02 sbobko