Hi Vince,

Your advice worked!  I already had the python3 version of paho-mqtt 
installed and all that I had to do to get it to work was to reinstall the 
mqtt extension with "sudo wee_extension --install weewx-mqtt.zip" and 
everything was fixed.  Previously, I didn't think that I needed to 
reinstall the mqtt extension since it appeared to be the same code base as 
was installed with python2, however, reinstalling it fixed it.

FYI,

Gordon


On Thursday, January 28, 2021 at 12:24:05 PM UTC-5 vince wrote:

> On Thursday, January 28, 2021 at 8:10:05 AM UTC-8 [email protected] 
> wrote:
>
>> Jan 27 14:34:43 zeebytes.org python3[31396]: weewx[31396] CRITICAL 
>>> __main__:     ****      except Exception, e:
>>> Jan 27 14:34:43 zeebytes.org python3[31396]: weewx[31396] CRITICAL 
>>> __main__:     ****                      ^
>>> Jan 27 14:34:43 zeebytes.org python3[31396]: weewx[31396] CRITICAL 
>>> __main__:     ****  SyntaxError: invalid syntax
>>> Jan 27 14:34:43 zeebytes.org python3[31396]: weewx[31396] CRITICAL 
>>> __main__:     ****  Exiting.
>>>
>>
> As I said yesterday, when you see that error, you need to 'upgrade' the 
> extension throwing the error to a newer python3-compliant version.  Don't 
> 'remove' the extension or skin.  'Upgrade' it to the current version. 
> Belchertown with MQTT works just fine under python3 if you go to the latest 
> version of the MQTT extension.
>
> The webpage you're looking at is a bit confusingly written.
>
> You want to simply do "sudo pip3 install paho-mqtt" to install the 
> prerequisite python3 library since you are running weewx under python3.   
> Then upgrade your weewx-mqtt extension with wee_extension as the webpage 
> shows.  Then restart weewx.
>
> It's that simple.
>  
>

-- 
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/aa2ba6d9-96d4-49d3-b339-586c1ae0bbdcn%40googlegroups.com.

Reply via email to