5.0a21 and a22 station create bug

33 views
Skip to first unread message

Vince Skahan

unread,
Mar 13, 2023, 3:35:15 AM3/13/23
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>
    sys.exit(main())
  File "/home/weewx/.local/lib/python3.9/site-packages/weectl.py", line 45, in main
    namespace.func(namespace)
  File "/home/weewx/.local/lib/python3.9/site-packages/weectllib/parse_station.py", line 188, in create_station
    weecfg.station_config.station_create(config_path=namespace.config,
  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

unread,
Mar 13, 2023, 9:29:45 AM3/13/23
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

unread,
Mar 13, 2023, 4:56:42 PM3/13/23
to Vince Skahan, weewx-development
Should be fixed now.

Vince Skahan

unread,
Mar 13, 2023, 4:59:21 PM3/13/23
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
Forward
0 new messages