Re: [weewx-user] How to change weewx service from python2 to python3 on Debian

2021-01-28 Thread Gordon Dickens
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

Re: [weewx-user] How to change weewx service from python2 to python3 on Debian

2021-01-28 Thread vince
On Thursday, January 28, 2021 at 8:10:05 AM UTC-8 gldic...@gmail.com 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__:

Re: [weewx-user] How to change weewx service from python2 to python3 on Debian

2021-01-28 Thread Gordon Dickens
Thanks Vince for pointing out the problem! I removed the Weather34 skin and the errors stopped. However, I am now getting a very similar error but for my mqtt extension. The command "systemctl status weewx" is now generating the following error dialog: ● weewx.service - LSB: weewx weather

Re: [weewx-user] How to change weewx service from python2 to python3 on Debian

2021-01-27 Thread Gordon Dickens
In my previous post I thought that it would be better to send the errors via an image, however, I am not sure that was the best way. In any event, here are the errors from the output of "systemctl status weewx": root@zeebytes:/etc/weewx# systemctl status weewx ● weewx.service - LSB: weewx

Re: [weewx-user] How to change weewx service from python2 to python3 on Debian

2021-01-27 Thread vince
Any time you see that error, you are running python2 code that has not been updated to python3. You need to update your weather34 software to a python3-compliant version. On Wednesday, January 27, 2021 at 11:44:40 AM UTC-8 gldic...@gmail.com wrote: > Thanks to Tom, Rainer and Colin for your

Re: [weewx-user] How to change weewx service from python2 to python3 on Debian

2021-01-26 Thread Tom Keffer
Yes, that will work, but it also assumes that all the prerequisites have been installed. The Python 3 prereqs are different from Python 2. On Tue, Jan 26, 2021 at 2:12 PM Colin Larsen wrote: > I remember I had to change /etc/default/weewx it to tell Weewx to start > with Python3 > >

Re: [weewx-user] How to change weewx service from python2 to python3 on Debian

2021-01-26 Thread Colin Larsen
I remember I had to change /etc/default/weewx it to tell Weewx to start with Python3 WEEWX_PYTHON=python2<== change to python3 WEEWX_BINDIR=/usr/share/weewx WEEWX_BIN=/usr/bin/weewxd WEEWX_CFG=/etc/weewx/weewx.conf Colin On Wed, 27 Jan 2021 at 11:04, Tom Keffer wrote: > Easiest is to

Re: [weewx-user] How to change weewx service from python2 to python3 on Debian

2021-01-26 Thread Tom Keffer
Easiest is to just follow the install directions in the Debian guide : *wget -qO - https://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.listsudo apt-get updatesudo apt-get install

[weewx-user] How to change weewx service from python2 to python3 on Debian

2021-01-26 Thread Gordon Dickens
How do I make weewx use python3 instead of python2? I initially installed weewx on Debian using the Debian package over a year ago and it was originally setup to use python2. I recently upgraded to weewx 4.3.0 with the Belchertown skin version 1.2 and so I want to also upgrade to python3.