(weewx-venv) user@pc:~$ sudo weectl extension install weewx-dwd.zip
[sudo] Passwort für user:
Error parsing config file: Unable to find file 'weewx.conf'. Tried directories ['/root/weewx-data', '/etc/weewx', '/home/weewx']
Traceback (most recent call last):
File "/usr/share/weewx/weeutil/startup.py", line 86, in start_app
config_path, config_dict = weecfg.read_config(config_option, [config_arg])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/weewx/weecfg/init.py", line 147, in read_config
config_path = find_file(option_path, args, locations=locations, file_name=file_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/weewx/weecfg/init.py", line 104, in find_file
raise OSError(f"Unable to find file '{file_name}'. Tried directories {locations}")
OSError: Unable to find file 'weewx.conf'. Tried directories ['/root/weewx-data', '/etc/weewx', '/home/weewx']
Agree. Your install.py should 'not' be run under sudo, you also need to modify it to be able to copy and symlink into /usr/local/bin (which requires sudo).
Why aren't the /usr/local/bin items simply installed and running out of the bin/user directory ????
--
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/c7b9e991-67fd-4c24-861e-7b3ca8c766c1n%40googlegroups.com.
I read a little bit through the pip installation guide. There all calls of weectl are preceded by "source ~/weewx-venv/bin/activate". Could it be, that for installing extensions this is necessary, too?
--
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/c7eba711-9f44-41b1-a0b5-8d263099828bn%40googlegroups.com.
--
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/7cc7ba3b-2bc7-48c4-b3bb-3f6373a4a245n%40googlegroups.com.
bin/user?
--
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/43def605-b216-4969-9aaf-eb63507536e8n%40googlegroups.com.
Question: do you expect the same script to be used for installations that have done a package install, as well as a pip install?
--
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/93e82688-7653-41d9-8553-3f994f6668a2n%40googlegroups.com.