weewx has been dead since an extension installation

146 views
Skip to first unread message

Geni 0815

unread,
Jul 4, 2020, 12:39:22 PM7/4/20
to weewx-user
Weewx v 4.1.1
nothing has happened since loop-data 1.3.5 was installed


what went wrong, how can I correct this?

wee_extension --list
pi@Wetter-Raspi:~ $ wee_extension --list
Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 88, in <module>
    main()
  File "/usr/share/weewx/wee_extension", line 67, in main
    config_path, config_dict = weecfg.read_config(options.config, _args)
  File "/usr/share/weewx/weecfg/__init__.py", line 179, in read_config
    default_encoding='utf-8')
  File "/usr/lib/python3/dist-packages/configobj.py", line 1229, in __init__
    self._load(infile, configspec)
  File "/usr/lib/python3/dist-packages/configobj.py", line 1318, in _load
    raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 532.


or wee_debug --info
pi@Wetter-Raspi:~ $ wee_debug --info
Traceback (most recent call last):
  File "/usr/share/weewx/wee_debug", line 435, in <module>
    main()
  File "/usr/share/weewx/wee_debug", line 118, in main
    config_path, config_dict = weecfg.read_config(options.config_path, args)
  File "/usr/share/weewx/weecfg/__init__.py", line 179, in read_config
    default_encoding='utf-8')
  File "/usr/lib/python3/dist-packages/configobj.py", line 1229, in __init__
    self._load(infile, configspec)
  File "/usr/lib/python3/dist-packages/configobj.py", line 1318, in _load
    raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 532.

John Kline

unread,
Jul 4, 2020, 12:44:23 PM7/4/20
to weewx...@googlegroups.com
Did you follow the steps I sent to manually remove loopdata?

Also, I forgot one file:
sudo rm <weewx-home-dir>/bin/user/installer/loopdata

One you have followed these steps, you will have a weewx untouched by loopdata and weatherboard.

It looks like you have messed up your weewx.conf file.   If you look in your weewx home directory, you will see lots of backups.  You should probably compare those to get to a working weewx.conf file.

On Jul 4, 2020, at 9:39 AM, Geni 0815 <geni08...@gmail.com> wrote:


--
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/fd8cd91a-dc9c-412d-9cc5-4c5126f113f2o%40googlegroups.com.

Geni 0815

unread,
Jul 4, 2020, 1:51:08 PM7/4/20
to weewx-user
OK again, thank you
But would like loop data, goal: instead of MQTT in Belchertown.
Is this possible?
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

John Kline

unread,
Jul 4, 2020, 2:02:41 PM7/4/20
to weewx...@googlegroups.com
Before we do anything else, we need to figure out why your installation broke.

Did you make any manual changes to weewx.conf?  For example, did you edit weewx.conf to change the label form “ kph” to “ km/h”?

On Jul 4, 2020, at 10:51 AM, Geni 0815 <geni08...@gmail.com> wrote:


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/248ed1b9-134f-49d8-b70b-71ed1909bf78o%40googlegroups.com.

Tom Keffer

unread,
Jul 4, 2020, 7:59:17 PM7/4/20
to weewx-user
Oh dear. John, this error is looking familiar...

John Kline

unread,
Jul 4, 2020, 8:18:52 PM7/4/20
to weewx...@googlegroups.com
HI Tom,

I’m not sure which of the two errors we have discussed you have in mind?

The most likely case for this error is that it was caused by a hand modification to weewx.conf that I asked him to make.  I asked him to look at his weewx.conf backups to restore the file to a working state.  He has done that.  Since the user was quite upset at weewx breaking, out of an abundance of caution (and mostly because I don’t want to deal with it), I won’t proceed until we understand how weewx.conf got into a bad state.

The configobj error I am getting is at head.  It has NEVER been observed in 4.1.1.  It has also NEVER been observed without the LiveSeasonsSkin which this user has not installed and cannot install, as it is private.

Perhaps you mean the non-existent database error, but that is not in the stack trace and has never been observed in 4.1.1.

On Jul 4, 2020, at 4:59 PM, Tom Keffer <tke...@gmail.com> wrote:



Geni 0815

unread,
Jul 5, 2020, 4:39:45 AM7/5/20
to weewx-user
@John: comment on your impression, I was helpless and didn't know what to do next!

The difference in weewx.conf from the still good to the dead version is the entry

[[[[Labels]]]
km_per_hour = km / h

under [[WeatherBoardReport]]

And the Loop-Data version 1.3.4 and after 1.3.5

Question: can this label entry have this effect?

--
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...@googlegroups.com.

--
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...@googlegroups.com.

John Kline

unread,
Jul 5, 2020, 7:29:49 AM7/5/20
to weewx...@googlegroups.com
I don’t believe that would cause the problem.  Do you have the bad copy of weewx.conf that you could send?

On Jul 5, 2020, at 1:39 AM, Geni 0815 <geni08...@gmail.com> wrote:


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/9d0391ef-d513-4d58-8346-a5b292ff81dbo%40googlegroups.com.

Geni 0815

unread,
Jul 5, 2020, 9:09:29 AM7/5/20
to weewx-user


Am Sonntag, 5. Juli 2020 13:29:49 UTC+2 schrieb John Kline:
I don’t believe that would cause the problem.  Do you have the bad copy of weewx.conf that you could send?
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
weewx.conf.bad.txt

John Kline

unread,
Jul 5, 2020, 9:19:31 AM7/5/20
to weewx...@googlegroups.com
OK, this explains the break.  The file shows four brackets on the left of Labels and 3 brackets on the right.  This is malformed and will produce an error.

           [[[[Labels]]]
                km_per_hour = km/h

BTW, besides adding the bracket, which would have fixed the broken installation; you want to put the km/h in quotes and add a leading space.
km_per_hour = “ km/h”

On Jul 5, 2020, at 6:09 AM, Geni 0815 <geni08...@gmail.com> wrote:


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/e8a71862-d134-4adb-b5a3-f142688883d7o%40googlegroups.com.
<weewx.conf.bad.txt>
Reply all
Reply to author
Forward
0 new messages