It looks like the mqtt extension has not been ported to Python 3.

You'll have to talk to the extension author about that.

-tk

On Mon, Mar 16, 2020 at 10:20 PM Gert Andersen <[email protected]>
wrote:

> Hi
> Currently I'm running weewx 3.9.2 and mqtt on a Raspberry system  and I'm
> trying to setup a test system for weewx 4 with mqtt.
>
> I have followed the weewx 4 installation instructions and used this link
> https://github.com/weewx/weewx/wiki/mqtt for installing mqtt. I have been
> searching to see if mqtt should be installed differently using weewx
> 4(Python 3), but can't find any advises.
>
> Starting weewx gives this error:
>
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__: Caught
> unrecoverable exception:
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****
> invalid syntax (mqtt.py, line 197)
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****
> Traceback (most recent call last):
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****    File
> "/home/weewx/bin/weewxd", line 148, in main
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****
> engine = weewx.engine.StdEngine(config_dict)
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****    File
> "/home/weewx/bin/weewx/engine.py", line 75, in                      __init__
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****
> self.loadServices(config_dict)
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****    File
> "/home/weewx/bin/weewx/engine.py", line 136, i                     n
> loadServices
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****
> obj = weeutil.weeutil.get_object(svc)(self,config                     _dict)
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****    File
> "/home/weewx/bin/weeutil/weeutil.py", line 109                     3, in
> get_object
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****
> mod = __import__(module)
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****    File
> "/home/weewx/bin/user/mqtt.py", line 197
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****
> except KeyError, e:
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****
>              ^
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****
> SyntaxError: invalid syntax
> Mar 16 21:17:45 weewx4Test weewx[2305] CRITICAL __main__:     ****
> Exiting.
>
> Gert
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" 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-development/7435406f-8193-46a6-9f79-af59af70bc02%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/7435406f-8193-46a6-9f79-af59af70bc02%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/CAPq0zEBMLj2X%3DZqGoG-BW2-jMuCAND_KT9XFzNmenukTkQiAwg%40mail.gmail.com.

Reply via email to