Hello, What version were you upgrading from? It appears to be an older version that does not have a [[Defaults]] section (introduced V3.9).
On Fri, Mar 15, 2024 at 4:38 AM [email protected] < [email protected]> wrote: > *I am not able to upgrade after upgrading Weewx 5.0 on Ubuntu 23.10* > *Any thoughts are greatly appreciated!* > > Setting up weewx (5.0.2-1) ... > Using weewx:weewx as user:group > Saving old defaults to /etc/default/weewx-20240315073503 > Creating /etc/default/weewx > Using debconf configuration values from previous install > Using configuration file /etc/weewx/weewx.conf > Processing configuration file /etc/weewx/weewx.conf > Traceback (most recent call last): > File "/usr/share/weewx/weectl.py", line 74, in <module> > main() > File "/usr/share/weewx/weectl.py", line 66, in main > namespace.func(namespace) > File "/usr/share/weewx/weectllib/__init__.py", line 121, in dispatch > namespace.action_func(config_dict, namespace) > File "/usr/share/weewx/weectllib/station_cmd.py", line 311, in > reconfigure_station > weectllib.station_actions.station_reconfigure(config_dict=config_dict, > File "/usr/share/weewx/weectllib/station_actions.py", line 164, in > station_reconfigure > config_config(config_dict, > File "/usr/share/weewx/weectllib/station_actions.py", line 206, in > config_config > config_units(config_dict, unit_system=unit_system, no_prompt=no_prompt) > File "/usr/share/weewx/weectllib/station_actions.py", line 384, in > config_units > config_dict['StdReport']['Defaults']['unit_system'] = final_unit_system > ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ > File "/usr/lib/python3/dist-packages/configobj/__init__.py", line 553, > in __getitem__ > val = dict.__getitem__(self, key) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ > KeyError: 'Defaults' > dpkg: error processing package weewx (--configure): > installed weewx package post-installation script subprocess returned > error exit status 1 > Errors were encountered while processing: > weewx > E: Sub-process /usr/bin/dpkg returned an error code (1) > > -- > 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/5c62a643-04e9-4a16-9826-12dbb00c0de0n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/5c62a643-04e9-4a16-9826-12dbb00c0de0n%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEAvBzL7gNygSEREc%2BT8-2fvcBCn%2BO_pmdn7E1C39bGeyQ%40mail.gmail.com.
