Thanks, did it already, even within PyCharm debug, but could not find the source of the problem. I spent a hour to find what config entry caused the problem with my years old installation, but was not successful. I finally *got it solved by using a freshly created weewx.conf* (besides my orginal config), after all renaming/adding/dropping of columns I switched back. Many thanks for you help, and Happy New Year to everyone.
Tom Keffer schrieb am Samstag, 30. Dezember 2023 um 23:58:11 UTC+1: > Mr Neutrino: could you set debug=1, try again, then post the actual log? > It will show more information than just the stack trace. > > On Saturday, December 30, 2023 at 1:26:22 AM UTC-8 neutrino wrote: > >> Thanks for your information, unfortunately upgading to weewx-5.0.0rc2 >> did not solve this problem for me. >> If I can help debugging drop me a line >> Best regards >> Steeple Ian schrieb am Freitag, 29. Dezember 2023 um 23:16:27 UTC+1: >> >>> Apologies for the half-response. I meant to add that 5.0.0rc2 solves >>> this problem for me. >>> >>> On Friday, December 29, 2023 at 1:35:11 PM UTC 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/0c48a256-58fd-4010-a507-91c047b523d6n%40googlegroups.com.
