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.



On Mon, Aug 12, 2024 at 3:33 AM Alan Salmon <[email protected]> wrote:

> 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?
>
> --
> 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/dc5832dc-95ef-4299-adf2-27e2d448be1fn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/dc5832dc-95ef-4299-adf2-27e2d448be1fn%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/CAPq0zEByifuDTK4w7PnC2ABJ7zLo2OrqV8jFzHKXOPm1zb6%2B8g%40mail.gmail.com.

Reply via email to