WeeWx 5.0 problem on Ubuntu 23.10 after upgrade

116 views
Skip to first unread message

danvill...@bcsdk12.org

unread,
Mar 15, 2024, 7:38:23 AMMar 15
to weewx-user
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)

Tom Keffer

unread,
Mar 15, 2024, 8:14:44 AMMar 15
to weewx...@googlegroups.com
Hello,

What version were you upgrading from? It appears to be an older version that does not have a [[Defaults]] section (introduced V3.9).

--
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/5c62a643-04e9-4a16-9826-12dbb00c0de0n%40googlegroups.com.

matthew wall

unread,
Mar 15, 2024, 8:15:45 AMMar 15
to weewx-user
it looks like a bug in the v5 station actions.  fixed at commit 2754e393

matthew wall

unread,
Mar 15, 2024, 8:17:50 AMMar 15
to weewx-user
On Friday, March 15, 2024 at 7:38:23 AM UTC-4 danvill...@bcsdk12.org wrote:
I am not able to upgrade after upgrading Weewx 5.0 on Ubuntu 23.10
Any thoughts are greatly appreciated!

as a workaround, edit your weewx configuration file by adding this to the [StdReport] section:

[[Defaults]]
    foo = bar

then run the v5 upgrade again

m

danvill...@bcsdk12.org

unread,
Mar 15, 2024, 9:59:39 AMMar 15
to weewx-user
Works now.  Thank you!!
Reply all
Reply to author
Forward
0 new messages