usb.core.NoBackendError: No backend available

6,191 views
Skip to first unread message

David Schmidt

unread,
Dec 29, 2016, 11:43:45 AM12/29/16
to pywws
Hey Guys,

I'm trying to get pywws working on my Turris Omnia router.
Installing was quite easy through pip.
Now I'm stuck with this:
usb.core.NoBackendError: No backend available
when doing pywws-testweatherstation

libusb-1.0 is installed as well as pyusb.

Thanks for any help
David

Jim Easterbrook

unread,
Dec 29, 2016, 11:52:07 AM12/29/16
to py...@googlegroups.com
On 29/12/16 16:36, David Schmidt wrote:
>
> I'm trying to get pywws working on my Turris Omnia router.
> Installing was quite easy through pip.
> Now I'm stuck with this:
> usb.core.NoBackendError: No backend available
> when doing pywws-testweatherstation
>
> libusb-1.0 is installed as well as pyusb.

It appears pyusb can't find libusb. The version of pyusb installed via
pip might not know where libusb is on an unusual device such as a
router. Can you install pyusb with the router's package manager instead?
--
Jim Easterbrook <http://www.jim-easterbrook.me.uk/>

David Schmidt

unread,
Dec 30, 2016, 8:07:00 AM12/30/16
to pywws
Hi, thanks for the answer!

libusb-1.0 - 1.0.19-1
libusb-compat - 0.1.4-1

Those are installed, compat was not before. But still the same issue.

There is no pyusb package for OpenWRT as it seems.
I tried by downloading latest GIT content and doing "python setup.py install" which succeeds, but it's still the same.

Jim Easterbrook

unread,
Dec 30, 2016, 8:32:54 AM12/30/16
to py...@googlegroups.com
On 30/12/16 13:07, David Schmidt wrote:
> Hi, thanks for the answer!
>
> libusb-1.0 - 1.0.19-1
> libusb-compat - 0.1.4-1
>
> Those are installed, compat was not before. But still the same issue.
>
> There is no pyusb package for OpenWRT as it seems.
> I tried by downloading latest GIT content and doing "python setup.py
> install" which succeeds, but it's still the same.

Try uninstalling pyusb and using python-libusb1 instead.
http://pywws.readthedocs.io/en/latest/essentials/dependencies.html#usb-library

David Schmidt

unread,
Dec 30, 2016, 8:40:39 AM12/30/16
to pywws
Awesome, that did the trick! Many thanks!

I did "pip uninstall pyusb" and then "pip install libusb1"

Cheers
David
Reply all
Reply to author
Forward
0 new messages