Sorry Tom, I don’t understand what you want exactly... Le jeu. 29 févr. 2024, 17:45, Tom Keffer <[email protected]> a écrit :
> How about the transcript? What did you see when you ran weectl? > > On Thu, Feb 29, 2024 at 8:05 AM Remy Lavabre <[email protected]> > wrote: > >> Feb 29 17:03:12 remy-virtual-machine weectl[3059]: INFO weectllib: >> Initializing weectl version 5.0.2 >> Feb 29 17:03:12 remy-virtual-machine weectl[3059]: INFO weectllib: >> Command line: /home/remy/weewx-venv/bin/weectl extension install AWEKAS.zip >> Feb 29 17:03:12 remy-virtual-machine weectl[3059]: ERROR weeutil.startup: >> Cannot load user extensions: No module named 'user' >> >> Le jeudi 29 février 2024 à 16:59:12 UTC+1, Tom Keffer a écrit : >> >>> It should be trying to install in the WEEWX_ROOT directory, which is >>> generally the directory that weewx.conf is in. To diagnose, we need to see >>> more of the log. It will tell you what WEEWX_ROOT is. >>> >>> Also, it would be useful to see the full transcript when you ran weectl >>> extension install, not just the error. >>> >>> -tk >>> >>> On Thu, Feb 29, 2024 at 7:53 AM Remy Lavabre <[email protected]> >>> wrote: >>> >>>> Ok thanks Tom, thanks Gary. >>>> 1/ Sorry for all these inconveniences, especially since the name in >>>> capital letters was a big stupidity on my part... But by getting so angry, >>>> we end up no longer seeing the obvious... >>>> >>>> 2/ These few stupidities having been resolved, there is a new problem >>>> arriving... It will never end! :-( >>>> Obviously the installation is trying to be done in /etc/weewx/bin/user >>>> and not in the virtual environment...Or have I missed something again??? >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> *(weewx-venv) remy@remy-virtual-machine:~/weewx-data$ weectl extension >>>> install AWEKAS.zipUsing configuration file >>>> /home/remy/weewx-data/weewx.confInstall extension 'AWEKAS.zip' (y/n)? >>>> yExtracting from zip archive AWEKAS.zipTraceback (most recent call last): >>>> File "/home/remy/weewx-venv/bin/weectl", line 8, in <module> >>>> sys.exit(main()) File >>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectl.py", line 66, in >>>> main namespace.func(namespace) File >>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/__init__.py", >>>> line 121, in dispatch namespace.action_func(config_dict, namespace) >>>> File >>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/extension_cmd.py", >>>> line 116, in install_extension ext.install_extension(namespace.source, >>>> no_confirm=namespace.yes) File >>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py", >>>> line 138, in install_extension extension_name = >>>> self._install_from_file(extension_path, filetype) File >>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py", >>>> line 168, in _install_from_file extension_name = >>>> self.install_from_dir(extension_dir) File >>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py", >>>> line 185, in install_from_dir self._install_files(installer['files'], >>>> extension_dir) File >>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py", >>>> line 269, in _install_files shutil.copy(source_path, destination_path) >>>> File "/usr/lib/python3.8/shutil.py", line 418, in copy copyfile(src, >>>> dst, follow_symlinks=follow_symlinks) File "/usr/lib/python3.8/shutil.py", >>>> line 264, in copyfile with open(src, 'rb') as fsrc, open(dst, 'wb') as >>>> fdst:FileNotFoundError: [Errno 2] No such file or directory: >>>> '/etc/weewx/bin/user/awekaswx.py'(weewx-venv) >>>> remy@remy-virtual-machine:~/weewx-data$ * >>>> >>>> >>>> *Thank you once again! :-(* >>>> >>>> Le jeudi 29 février 2024 à 16:40:17 UTC+1, Tom Keffer a écrit : >>>> >>>>> On Thu, Feb 29, 2024 at 12:01 AM Remy Lavabre <[email protected]> >>>>> wrote: >>>>> >>>>>> Hello Tom, >>>>>> in your doc ( >>>>>> https://github.com/weewx/weewx/wiki/Weewx-Driver-Development-Tips), >>>>>> you say : >>>>>> >>>>>> >>>>>> >>>>>> *A basic skeleton for your file might look like the one below.from >>>>>> setup import ExtensionInstaller* >>>>>> >>>>> >>>>> Wow. That's the first time I've noticed that page! Fixed. >>>>> >>>>> In any case, it looks like that was not the problem. >>>>> >>>> -- >>>> >>> 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/c6aa3f12-0903-42a1-a764-70bcfa2f8been%40googlegroups.com >>>> <https://groups.google.com/d/msgid/weewx-user/c6aa3f12-0903-42a1-a764-70bcfa2f8been%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/8d965e23-fd96-43e8-8aba-0a86d39878den%40googlegroups.com >> <https://groups.google.com/d/msgid/weewx-user/8d965e23-fd96-43e8-8aba-0a86d39878den%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/CAPq0zEDo0ciLV3zXGCKuKqx932KeitZrXjTgEQR5pHaLZpMkog%40mail.gmail.com > <https://groups.google.com/d/msgid/weewx-user/CAPq0zEDo0ciLV3zXGCKuKqx932KeitZrXjTgEQR5pHaLZpMkog%40mail.gmail.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/CADhm9YdT_x7HNT%2BjYJBi4n_yWWr35jPAP4AuyAj8e6C1xKFKOA%40mail.gmail.com.
