installation failure on Ubuntu 18.10

61 views
Skip to first unread message

Allen Gordon

unread,
Apr 29, 2019, 5:15:42 PM4/29/19
to weewx-user
Installation of weewx on ubuntu 18.10 failed.  I installed with with apt-get using the posted directions for ubuntu,

sudo /etc/init.d/weewx -l status
Usage: /etc/init.d/weewx {start|stop|status|restart|reload}
judoal@pgserver:/etc/weewx$ sudo /etc/init.d/weewx  status -l
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx; generated)
   Active: active (exited) since Mon 2019-04-29 14:15:17 MDT; 1min 7s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3412 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS)
  Process: 3475 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)

Apr 29 14:15:17 pgserver weewx[3502]:     ****    File "/usr/lib/python2.7/dist-packages/usb/core.py", line 174, in managed_release_interface
Apr 29 14:15:17 pgserver weewx[3502]:     ****      i = cfg[(0,0)].bInterfaceNumber
Apr 29 14:15:17 pgserver weewx[3502]:     ****    File "/usr/lib/python2.7/dist-packages/usb/core.py", line 641, in __getitem__
Apr 29 14:15:17 pgserver weewx[3502]:     ****      return Interface(self.device, index[0], index[1], self.index)
Apr 29 14:15:17 pgserver weewx[3502]:     ****    File "/usr/lib/python2.7/dist-packages/usb/core.py", line 460, in __init__
Apr 29 14:15:17 pgserver weewx[3502]:     ****      configuration
Apr 29 14:15:17 pgserver weewx[3502]:     ****    File "/usr/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 767, in get_interface_descriptor
Apr 29 14:15:17 pgserver weewx[3502]:     ****      raise IndexError('Invalid interface index ' + str(intf))
Apr 29 14:15:17 pgserver weewx[3502]:     ****  IndexError: Invalid interface index 0
Apr 29 14:15:17 pgserver weewx[3502]:     ****  Exiting.

The weewx configuration file is attached.

Thanks in advance for help.


weewx.conf

Thomas Keffer

unread,
Apr 29, 2019, 9:06:37 PM4/29/19
to weewx-user
Hard to say much with such a little snippet of the log. Take a look at Help! Posting to weewx-user on how to get a good log.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Allen Gordon

unread,
Apr 30, 2019, 10:23:32 AM4/30/19
to weewx...@googlegroups.com
Thomas, Thanks for your help.  I found the problem.   The key was the in syslog: "Apr 29 14:15:17 pgserver weewx[3502]:     ****  IndexError: Invalid interface index 0".    I did set debug = 1 and viewed the new syslog which basically had the same information as I posted previously.   I switched USB ports to which the display was connected and weewx started without error and connected right away to the display.  The web page at localhost/weewx displayed the correct data.

Thanks again.

Allen




You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/BsrAEYJUGew/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages