I did a quick port. Try this version of owm.py:
https://raw.githubusercontent.com/tkeffer/weewx-owm/master/bin/user/owm.py

On Wed, May 6, 2020 at 2:23 PM Colin Larsen <colin.lar...@gmail.com> wrote:

> Righto, back to Python2 it is, apologies for asking but hadn't seen this
> one before.
>
> Cheers and thanks
> Colin
>
> On Thu, 7 May 2020, 02:32 vince, <vinceska...@gmail.com> wrote:
>
>> On Tuesday, May 5, 2020 at 7:31:23 PM UTC-7, Colin Larsen wrote:
>>>
>>>
>>> May  6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__:     ****
>>>   except KeyError, e:
>>>
>>> May  6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__:     ****
>>>                 ^
>>>
>>> May  6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__:     ****  
>>> SyntaxError:
>>> invalid syntax
>>>
>>> May  6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__:     ****
>>> Exiting.
>>>
>>>
>>>
>> This is almost the most frequently asked question.....
>>
>> Any time you see that error, you are running python2 code that has not
>> been updated to python3 syntax.   Either update your driver or extension to
>> the latest version, or stay with python2 until the author of the
>> driver/extension has updated their software to python3.
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/10c129b2-7488-418c-8380-07115b479be2%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-user/10c129b2-7488-418c-8380-07115b479be2%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CACjxfUsqFccLY_T0oPPwatGRd9tJs-ceOGqJyH1T2ps3VJ6mvw%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CACjxfUsqFccLY_T0oPPwatGRd9tJs-ceOGqJyH1T2ps3VJ6mvw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBUQutbbOES4poJxSkLTMv38jkiiXs7oWMUqoqxTk5mUA%40mail.gmail.com.

Reply via email to