Matthew,
Many thanks for your reply.
it does look like I'm having the same issue as described in the link you posted - I searched high and low for similar issues but that one passed me by. My /etc/default/weewx file does contain the "python2" value.
WEEWX_PYTHON=python2
WEEWX_PYTHON_ARGS=
WEEWX_BINDIR=/usr/share/weewx
WEEWX_BIN=/usr/bin/weewxd
WEEWX_CFG=/etc/weewx/weewx.conf
As a bit of background. I'm running Weewx on a Raspberry Pi 3 Model B Plus Rev 1.3 (5.1.103-v7+) running Debian 11.1.
I followed the upgrade steps as per https://weewx.com/docs/5.0/quickstarts/debian/#upgrade. The install progressed okay, with the text UI showing asking me to set the station location/coordinates/website and select the weather station driver and also asked if I wanted to overwrite the weewx.conf file. After that it errored out.
I have modified the "WEEWX_PYTHON=python2" line to be "python3" and now the install progresses further, however no getting
Setting up weewx (5.0.0-1) ...
Using root:root as user:group
Using debconf configuration values from previous install
usage: weectl.py -v|--version
weectl.py -h|--help
weectl.py database --help
weectl.py debug --help
weectl.py device --help
weectl.py extension --help
weectl.py import --help
weectl.py report --help
weectl.py station --help
weectl.py: error: unrecognized arguments: │ │
dpkg: error processing package weewx (--configure):
installed weewx package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'll work on this one separately.
Thanks again for you help, and great software!
Cheers
Simon