Problem switching from weewx 4.x -> 5.X

100 views
Skip to first unread message

Remy Lavabre

unread,
Apr 25, 2024, 11:30:35 AM4/25/24
to weewx-user
Good morning,

My configuration under weewx 4.10.2 works perfectly with a custom driver.

I'm "desperately" trying to upgrade to weewx 5 under virtual environment.

-> Configuration with the basic driver simulating the data works ok.
-> When I try with my driver, I get the following response:

(weewx-venv) ---@server:~/weewx-data $ weewxd
Traceback (most recent call last):
  File "/home/----/weewx-venv/bin/weewxd", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/----/weewx-venv/lib/python3.11/site-packages/weewxd.py", line 160, in main
    engine = weewx.engine.StdEngine(config_dict)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/----/weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line 89, in __init__
    self.loadServices(config_dict)
  File "/home/----/weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line 157, in loadServices
    obj = weeutil.weeutil.get_object(svc)(self, config_dict)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/----/weewx-venv/lib/python3.11/site-packages/weeutil/weeutil.py", line 1404, in get_object
    module = importlib.import_module(module_name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'bin'


What is the problem ??

Tom Keffer

unread,
Apr 25, 2024, 11:37:09 AM4/25/24
to weewx...@googlegroups.com
With a pip install, any user modules are normally located in ~/weewx-data/bin/user. 

You didn't post a copy of the log, but I suspect somewhere in your configuration file weewx.conf you have a reference to an extension as "bin.user.something" instead of "user.something". Take a look.

If you can't find it, use the tool weectl debug to post a copy of your configuration file. Be sure to also set debug=1, restart, then post a copy of the log. It will have important startup clues.


--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/909b9a5c-952a-4846-9910-458aaec91616n%40googlegroups.com.

Remy LAVABRE

unread,
Apr 25, 2024, 11:43:19 AM4/25/24
to weewx...@googlegroups.com
Yes solved !
Thank-you Tom, there was a bin.x forgotten in the [engine] [[service]] section of weewx.conf... :-((

Rémy LAVABRE



Reply all
Reply to author
Forward
0 new messages