Today I started testing Version 5. I chose the Debian installer. I know,
you would prefer pip, but I do not want to maintain 2 parallel update paths.
There were no issues during installation. The simulator driver is working
well.
No I tried to install the MQTTSubscribe driver. First I installed the
package. No error occurred. The module was saved to /etc/weewx/bin/user,
and weewx.conf got updated.
Now I ran:
sudo weectl station reconfigure --driver=user.MQTTSubscribe
I was asked some questions, and finally got an error message:
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/station_cmd.py", line 222, in
reconfigure_station
weecfg.station_config.station_reconfigure(config_path=namespace.config,
File "/usr/share/weewx/weecfg/station_config.py", line 102, in
station_reconfigure
config_config(config_path, config_dict, dry_run=dry_run, *args,
**kwargs)
File "/usr/share/weewx/weecfg/station_config.py", line 134, in
config_config
config_driver(config_dict, driver=driver, no_prompt=no_prompt)
File "/usr/share/weewx/weecfg/station_config.py", line 350, in
config_driver
driver_editor, driver_name, driver_version =
weecfg.load_driver_editor(final_driver)
File "/usr/share/weewx/weecfg/__init__.py", line 423, in
load_driver_editor
driver_module = importlib.import_module(driver_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 1004, in
_find_and_load_unlocked
ModuleNotFoundError: No module named 'user.MQTTSubscribe'
But the file is there:
*user@weewx*:*~*$ ls /etc/weewx/bin/user/
*installer* MQTTSubscribe.py
*user@weewx*:*~*$
If I insert print(sys.path) into /usr/share/weewx/weecfg/__init__.py I get:
['/usr/share/weewx', '/usr/lib/python310.zip', '/usr/lib/python3.10',
'/usr/lib/python3.10/lib-dynload',
'/usr/local/lib/python3.10/dist-packages',
'/usr/lib/python3/dist-packages', '/etc/weewx/bin']
I have no idea where to look now. Could someone help?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-development/22621309-64be-4783-9753-c0a9d3710021n%40googlegroups.com.