Error install Forecast 4.0 for weewx 5.2

52 views
Skip to first unread message

ABZ

unread,
Nov 3, 2025, 12:58:20 PM (2 days ago) Nov 3
to weewx-user
Can anyone help resolve this installation error?

$ weectl extension install weewx-forecast-4.0.zip
Using configuration file /etc/weewx/weewx.conf
Install extension 'weewx-forecast-4.0.zip' (y/n)? y
Extracting from zip archive weewx-forecast-4.0.zip
Traceback (most recent call last):
  File "/usr/share/weewx/weectl.py", line 75, in <module>
    main()
  File "/usr/share/weewx/weectl.py", line 67, in main
    namespace.func(namespace)
  File "/usr/share/weewx/weectllib/__init__.py", line 90, in dispatch
    namespace.action_func(config_dict, namespace)
  File "/usr/share/weewx/weectllib/extension_cmd.py", line 116, in install_extension
    ext.install_extension(namespace.source, no_confirm=namespace.yes)
  File "/usr/share/weewx/weecfg/extension.py", line 140, in install_extension
    extension_name = self._install_from_file(extension_path, filetype)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/weewx/weecfg/extension.py", line 170, in _install_from_file
    extension_name = self.install_from_dir(extension_dir)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/weewx/weecfg/extension.py", line 187, in install_from_dir
    self._install_files(installer['files'], extension_dir)
  File "/usr/share/weewx/weecfg/extension.py", line 271, in _install_files
    shutil.copy(source_path, destination_path)
  File "/usr/lib/python3.11/shutil.py", line 420, in copy
    copymode(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.11/shutil.py", line 309, in copymode
    chmod_func(dst, stat.S_IMODE(st.st_mode))
PermissionError: [Errno 1] Operation not permitted: '/etc/weewx/bin/user/forecast.py'

Although it says "PermissionError", the paths through to /etc/weewx are open rwx for the world.

Graham Eddy

unread,
Nov 3, 2025, 6:35:40 PM (2 days ago) Nov 3
to WeeWX User
it is not file perm error, it is file ownership issue (someone not owner trying to change file perm).
make sure you executed the weectl both as weewx user and from within the weewx virtual env
⊣GE⊢

AZ

unread,
Nov 4, 2025, 7:55:30 AM (yesterday) Nov 4
to weewx-user
Appreciate your help.  Spot on!
Reply all
Reply to author
Forward
0 new messages