Matthew has just announced a pip release of rc2, which probably fixes the user module path problem in weectl.
On Friday 29 December 2023 at 11:35:11 pm UTC+10 steepleian wrote: > I have an identical error when using weectl report run with v5rc1 > https://claydonsweather.org.uk > > On 29 Dec 2023, at 13:27, 'neutrino' via weewx-user < > [email protected]> wrote: > > > > Hello everyone, > I try to modify my existing database after upgrading to v5. > Get these errors: > > (weewx-venv) xxx@###:~/weewx-data$ weectl database add-column test > Using configuration file /home/jnz/weewx-data/weewx.conf > Traceback (most recent call last): > File "/home/xxx/weewx-venv/bin/weectl", line 8, in <module> > sys.exit(main()) > File "/home/xxx/weewx-venv/lib/python3.10/site-packages/weectl.py", line > 66, in main > namespace.func(namespace) > File > "/home/xxx/weewx-venv/lib/python3.10/site-packages/weectllib/__init__.py", > line 96, in dispatch > namespace.action_func(config_dict, namespace) > File > "/home/xxx/weewx-venv/lib/python3.10/site-packages/weectllib/database_cmd.py", > > line 342, in add_column > weectllib.database_actions.add_column(config_dict, > File > "/home/xxx/weewx-venv/lib/python3.10/site-packages/weectllib/database_actions.py", > > line 157, in add_column > manager_dict = weewx.manager.get_manager_dict_from_config(config_dict, > db_binding) > File > "/home/xxx/weewx-venv/lib/python3.10/site-packages/weewx/manager.py", line > 886, in get_manager_dict_from_config > manager_dict['schema'] = weeutil.weeutil.get_object(schema_name) > File > "/home/xxx/weewx-venv/lib/python3.10/site-packages/weeutil/weeutil.py", > line 1404, in get_object > module = importlib.import_module(module_name) > File "/usr/lib/python3.10/importlib/__init__.py", line 126, in > import_module > return _bootstrap._gcd_import(name[level:], package, level) > File "<frozen importlib._bootstrap>", line 1050, in _gcd_import > File "<frozen importlib._bootstrap>", line 1027, in _find_and_load > File "<frozen importlib._bootstrap>", line 992, in > _find_and_load_unlocked > File "<frozen importlib._bootstrap>", line 241, in > _call_with_frames_removed > File "<frozen importlib._bootstrap>", line 1050, in _gcd_import > File "<frozen importlib._bootstrap>", line 1027, in _find_and_load > File "<frozen importlib._bootstrap>", line 1004, in > _find_and_load_unlocked > *ModuleNotFoundError: No module named 'user'* > > Any ideas? > Thanks! > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/ae5b4963-63a5-46e8-bb16-e0d8b2099203n%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/ae5b4963-63a5-46e8-bb16-e0d8b2099203n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/bf5c9efa-e429-46fd-ae30-86a45c9738aan%40googlegroups.com.
