4.3.0 installation issue

103 views
Skip to first unread message

WxManAJB

unread,
Jan 10, 2021, 7:31:09 PM1/10/21
to weewx-user
Hi all...probably something very simple here, but I'm stuck...

Just upgraded to 4.3.0 (setup.py method on raspbian stretch/python3) and I'm getting the following error in my syslog:

Jan 10 19:25:23 wxstn1 weewx[566] CRITICAL __main__:     ****      self.loadServices(config_dict)
Jan 10 19:25:23 wxstn1 weewx[566] CRITICAL __main__:     ****    File "/home/weewx/bin/weewx/engine.py", line 161, in loadServices
Jan 10 19:25:23 wxstn1 weewx[566] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Jan 10 19:25:23 wxstn1 weewx[566] CRITICAL __main__:     ****    File "/home/weewx/bin/weeutil/weeutil.py", line 1093, in get_object
Jan 10 19:25:23 wxstn1 weewx[566] CRITICAL __main__:     ****      mod = __import__(module)
Jan 10 19:25:23 wxstn1 weewx[566] CRITICAL __main__:     ****    File "/home/weewx/bin/user/forecast.py", line 541
Jan 10 19:25:23 wxstn1 weewx[566] CRITICAL __main__:     ****      except OSError, e:
Jan 10 19:25:23 wxstn1 weewx[566] CRITICAL __main__:     ****                    ^
Jan 10 19:25:23 wxstn1 weewx[566] CRITICAL __main__:     ****  SyntaxError: invalid syntax
Jan 10 19:25:23 wxstn1 weewx[566] CRITICAL __main__:     ****  Exiting.

Anyone know how to fix?

Thanks!

A.J.

vince

unread,
Jan 10, 2021, 10:41:46 PM1/10/21
to weewx-user
Another FAQ. Any time you see "except OSError, e:" you are trying to run python3 against legacy code that was only written to support python2.

You need to update your forecast extension to a current version, then you'll be fine.

WxManAJB

unread,
Jan 24, 2021, 10:41:35 AM1/24/21
to weewx-user
Thanks Vince. I upgraded the forecast extension to 3.4.0b11 and am still getting an error (although, different this time). Still a python issue?

$ tail -f /var/log/syslog

Jan 24 10:35:05 wxstn1 weewx[18316] CRITICAL __main__:     ****      self.loadServices(config_dict)

Jan 24 10:35:05 wxstn1 weewx[18316] CRITICAL __main__:     ****    File "/home/weewx/bin/weewx/engine.py", line 161, in loadServices

Jan 24 10:35:05 wxstn1 weewx[18316] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self, config_dict)

Jan 24 10:35:05 wxstn1 weewx[18316] CRITICAL __main__:     ****    File "/home/weewx/bin/weeutil/weeutil.py", line 1093, in get_object

Jan 24 10:35:05 wxstn1 weewx[18316] CRITICAL __main__:     ****      mod = __import__(module)

Jan 24 10:35:05 wxstn1 weewx[18316] CRITICAL __main__:     ****    File "/home/weewx/bin/user/rtgd.py", line 1007

Jan 24 10:35:05 wxstn1 weewx[18316] CRITICAL __main__:     ****      except Exception, e:

Jan 24 10:35:05 wxstn1 weewx[18316] CRITICAL __main__:     ****                      ^

Jan 24 10:35:05 wxstn1 weewx[18316] CRITICAL __main__:     ****  SyntaxError: invalid syntax

Jan 24 10:35:05 wxstn1 weewx[18316] CRITICAL __main__:     ****  Exiting.


John Kline

unread,
Jan 24, 2021, 10:43:52 AM1/24/21
to weewx...@googlegroups.com
File "/home/weewx/bin/user/rtgd.py", line 1007
It looks like you need to update real time gauge data:

On Jan 24, 2021, at 7:41 AM, WxManAJB <ajburn...@gmail.com> wrote:

Thanks Vince. I upgraded the forecast extension to 3.4.0b11 and am still getting an error (although, different this time). Still a python issue?
--
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/6f48aa38-c8f8-487b-9cfc-0afd39956bc5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages