I updated (via sudo apt upgrade, after stopping weewx) from 4.4 to 4.5.1 on
Ubuntu 20.04 Core opting to get an updated weewx.conf
Configuration file '/etc/weewx/weewx.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** weewx.conf (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/weewx/weewx.conf ...
Installing new version of config file /etc/weewx/weewx.conf.dist ...
using debconf configuration values from previous install
update-rc.d: error: unable to read /etc/init.d/weewx
dpkg: error processing package weewx (--configure):
installed weewx package post-installation script subprocess returned error
exit status 1
Processing triggers for systemd (245.4-4ubuntu3.5) ...
Errors were encountered while processing:
weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)
I ended up with a bad weewx.conf and had to restore weewx.conf.dpkg-old
On Saturday, April 3, 2021 at 1:24:52 PM UTC+1 [email protected] wrote:
> Yes, it's possible to extend the V4 schema. That's what is documented in
> the section *Modifying a starting schema
> <http://www.weewx.com/docs/customizing.htm#Modifying_a_starting_schema>. *
>
> But, let's keep the wview schema at V3.
>
> On Sat, Apr 3, 2021 at 1:21 AM Gérard P <[email protected]> wrote:
>
>> It is possible to stay with 4.5.0 by changing the syntax of code using
>> the "+" operator, for instance :
>> schema_extended = schemas.wview.schema + [('lightning_strikes',
>> 'REAL'), ('avg_distance', 'REAL')]
>> become
>> schema_extended = schemas.wview.schema.copy()
>> schema_extended.update([('lightning_strikes', 'REAL'),
>> ('avg_distance', 'REAL')])
>>
>> Le vendredi 2 avril 2021 à 21:14:27 UTC+2, [email protected] a écrit :
>>
>>> the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
>>> used these commands for upgrade
>>> sudo apt update
>>> apt list --upgradable (4.5 was showing)
>>> sudo apt full-upgrade
>>> then I answered "N" to the upgrade select to keep my old files
>>>
>>> Apr 2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather
>>> system...
>>> Apr 2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather system:
>>> weewxTraceback (most recent call last):
>>> Apr 2 21:31:49 raspberrypi weewx[1049]: File
>>> "/usr/share/weewx/weewxd", line 29, in <module>
>>> Apr 2 21:31:49 raspberrypi weewx[1049]: import user.extensions
>>> Apr 2 21:31:49 raspberrypi weewx[1049]: File
>>> "/usr/share/weewx/user/extensions.py", line 20, in <module>
>>> Apr 2 21:31:49 raspberrypi weewx[1049]: schema_extended =
>>> schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance',
>>> 'REAL')]
>>> Apr 2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported operand
>>> type(s) for +: 'dict' and 'list'
>>> Apr 2 21:31:49 raspberrypi weewx[1049]: failed!
>>> Apr 2 21:31:49 raspberrypi systemd[1]: weewx.service: Control process
>>> exited, code=exited, status=1/FAILURE
>>> Apr 2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with
>>> result 'exit-code'.
>>> Apr 2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx
>>> weather system.
>>>
>>
>> --
>> 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/a14fa3bd-3a52-4df4-be1b-00936e9f7f67n%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/weewx-user/a14fa3bd-3a52-4df4-be1b-00936e9f7f67n%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/31a24e8b-7fa4-4efb-88d1-3b22c955c5cbn%40googlegroups.com.