Weewx on Raspi 4

112 views
Skip to first unread message

Alan Salmon

unread,
Aug 12, 2024, 6:33:18 AM8/12/24
to weewx-user
Has anyone tried installing this python3-weewx_5.1.0-3_all.deb on a fresh install of the latest Raspian OS (Bookworm) with all updates applied as of yesterday?

Attempting to do so gives me a range of errors, including messages like this in /var/dpkg.log:

2024-08-11 18:15:00 startup packages configure
2024-08-11 18:15:00 configure weewx:all 5.1.0-4 <none>
2024-08-11 18:15:00 status half-configured weewx:all 5.1.0-4
2024-08-11 18:15:53 startup archives unpack
2024-08-11 18:15:53 install libdbus-1-dev:arm64 <none> 1.14.10-1~deb12u1
2024-08-11 18:15:53 status half-installed libdbus-1-dev:arm64 1.14.10-1~deb12u1
2024-08-11 18:15:54 status triggers-pending sgml-base:all 1.31
2024-08-11 18:15:54 status unpacked libdbus-1-dev:arm64 1.14.10-1~deb12u1
2024-08-11 18:15:54 install libpcap0.8-dev:arm64 <none> 1.10.3-1
2024-08-11 18:15:54 status half-installed libpcap0.8-dev:arm64 1.10.3-1
2024-08-11 18:15:54 status triggers-pending man-db:arm64 2.11.2-2
2024-08-11 18:15:54 status unpacked libpcap0.8-dev:arm64 1.10.3-1
2024-08-11 18:15:54 install libpcap-dev:arm64 <none> 1.10.3-1
2024-08-11 18:15:54 status half-installed libpcap-dev:arm64 1.10.3-1
2024-08-11 18:15:54 status unpacked libpcap-dev:arm64 1.10.3-1
2024-08-11 18:15:54 startup packages configure

Attempting to run the configuration script simply crashes with a number of errors ending with:

  File "/usr/share/weewx/weectllib/station_actions.py", line 250, in config_altitude
    float(value)
ValueError: could not convert string to float: ''
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)

Can anyone suggest where to start looking before I build a new Raspi OS and start again, please?

Tom Keffer

unread,
Aug 12, 2024, 9:31:20 AM8/12/24
to weewx...@googlegroups.com
I suspect that your debconf variables got contaminated with a bad value for altitude. You can see what they are with

  sudo debconf-show weewx

If there's a bad value, try purging weewx (sudo apt purge weewx), then reinstalling.



--
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/dc5832dc-95ef-4299-adf2-27e2d448be1fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages