Important release: V5.0.1 !

165 views
Skip to first unread message

Tom Keffer

unread,
Feb 5, 2024, 7:37:59 AMFeb 5
to weewx-user, weewx-development
This is a very important bug fix!

If you upgraded from v4.x to v5.0 using a package installer, then tried to install an extension, then tried to uninstall it, you could delete system files!

V5.0.1 fixes this, along with some other bugs.

See the Upgrade Guide for upgrade instructions.

-Tom & Matthew


Change log:

5.0.1 02/04/2024

Include backwards compatible reference to weewx.UnknownType.

Fix problem with installing extensions into installations that used V4 config files that were installed by a package installer.

Fix problem with weectl device when using drivers that were installed using the extension installer. Fixes issue #918.

Fix problem that prevented daily summaries from being rebuilt if they had been modified by using weectl database drop-columns.

Allow the use of the tilde (~) prefix with --config options.

Fix problem that prevented debug statements from being logged.

Minor corrections to the Norwegian translations. Thanks to user Aslak! PR #919.

Change Chinese language code to zh. Fixes issue #912.

Fix bug in redhat/suse scriptlet that incorrectly substituted {weewx} instead of weewx in the udev rules file.

In the redhat/suse installers, use /var/lib/weewx as HOME for user weewx.


Steven Sheeley

unread,
Feb 6, 2024, 1:18:50 AMFeb 6
to weewx-development
Hi all,

     I'm sorry if I'm missing something here. I just did what the above instructions directed for a pip install (Which my system is)


 rayvenhaus  wendydev  ~  # Activate the WeeWX virtual environment
 rayvenhaus  wendydev  ~  source ~/weewx-venv/bin/activate
 rayvenhaus  wendydev  ~  weewx-venv  # Upgrade the WeeWX code
 rayvenhaus  wendydev  ~  weewx-venv  python3 -m pip install weewx --upgrade
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: weewx in ./weewx-venv/lib/python3.9/site-packages (5.0.0)
Collecting weewx
  Downloading https://www.piwheels.org/simple/weewx/weewx-5.0.1-py3-none-any.whl (1.4 MB)
     |████████████████████████████████| 1.4 MB 136 kB/s
Requirement already satisfied: ephem<5.0,>=4.1 in ./weewx-venv/lib/python3.9/site-packages (from weewx) (4.1.5)
Requirement already satisfied: Pillow>=5.2 in ./weewx-venv/lib/python3.9/site-packages (from weewx) (10.1.0)
Requirement already satisfied: pyusb<2.0.0,>=1.0.2 in ./weewx-venv/lib/python3.9/site-packages (from weewx) (1.2.1)
Requirement already satisfied: PyMySQL<2.0,>=1.0 in ./weewx-venv/lib/python3.9/site-packages (from weewx) (1.1.0)
Requirement already satisfied: configobj<6.0,>=5.0 in ./weewx-venv/lib/python3.9/site-packages (from weewx) (5.0.8)
Requirement already satisfied: pyserial<4.0,>=3.4 in ./weewx-venv/lib/python3.9/site-packages (from weewx) (3.5)
Requirement already satisfied: CT3<4.0,>=3.1 in ./weewx-venv/lib/python3.9/site-packages (from weewx) (3.3.3)
Requirement already satisfied: six in ./weewx-venv/lib/python3.9/site-packages (from configobj<6.0,>=5.0->weewx) (1.16.0)
Installing collected packages: weewx
  Attempting uninstall: weewx
    Found existing installation: weewx 5.0.0
    Uninstalling weewx-5.0.0:
      Successfully uninstalled weewx-5.0.0
Successfully installed weewx-5.0.1

Then, I stopped and started Weewx, waited several minutes and verified that all was running well. I then checked the webpage, and the system reported that I was still running v5.0.0.  Looking at the weewx,conf file, I see

<!---- SNIP  ---->
# This configuration file was created by ...
version = 5.0.0rc2
<!---- SNIP  ---->

Why didn't the upgrade change my version to 5.0.1?  Did I miss something?

Greg

unread,
Feb 6, 2024, 1:41:16 AMFeb 6
to weewx-development
Yep. That the new as well. Apparently it didn't update the weewx.conf.
Look at the about section on your web page.

Tom Keffer

unread,
Feb 6, 2024, 7:55:09 AMFeb 6
to Steven Sheeley, weewx-development
As noted in the comment you included, the version stamp in a config file is the version that created it, not the version that is currently running.

For the latter, use "weectl -v", or look in the log.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/3f3b1737-0a92-4a3a-a6d9-560963b4892en%40googlegroups.com.

Steven Sheeley

unread,
Feb 6, 2024, 3:37:14 PMFeb 6
to weewx-development
Thanks for the explanation, Tom

Kruse Ludington

unread,
Feb 11, 2024, 1:34:57 PMFeb 11
to weewx-development
Thank you for clarifying
Reply all
Reply to author
Forward
0 new messages