Another problem upgrading from v. 5.1 to 5.2

124 views
Skip to first unread message

John Steggall

unread,
Oct 16, 2025, 4:39:27 PM (5 days ago) Oct 16
to weewx-user
A few days ago, I upgraded from weewx v. 5.1 to 5.2 via apt upgrade. Original system installed via apt. Things were running smoothly for several years prior to the upgrade.

I see from previous discussions on 14 October 2025 with Gérard P, that the schema
path has changed in v. 5.2. I'm guessing I need to change something with my weatherlink-live driver to accommodate that? Which file should I modify?

Maybe:  /etc/weewx/bin/user/weatherlink_live/db_schema.py  
which currently has the following line:

from schemas import wview_extended

And just to make sure, what would the exact modification be?  

Below, I've included the system info, startup log, and weectl debug output. Let me
know if anything else would help. I appreciate all the effort put into this software
and the help you all provide to keep it working!

=-=-=  System info =-=-=

Linux Mint 22.2 on a desktop system
Davis wireless Vantage Pro2
Davis WeatherLink Live

Currently installed extensions
Extension Name    Version   Description
Belchertown       1.3.1     A clean modern skin with real time streaming updates and interactive charts. Modeled after BelchertownWeather.com
airlink           1.4       Record air quality as provided by a Davis AirLink sensor.
weatherlink-live  1.1.5     WeeWX driver for Davis WeatherLink Live.

=-=-=  $ tail -f /var/log/syslog on startup (debug=1)  =-=-=

2025-10-16T09:32:12.693234-07:00 sputnick rtkit-daemon[1393]: Supervising 9 threads of 6 processes of 1 users.
2025-10-16T09:33:01.942921-07:00 sputnick systemd[1]: Started weewx.service - WeeWX.
2025-10-16T09:33:01.992192-07:00 sputnick weewxd[109453]: INFO __main__: Initializing weewxd version 5.2.0
2025-10-16T09:33:01.992302-07:00 sputnick weewxd[109453]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
2025-10-16T09:33:01.992334-07:00 sputnick weewxd[109453]: INFO __main__: Using Python: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]
2025-10-16T09:33:01.992361-07:00 sputnick weewxd[109453]: INFO __main__: Located at:   /usr/bin/python3
2025-10-16T09:33:01.994305-07:00 sputnick weewxd[109453]: INFO __main__: Platform:     Linux-6.8.0-85-generic-x86_64-with-glibc2.39
2025-10-16T09:33:01.994366-07:00 sputnick weewxd[109453]: INFO __main__: Locale:       'en_US.UTF-8'
2025-10-16T09:33:01.994398-07:00 sputnick weewxd[109453]: INFO __main__: Entry path:   /usr/share/weewx/weewxd.py
2025-10-16T09:33:01.994450-07:00 sputnick weewxd[109453]: INFO __main__: WEEWX_ROOT:   /etc/weewx
2025-10-16T09:33:01.994480-07:00 sputnick weewxd[109453]: INFO __main__: Config file:  /etc/weewx/weewx.conf
2025-10-16T09:33:01.994506-07:00 sputnick weewxd[109453]: INFO __main__: User module:  /etc/weewx/bin/user
2025-10-16T09:33:01.994540-07:00 sputnick weewxd[109453]: INFO __main__: Debug:        1
2025-10-16T09:33:01.994644-07:00 sputnick weewxd[109453]: INFO __main__: User:         weewx
2025-10-16T09:33:01.994737-07:00 sputnick weewxd[109453]: INFO __main__: Group:        weewx
2025-10-16T09:33:01.994769-07:00 sputnick weewxd[109453]: INFO __main__: Groups:       weewx
2025-10-16T09:33:01.994826-07:00 sputnick weewxd[109453]: DEBUG __main__: loop_on_init: False
2025-10-16T09:33:01.994887-07:00 sputnick weewxd[109453]: DEBUG __main__: Initializing engine
2025-10-16T09:33:01.994940-07:00 sputnick weewxd[109453]: INFO weewx.engine: Loading station type WeatherLinkLive (user.weatherlink_live)
2025-10-16T09:33:01.995556-07:00 sputnick weewxd[109453]: CRITICAL __main__: Caught unrecoverable exception:
2025-10-16T09:33:01.995575-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****  No module named 'schemas'
2025-10-16T09:33:01.996554-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****  Traceback (most recent call last):
2025-10-16T09:33:01.996584-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd.py", line 121, in main
2025-10-16T09:33:01.996611-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
2025-10-16T09:33:01.996637-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-16T09:33:01.996668-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 80, in __init__
2025-10-16T09:33:01.996695-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****      self.setupStation(config_dict)
2025-10-16T09:33:01.996720-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 104, in setupStation
2025-10-16T09:33:01.996748-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****      __import__(driver)
2025-10-16T09:33:01.996776-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****    File "/etc/weewx/bin/user/weatherlink_live/__init__.py", line 25, in <module>
2025-10-16T09:33:01.996802-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****      import user.weatherlink_live.db_schema
2025-10-16T09:33:01.996832-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****    File "/etc/weewx/bin/user/weatherlink_live/db_schema.py", line 23, in <module>
2025-10-16T09:33:01.996863-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****      from schemas import wview_extended
2025-10-16T09:33:01.996891-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****  ModuleNotFoundError: No module named 'schemas'
2025-10-16T09:33:01.996925-07:00 sputnick weewxd[109453]: CRITICAL __main__:     ****  Exiting.
2025-10-16T09:33:02.732847-07:00 sputnick weewxd[109453]: Traceback (most recent call last):
2025-10-16T09:33:02.732938-07:00 sputnick weewxd[109453]:   File "/usr/share/weewx/weewxd.py", line 226, in <module>
2025-10-16T09:33:02.732969-07:00 sputnick weewxd[109453]:     main()
2025-10-16T09:33:02.732986-07:00 sputnick weewxd[109453]:   File "/usr/share/weewx/weewxd.py", line 121, in main
2025-10-16T09:33:02.733006-07:00 sputnick weewxd[109453]:     engine = weewx.engine.StdEngine(config_dict)
2025-10-16T09:33:02.733025-07:00 sputnick weewxd[109453]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-16T09:33:02.733049-07:00 sputnick weewxd[109453]:   File "/usr/share/weewx/weewx/engine.py", line 80, in __init__
2025-10-16T09:33:02.733070-07:00 sputnick weewxd[109453]:     self.setupStation(config_dict)
2025-10-16T09:33:02.733088-07:00 sputnick weewxd[109453]:   File "/usr/share/weewx/weewx/engine.py", line 104, in setupStation
2025-10-16T09:33:02.733115-07:00 sputnick weewxd[109453]:     __import__(driver)
2025-10-16T09:33:02.733136-07:00 sputnick weewxd[109453]:   File "/etc/weewx/bin/user/weatherlink_live/__init__.py", line 25, in <module>
2025-10-16T09:33:02.733162-07:00 sputnick weewxd[109453]:     import user.weatherlink_live.db_schema
2025-10-16T09:33:02.733180-07:00 sputnick weewxd[109453]:   File "/etc/weewx/bin/user/weatherlink_live/db_schema.py", line 23, in <module>
2025-10-16T09:33:02.733207-07:00 sputnick weewxd[109453]:     from schemas import wview_extended
2025-10-16T09:33:02.733230-07:00 sputnick weewxd[109453]: ModuleNotFoundError: No module named 'schemas'
2025-10-16T09:33:02.762893-07:00 sputnick systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE
2025-10-16T09:33:02.762986-07:00 sputnick systemd[1]: weewx.service: Failed with result 'exit-code'.

=-=-= $ weectl debug  =-=-=

Using configuration file /etc/weewx/weewx.conf

System info
  Platform:       Linux-6.8.0-85-generic-x86_64-with-glibc2.39
  Python Version: 3.12.3

Load Information
   1 minute load average:  0.36    
   5 minute load average:  0.23    
  15 minute load average:  0.26    

General Weewx info
  Weewx version 5.2.0 detected.

Currently installed extensions
Extension Name    Version   Description
Belchertown       1.3.1     A clean modern skin with real time streaming updates and interactive charts. Modeled after BelchertownWeather.com
airlink           1.4       Record air quality as provided by a Davis AirLink sensor.
weatherlink-live  1.1.5     WeeWX driver for Davis WeatherLink Live.

Archive info
Traceback (most recent call last):
  File "/usr/share/weewx/weewx/manager.py", line 905, in get_manager_dict_from_config
    manager_dict['schema'] = weeutil.weeutil.get_object(schema_name)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/weewx/weeutil/weeutil.py", line 1404, in get_object
    module = importlib.import_module(module_name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/etc/weewx/bin/user/weatherlink_live/__init__.py", line 25, in <module>
    import user.weatherlink_live.db_schema
  File "/etc/weewx/bin/user/weatherlink_live/db_schema.py", line 23, in <module>
    from schemas import wview_extended
ModuleNotFoundError: No module named 'schemas'

During handling of the above exception, another exception occurred:

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/debug_cmd.py", line 54, in debug
    weectllib.debug_actions.debug(config_dict, output=namespace.output)
  File "/usr/share/weewx/weectllib/debug_actions.py", line 62, in debug
    generate_archive_info(config_dict, fd)
  File "/usr/share/weewx/weectllib/debug_actions.py", line 130, in generate_archive_info
    manager_info_dict = get_manager_info(config_dict)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/weewx/weectllib/debug_actions.py", line 244, in get_manager_info
    with weewx.manager.open_manager_with_config(config_dict, db_binding_wx) as dbmanager_wx:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/weewx/weewx/manager.py", line 939, in open_manager_with_config
    manager_dict = get_manager_dict_from_config(config_dict,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/weewx/weewx/manager.py", line 910, in get_manager_dict_from_config
    manager_dict['schema'] = weeutil.weeutil.get_object('weewx.' + schema_name)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/weewx/weeutil/weeutil.py", line 1404, in get_object
    module = importlib.import_module(module_name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'weewx.user'

vince

unread,
Oct 16, 2025, 5:30:07 PM (5 days ago) Oct 16
to weewx-user
I would try 'from weewx.schemas' on that line you mentioned...

gary....@gmail.com

unread,
Oct 17, 2025, 10:33:02 AM (5 days ago) Oct 17
to weewx-user
Or, install the new release of the driver.

John Steggall

unread,
Oct 17, 2025, 3:53:35 PM (4 days ago) Oct 17
to weewx-user
Thanks Vince & Gary. Yes, michael-slx updated the weewx-weatherlink-live driver to v. 1.1.6. Not sure what else they changed but (FYI) the line in question in the file /etc/weewx/bin/user/weatherlink_live/db_schema.py  now reads:

from weewx.schemas import wview_extended

I installed the new driver on two machines (both running Linux Mint 22.2 and weewx 5.2). But, weewx still will not start up.

On the laptop machine, cheetahgenerator & imagegenerator are generating images and reports but I'm getting the following repeated error in /var/log/syslog:

WARNING user.weatherlink_live.driver: No data since 1 iterations

On the desktop machine, I'm getting the following:

2025-10-17T11:01:15.055317-07:00 sputnick weewxd[51982]: INFO weewx.manager: Starting backfill of daily summaries
2025-10-17T11:01:15.055347-07:00 sputnick weewxd[51982]: INFO weewx.manager: Daily summaries up to date
2025-10-17T11:01:15.055374-07:00 sputnick weewxd[51982]: INFO weewx.engine: Starting main packet loop.
ERROR user.weatherlink_live.davis_http: HTTPConnectionPool(host='weatherlink_live', port=80): Max retries exceeded with url: /v1/current_conditions (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f00305fb650>: Failed to resolve 'weatherlink_live' ([Errno -2] Name or service not known)"))
2025-10-17T11:01:15.072030-07:00 sputnick weewxd[51982]: ERROR user.weatherlink_live.davis_http: HTTP conditions request failed. Retry #1 follows shortly
2025-10-17T11:01:22.646587-07:00 sputnick weewxd[51982]: ERROR user.weatherlink_live.scheduler: Error caught in scheduler tick. Not rescheduling
2025-10-17T11:01:22.646943-07:00 sputnick weewxd[51982]: INFO user.weatherlink_live.scheduler: All tasks cancelled
2025-10-17T11:01:22.646993-07:00 sputnick weewxd[51982]: INFO weewx.engine: Main loop exiting. Shutting engine down.

On both machines,  weectl debug does not produce any errors -- just standard output. Let me know if any other info would be useful. Thanks!


John Steggall

unread,
Oct 17, 2025, 4:45:34 PM (4 days ago) Oct 17
to weewx-user
Quick update -- I found a mistake in my weewx.conf files. I had a line in my /etc/hosts for the Weatherlink-Live hardware but was using the wrong name for it in the weewx.conf files. Not sure how the web interfaces for both machines were working prior to the weewx 5.2 upgrade! 

So, now both machines are producing the same error in the syslog :

2025-10-17T13:30:24.302099-07:00 sputnick weewxd[63389]: INFO weewx.manager: Added record 2025-10-17 13:30:00 PDT (1760733000) to daily summary in 'weewx.sdb'
2025-10-17T13:30:24.605176-07:00 sputnick weewxd[63389]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.27 seconds
2025-10-17T13:30:25.191655-07:00 sputnick weewxd[63389]: INFO weewx.imagegenerator: Generated 56 images for report SeasonsReport in 0.57 seconds
2025-10-17T13:30:25.193178-07:00 sputnick weewxd[63389]: INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
2025-10-17T13:30:29.312010-07:00 sputnick weewxd[63389]: WARNING user.weatherlink_live.driver: No data since 1 iterations
2025-10-17T13:30:34.276225-07:00 sputnick weewxd[63389]: INFO user.weatherlink_live.driver: Emitting poll packet
2025-10-17T13:30:39.277561-07:00 sputnick weewxd[63389]: WARNING user.weatherlink_live.driver: No data since 1 iterations
2025-10-17T13:30:44.277740-07:00 sputnick weewxd[63389]: WARNING user.weatherlink_live.driver: No data since 2 iterations

Maybe I should just scrub the whole installation and reinstall from scratch?


Reply all
Reply to author
Forward
0 new messages