Weewx unable to recognize hardware (vantage.py) error (Vantage Vue)

48 views
Skip to first unread message

Lodewyk Jansen

unread,
Jul 27, 2020, 8:12:16 PM7/27/20
to weewx-user
Hi all and thank you for everyone's reply's in advance. 

First off - i have a Raspberry Pi Model 3B+ with USB Davis Vantage Vue and Weewx is installed through python.

Initially Weewx worked and there were no erros. However since then i might have deleted something or done something wrong to cause the errors. 

[copied from the command "service weewx status"]

pi@raspberrypi:~ $ service weewx status
* weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx; generated)
   Active: active (exited) since Tue 2020-07-28 12:02:32 NZST; 7min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1921 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)

Jul 28 12:02:32 raspberrypi weewxd[1936]: weewx[1936] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Jul 28 12:02:32 raspberrypi weewxd[1936]: weewx[1936] CRITICAL __main__:     ****    File "/home/weewx/bin/weewx/engine.py", line 69, in __init__
Jul 28 12:02:32 raspberrypi weewxd[1936]: weewx[1936] CRITICAL __main__:     ****      self.setupStation(config_dict)
Jul 28 12:02:32 raspberrypi weewxd[1936]: weewx[1936] CRITICAL __main__:     ****    File "/home/weewx/bin/weewx/engine.py", line 92, in setupStation
Jul 28 12:02:32 raspberrypi weewxd[1936]: weewx[1936] CRITICAL __main__:     ****      __import__(driver)
Jul 28 12:02:32 raspberrypi weewxd[1936]: weewx[1936] CRITICAL __main__:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 86
Jul 28 12:02:32 raspberrypi weewxd[1936]: weewx[1936] CRITICAL __main__:     ****      print "Unable to wake up console... sleeping"
Jul 28 12:02:32 raspberrypi weewxd[1936]: weewx[1936] CRITICAL __main__:     ****                                                  ^
Jul 28 12:02:32 raspberrypi weewxd[1936]: weewx[1936] CRITICAL __main__:     ****  SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Unable to wake up console... sleeping")?
Jul 28 12:02:32 raspberrypi weewxd[1936]: weewx[1936] CRITICAL __main__:     ****  Exiting.

___
Also attached is the system log file for reference...

Anyone that can point me into the right direction to get weeewx to run without erros? 

Regards,
LJ
syslog

Tom Keffer

unread,
Jul 27, 2020, 9:58:29 PM7/27/20
to weewx-user
Somehow, you ended up with an old copy of the Vantage driver (v3.9.2 or earlier) in a modern copy of WeeWX. This old version was not ported to Python 3, so the Python 3 interpreter you are using is complaining.

Try reinstalling WeeWX.

-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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1455495f-c421-41b0-98a9-df78f2dce835o%40googlegroups.com.

Lodewyk Jansen

unread,
Jul 28, 2020, 4:36:11 PM7/28/20
to weewx-user
Hi Thanks, Tom - I did an uninstall and reinstall but still didn't work so I formated the SD and started from scratch - all works again.
Technology hey it does what it does. 

Regards


On Tuesday, 28 July 2020 13:58:29 UTC+12, Tom Keffer wrote:
Somehow, you ended up with an old copy of the Vantage driver (v3.9.2 or earlier) in a modern copy of WeeWX. This old version was not ported to Python 3, so the Python 3 interpreter you are using is complaining.

Try reinstalling WeeWX.

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages