That means your MQTT extension is not Python3 proof!
Get your self an updated version. 
Is it this one: https://github.com/weewx/weewx/wiki/mqtt ? 
<https://github.com/weewx/weewx/wiki/mqtt>


Op zondag 3 mei 2020 06:29:34 UTC+2 schreef Colin Larsen:
>
> This may be a problem? After changing to python3 ......
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: Caught 
> unrecoverable exception:
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****  invalid 
> syntax (mqtt.py, line 196)
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****  
> Traceback 
> (most recent call last):
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/weewxd", line 148, in main
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****      
> engine 
> = weewx.engine.StdEngine(config_dict)
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 75, in __init__
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****      
> self.loadServices(config_dict)
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 138, in loadServices
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****      obj 
> = weeutil.weeutil.get_object(svc)(self,config_dict)
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****      mod 
> = __import__(module)
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/user/mqtt.py", line 196
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****      
> except 
> KeyError, e:
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****       
>               ^
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****  
> SyntaxError: 
> invalid syntax
>
> May  3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__:     ****  
> Exiting.
>
> On Sun, 3 May 2020 at 15:45, Colin Larsen <[email protected] 
> <javascript:>> wrote:
>
>> Ah ...... that will be the missing piece of the puzzle! Off to sort that 
>> now, will report back.
>>
>> Thanks!
>>
>> On Sun, 3 May 2020 at 15:30, mwall <[email protected] 
>> <javascript:>> wrote:
>>
>>> On Saturday, May 2, 2020 at 9:11:51 PM UTC-4, Colin Larsen wrote:
>>>>
>>>> I found this /etc/default
>>>>
>>>> WEEWX_PYTHON=python2
>>>>
>>>> WEEWX_BINDIR=/usr/share/weewx
>>>>
>>>> WEEWX_BIN=/usr/bin/weewxd
>>>>
>>>> WEEWX_CFG=/etc/weewx/weewx.conf
>>>>
>>>>
>>>> Changing it to python3 breaks weewx so I'll just leave well enough alone
>>>>
>>>
>>> you *should* be able to switch from python2 to python3 simply by 
>>> changing the WEEWX_PYTHON line.  however, if you were running with python2 
>>> and you have not installed the python3 dependencies, then of course weewx 
>>> won't run.
>>>
>>> m 
>>>
>>> -- 
>>> 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] <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/973baa2b-1c38-45c8-a3ed-630835e0bfdd%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/973baa2b-1c38-45c8-a3ed-630835e0bfdd%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f3000d48-6728-47f3-9b3f-cc6dff38018d%40googlegroups.com.

Reply via email to