It worked with the --config switch specified ? If so, let me know (email is fine) and I can try to dig deeper tomorrow....
On Friday, December 22, 2023 at 5:43:56 PM UTC-8 Tom Keffer wrote: > Hmm, "weectl report run" works perfectly on my system, using Python 3.11. > > It's not clear from your stack trace what raised the exception. Can you > dig deeper? > > -tk > > On Fri, Dec 22, 2023 at 5:30 PM Vince Skahan <vince...@gmail.com> wrote: > >> I hand-edited the diff into >> weewx-venv/lib/python3.11/site-packages/weecfg/extension.py which worked >> for installing the extensions, but I get a similar message trying to run >> reports manually.... >> >> You might try this on a current fully patched up version to see if it >> works with all the updates you made after release to pypi just in case... >> >> (weewx-venv) vagrant@deb12:~/weewx-data$ weectl report run >> --config=simulator.conf >> Using configuration file simulator.conf >> All enabled reports will be run. >> Generating as of last timestamp in the database. >> Traceback (most recent call last): >> File "/home/vagrant/weewx-venv/bin/weectl", line 8, in <module> >> sys.exit(main()) >> ^^^^^^ >> File "/home/vagrant/weewx-venv/lib/python3.11/site-packages/weectl.py", >> line 66, in main >> namespace.func(namespace) >> File >> "/home/vagrant/weewx-venv/lib/python3.11/site-packages/weectllib/__init__.py", >> >> line 96, in dispatch >> namespace.action_func(config_dict, namespace) >> File >> "/home/vagrant/weewx-venv/lib/python3.11/site-packages/weectllib/report_cmd.py", >> >> line 92, in run_reports >> weectllib.report_actions.run_reports(config_dict, >> File >> "/home/vagrant/weewx-venv/lib/python3.11/site-packages/weectllib/report_actions.py", >> >> line 84, in run_reports >> engine = weewx.engine.DummyEngine(config_dict) >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> File >> "/home/vagrant/weewx-venv/lib/python3.11/site-packages/weewx/engine.py", >> line 89, in __init__ >> self.loadServices(config_dict) >> File >> "/home/vagrant/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/vagrant/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 1142, in >> _find_and_load_unlocked >> >> >> On Friday, December 22, 2023 at 4:51:49 PM UTC-8 Tom Keffer wrote: >> >>> Thanks for spotting that, Vince! >>> >>> Fixed in commit 256cac5 >>> <https://github.com/weewx/weewx/commit/256cac54931bf03f11f1153917c1bfc43fcc34a1> >>> . >>> >>> On Fri, Dec 22, 2023 at 4:31 PM Vince Skahan <vince...@gmail.com> wrote: >>> >>>> Tom - your xaggs extension isn't installing. I see the identical issue >>>> with one of my custom extensions too. >>>> >>>> (weewx-venv) vagrant@deb12:~/adds$ weectl extension install >>>> --config=/home/vagrant/weewx-data/simulator.conf weewx-xaggs-master/ >>>> Using configuration file /home/vagrant/weewx-data/simulator.conf >>>> Request to install 'weewx-xaggs-master/'. >>>> Traceback (most recent call last): >>>> File "/home/vagrant/weewx-venv/bin/weectl", line 8, in <module> >>>> sys.exit(main()) >>>> ^^^^^^ >>>> File >>>> "/home/vagrant/weewx-venv/lib/python3.11/site-packages/weectl.py", line >>>> 66, >>>> in main >>>> namespace.func(namespace) >>>> File >>>> "/home/vagrant/weewx-venv/lib/python3.11/site-packages/weectllib/__init__.py", >>>> >>>> line 96, in dispatch >>>> namespace.action_func(config_dict, namespace) >>>> File >>>> "/home/vagrant/weewx-venv/lib/python3.11/site-packages/weectllib/extension_cmd.py", >>>> >>>> line 116, in install_extension >>>> ext.install_extension(namespace.source) >>>> File >>>> "/home/vagrant/weewx-venv/lib/python3.11/site-packages/weecfg/extension.py", >>>> >>>> line 125, in install_extension >>>> extension_name = self.install_from_dir(extension_path) >>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>>> File >>>> "/home/vagrant/weewx-venv/lib/python3.11/site-packages/weecfg/extension.py", >>>> >>>> line 201, in install_from_dir >>>> save_config |= self._inject_config(installer['config'], >>>> extension_name) >>>> ~~~~~~~~~^^^^^^^^^^ >>>> KeyError: 'config' >>>> >>>> (weewx-venv) vagrant@deb12:~/adds$ pip3 list >>>> Package Version >>>> ------------------ ---------- >>>> certifi 2023.11.17 >>>> charset-normalizer 3.3.2 >>>> configobj 5.0.8 >>>> CT3 3.3.3 >>>> ephem 4.1.5 >>>> idna 3.6 >>>> paho-mqtt 1.6.1 >>>> Pillow 10.1.0 >>>> pip 23.0.1 >>>> pyephem 9.99 >>>> PyMySQL 1.1.0 >>>> pyserial 3.5 >>>> pyusb 1.2.1 >>>> requests 2.31.0 >>>> setuptools 66.1.1 >>>> six 1.16.0 >>>> urllib3 2.1.0 >>>> weewx 5.0.0rc1 >>>> wheel 0.42.0 >>>> >>>> >>>> -- >>>> 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/73f123da-7608-46d5-add0-a2b9b870d1ffn%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/weewx-development/73f123da-7608-46d5-add0-a2b9b870d1ffn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> 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/756a05b3-d693-41f5-9d59-411364316872n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-development/756a05b3-d693-41f5-9d59-411364316872n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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-development+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/2db27585-8ccc-405d-a070-98cd0bb08055n%40googlegroups.com.