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 system Loaded: loaded (/etc/init.d/weewx; generated) Active: active (exited) since Thu 2021-01-28 10:56:59 EST; 4s ago Docs: man:systemd-sysv-generator(8) Process: 29276 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS) Jan 28 10:56:59 zeebytes.org python3[29292]: weewx[29292] CRITICAL __main__: **** self.loadServices(config_dict) Jan 28 10:56:59 zeebytes.org python3[29292]: weewx[29292] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices Jan 28 10:56:59 zeebytes.org python3[29292]: weewx[29292] CRITICAL __main__: **** obj = weeutil.weeutil.get_object(svc)(self, config_dict) Jan 28 10:56:59 zeebytes.org python3[29292]: weewx[29292] CRITICAL __main__: **** File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object Jan 28 10:56:59 zeebytes.org python3[29292]: weewx[29292] CRITICAL __main__: **** mod = __import__(module) Jan 28 10:56:59 zeebytes.org python3[29292]: weewx[29292] CRITICAL __main__: **** File "/usr/share/weewx/user/mqtt.py", line 197 Jan 28 10:56:59 zeebytes.org python3[29292]: weewx[29292] CRITICAL __main__: **** except KeyError, e: Jan 28 10:56:59 zeebytes.org python3[29292]: weewx[29292] CRITICAL __main__: **** ^ Jan 28 10:56:59 zeebytes.org python3[29292]: weewx[29292] CRITICAL __main__: **** SyntaxError: invalid syntax Jan 28 10:56:59 zeebytes.org python3[29292]: weewx[29292] CRITICAL __main__: **** Exiting. So, it appears that weewx is now using python3 to attempt to execute python2 code for the mqtt extension. The weewx mqtt documentation states that one of the weewx/mqtt dependencies, python-cjson, is optional, and currently not supported with python3. So, how do I get weewx/Belchertown's mqtt extension to work with python3 or is that possible? Thanks again in advance for everybody's advice. Gordon On Wednesday, January 27, 2021 at 2:53:30 PM UTC-5 Gordon Dickens wrote: > 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 weather system > Loaded: loaded (/etc/init.d/weewx; generated) > Active: active (exited) since Wed 2021-01-27 14:34:43 EST; 10s ago > Docs: man:systemd-sysv-generator(8) > Process: 31379 ExecStart=/etc/init.d/weewx start (code=exited, > status=0/SUCCESS) > > Jan 27 14:34:43 zeebytes.org python3[31396]: weewx[31396] CRITICAL > __main__: **** self.loadServices(config_dict) > Jan 27 14:34:43 zeebytes.org python3[31396]: weewx[31396] CRITICAL > __main__: **** File "/usr/share/weewx/weewx/engine.py", lin > Jan 27 14:34:43 zeebytes.org python3[31396]: weewx[31396] CRITICAL > __main__: **** obj = weeutil.weeutil.get_object(svc)(self > Jan 27 14:34:43 zeebytes.org python3[31396]: weewx[31396] CRITICAL > __main__: **** File "/usr/share/weewx/weeutil/weeutil.py", > Jan 27 14:34:43 zeebytes.org python3[31396]: weewx[31396] CRITICAL > __main__: **** mod = __import__(module) > Jan 27 14:34:43 zeebytes.org python3[31396]: weewx[31396] CRITICAL > __main__: **** File "/usr/share/weewx/user/weather34.py", l > 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. > > Please reply with any suggestions. > > Thanks, > > Gordon Dickens > > On Wednesday, January 27, 2021 at 2:44:40 PM UTC-5 Gordon Dickens wrote: > >> Thanks to Tom, Rainer and Colin for your prompt replies! >> >> I followed the instructions verbatim in the Debian guide as Tom >> suggested. Afterwards, I get the following dialog with the command >> "systemctl status weewx": >> [image: weewx_status_errors.png] >> >> I also tried to reinstall with the command "apt --reinstall install >> weewx" but the results were the same. >> >> Tom, where did I go wrong and what do you recommend? >> >> I made a complete system backup before I attempted the migration. So, if >> I need to, I can revert to the Python2 version but I would rather fix it >> now. >> >> Thanks, >> >> Gordon >> >> On Tuesday, January 26, 2021 at 5:17:17 PM UTC-5 tke...@gmail.com wrote: >> >>> 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 <colin....@gmail.com> >>> wrote: >>> >>>> 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 <tke...@gmail.com> wrote: >>>> >>>>> Easiest is to just follow the install directions in the Debian guide >>>>> <http://www.weewx.com/docs/debian.htm>: >>>>> >>>>> >>>>> >>>>> >>>>> *wget -qO - https://weewx.com/apt/weewx-python3.list >>>>> <https://weewx.com/apt/weewx-python3.list> | sudo tee >>>>> /etc/apt/sources.list.d/weewx.listsudo apt-get updatesudo apt-get install >>>>> weewx* >>>>> >>>>> >>>>> On Tue, Jan 26, 2021 at 1:58 PM Gordon Dickens <gldic...@gmail.com> >>>>> wrote: >>>>> >>>>>> 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. The normal way to change default packages in Debian is with >>>>>> the >>>>>> update-alternatives command, however, when I set python3 as the default, >>>>>> weewx continues to use python2 as seen from the command, "ps aux | grep >>>>>> weewx" whose output contains: >>>>>> >>>>>> python2 /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid >>>>>> /etc/weewx/weewx.conf >>>>>> >>>>>> So, the service is started with python2. How do I change the weewx >>>>>> service to use python3? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Gordon >>>>>> >>>>>> -- >>>>>> 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+...@googlegroups.com. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/weewx-user/807bfd14-5724-4116-b369-c7d2d49f15b9n%40googlegroups.com >>>>>> >>>>>> <https://groups.google.com/d/msgid/weewx-user/807bfd14-5724-4116-b369-c7d2d49f15b9n%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+...@googlegroups.com. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/weewx-user/CAPq0zEA76i1OPAqpLZqC4AYf%2BxLY%3DTiu2FB%3DgD51Fc635PpHuQ%40mail.gmail.com >>>>> >>>>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEA76i1OPAqpLZqC4AYf%2BxLY%3DTiu2FB%3DgD51Fc635PpHuQ%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+...@googlegroups.com. >>>> >>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/weewx-user/CACjxfUv6LcGyjQWjPKfD6hPfyLJj8NuHeBBfxMx2_nPdrauw_A%40mail.gmail.com >>>> >>>> <https://groups.google.com/d/msgid/weewx-user/CACjxfUv6LcGyjQWjPKfD6hPfyLJj8NuHeBBfxMx2_nPdrauw_A%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/9d9cff7f-9c77-41c4-aae7-7aa387d74711n%40googlegroups.com.