5.0a21 and a22 station create bug

Skip to first unread message

Vince Skahan

Mar 13, 2023, 3:35:15 AMMar 13
to weewx-development
I get the following on a clean debian 11 (in Docker) setup trying to do the initial station create:

weewx@39d6376302ad:~$ weectl station create
The configuration file will be created at /home/weewx/weewx-data/weewx.conf.
Traceback (most recent call last):
  File "/home/weewx/.local/bin/weectl", line 8, in <module>
  File "/home/weewx/.local/lib/python3.9/site-packages/weectl.py", line 45, in main
  File "/home/weewx/.local/lib/python3.9/site-packages/weectllib/parse_station.py", line 188, in create_station
  File "/home/weewx/.local/lib/python3.9/site-packages/weecfg/station_config.py", line 66, in station_create
    with importlib.resources.open_text('wee_resources', 'weewx.conf', encoding='utf-8') as fd:
  File "/usr/lib/python3.9/importlib/resources.py", line 121, in open_text
    open_binary(package, resource), encoding=encoding, errors=errors)
  File "/usr/lib/python3.9/importlib/resources.py", line 91, in open_binary
    return reader.open_resource(resource)
  File "<frozen importlib._bootstrap_external>", line 995, in open_resource
FileNotFoundError: [Errno 2] No such file or directory: '/home/weewx/.local/lib/python3.9/site-packages/wee_resources/weewx.conf'

The problem does not exist on a20 but does on a21 and a22.   For the moment I'm working around it by specifying weewx==5.0a20 to stick with the older alpha for testing.

Tom Keffer

Mar 13, 2023, 9:29:45 AMMar 13
to Vince Skahan, weewx-development
Things got messed up when I moved resources back to their V4 positions in an attempt to accommodate the package installers. I guess that didn't work out!

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/73cc6f07-c6b9-433f-a6e1-bf605cac421cn%40googlegroups.com.

Tom Keffer

Mar 13, 2023, 4:56:42 PMMar 13
to Vince Skahan, weewx-development
Should be fixed now.

Vince Skahan

Mar 13, 2023, 4:59:21 PMMar 13
to weewx-development
Yup. a23 tests out ok.  You gotta love how fast Docker builds !!!

On Monday, March 13, 2023 at 1:56:42 PM UTC-7 Tom Keffer wrote:
Should be fixed now.
Reply all
Reply to author
0 new messages