Hello everyone,
I’ve been running Weewx on my Synology NAS DS216+II for about 4 years now. I always used the attached manual to install Weewx. This worked great. Untill a recent update of the OS. Suddenly Weewx cannot find the USB device of my TFA Primus anymore..
The USB device is attached. The command lsusb shows:
Bus 001 Device 002: ID 6666:5555
Bus 001 Device 003: ID f400:f400
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003
When I run weewx I get exception 'No backend available'. More users have had this error. The problem of most users is that python cannot find the USB modules.
The strange thing is that if I run python on the command line, it cannot find the libUSB library first, but if I import it manually (import usb.backend.libusb01), it does work. See below:
$ python
Python 2.7.12 (default, May 15 2018, 03:33:53)
[GCC 4.9.3 20150311 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import usb
>>> usb.core.find()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/usb/core.py", line 829, in find
raise ValueError('No backend available')
ValueError: No backend available
>>> import usb.backend.libusb01
>>> usb.core.find()
<usb.core.Device object at 0x7f3d511fb250>
So my question is that if it is possible to import the usb.backend.libusb01 library somewhere in the Weewx core (or driver) to make it run correctly again.
I already tried to import it in the WS28xx.py file, but that doesn’t work unfortunately. Any ideas for help?
Thanks in advance!