Updated to 4.0 and now it doesn't work

52 views
Skip to first unread message

Banana Bob

unread,
May 13, 2020, 11:25:58 PM5/13/20
to weewx-user
I am getting the following errors after an update to 4.0

May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main
May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 72, in __init__
May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****      self.preLoadServices(config_dict)
May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 112, in preLoadServices
May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****      self.stn_info = weewx.station.StationInfo(self.console, **config_dict['Station'])
May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/station.py", line 51, in __init__
May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****      self.latitude_f      = float(stn_dict['latitude'])
May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****  ValueError: invalid literal for float(): -40.8694607 175.0611268
May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****  Exiting.

What can I do to fix this please.

gjr80

unread,
May 13, 2020, 11:31:46 PM5/13/20
to weewx-user
Hi,

here is the problem:

May 14 15:19:14 weather weewx[814] CRITICAL __main__:     ****  ValueError: invalid literal for float(): -40.8694607 175.0611268

In weewx.conf under [Station] your latitude setting appears to contain both latitude and longitude data. You nee to edit weewx.conf and correct the [Station] latitude setting. I would also check your longitude setting while you are there. Save weewx.conf then restart WeeWX and check your log for errors.

This is the second time this exact same error has occurred today, would you mind telling us how you installed/upgraded to WeeWX 4 ?

Gary

Banana Bob

unread,
May 13, 2020, 11:41:23 PM5/13/20
to weewx-user
I have weewx running on a Raspberry Pi and just did the normal apt-get update then upgrade.

Thank you for the fix. I have it back up now.

gjr80

unread,
May 13, 2020, 11:50:51 PM5/13/20
to weewx-user
Upgrade from which WeeWX version? Upgrade via setup.py, .deb package or .rpm package?

Gary

Banana Bob

unread,
May 13, 2020, 11:53:23 PM5/13/20
to weewx-user
I think it must have been 3.9.2 and I presume that the package would have been a deb but delivered by the apt-get command that's the way I normally update my system.

gjr80

unread,
May 13, 2020, 11:55:45 PM5/13/20
to weewx-user
Ok, thanks.

Gary

Banana Bob

unread,
May 14, 2020, 12:03:05 AM5/14/20
to weewx-user
To add to that Gary I answered "yes" to a question to take the new supplied conf file instead of keeping my custom one. When I went in to add my changes to the 4.0 file I noticed then that the latitude/longitude was incorrect, but assumed it was a change required by the upgrade.
James 

On Thursday, 14 May 2020 15:55:45 UTC+12, gjr80 wrote:
Ok, thanks.

Gary

Reply all
Reply to author
Forward
0 new messages