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.

On Sunday, January 10, 2021 at 4:31:09 PM UTC-8 WxManAJB wrote:

> 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.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/01a907be-a5b0-4c60-ab05-d9bec141f646n%40googlegroups.com.

Reply via email to