(Remy sent me a copy of awekas.zip)

It worked for me. Could you try it one more time, this time asking for a
more verbose output? It will give us clues where it is trying to copy files
to and from.

*weectl extension install awekas.zip --verbosity=3*



On Thu, Feb 29, 2024 at 2:15 PM Tom Keffer <[email protected]> wrote:

> Yes, I do want it. I am unable to reproduce the problem. It's possible the
> problem is with how the extension has been packaged.
>
> On Thu, Feb 29, 2024 at 1:43 PM Remy LAVABRE <[email protected]>
> wrote:
>
>> I do not think that the problem come from awekaswx.py.
>> The install try to put it in etc/weewx/bin/user/awekaswx.py which does
>> not exist as I am under virtuel python environnement !
>> The problem is independant of what is in awekaswx.py... no ?
>> You want it anyway ?
>>
>>
>>
>> Le jeu. 29 févr. 2024, 22:29, Tom Keffer <[email protected]> a écrit :
>>
>>> You sent it for the "Unrecognized type" error, not the "No such file"
>>> error.
>>>
>>> Could you send me the entire file AWEKAS.zip and I will try it on my end?
>>>
>>> -tk
>>>
>>> On Thu, Feb 29, 2024 at 1:19 PM Remy LAVABRE <[email protected]>
>>> wrote:
>>>
>>>> Sorry Tom but I’ve already send you the return of the terminal :
>>>>
>>>> (weewx-venv) remy@remy-virtual-machine:~/weewx-data$ extension weectl
>>>> installer AWEKAS.zip
>>>> Utilisation du fichier de configuration /home/remy/weewx-data/weewx.conf
>>>> Installer l'extension « AWEKAS.zip » (o/n) ? oui
>>>> Extraction de l'archive zip AWEKAS.zip
>>>> Traceback (dernier appel le plus récent) :
>>>> Fichier "/home/remy/weewx-venv/bin/weectl", ligne 8, dans <module>
>>>> sys.exit(main())
>>>> Fichier "/home/remy/weewx-venv/lib/python3.8/site-packages/weectl.py",
>>>> ligne 66, dans main
>>>> espace de noms.func (espace de noms)
>>>> Fichier
>>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/__init__.py",
>>>> ligne 121, dans dispatch
>>>> espace de noms.action_func(config_dict, espace de noms)
>>>> Fichier
>>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/extension_cmd.py",
>>>> ligne 116, dans install_extension
>>>> ext.install_extension (namespace.source, no_confirm=namespace.yes)
>>>> Fichier
>>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py",
>>>> ligne 138, dans install_extension
>>>> extension_name = self._install_from_file (extension_path, type de
>>>> fichier)
>>>> Fichier
>>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py",
>>>> ligne 168, dans _install_from_file
>>>> extension_name = self.install_from_dir(extension_dir)
>>>> Fichier
>>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py",
>>>> ligne 185, dans install_from_dir
>>>> self._install_files(installer['files'], extension_dir)
>>>> Fichier
>>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py",
>>>> ligne 269, dans _install_files
>>>> close.copy (chemin_source, chemin_destination)
>>>> Fichier "/usr/lib/python3.8/shutil.py", ligne 418, en copie
>>>> copyfile(src, dst, follow_symlinks=follow_symlinks)
>>>> Fichier "/usr/lib/python3.8/shutil.py", ligne 264, dans le copyfile
>>>> avec open(src, 'rb') comme fsrc, open(dst, 'wb') comme fdst :
>>>> FileNotFoundError : [Errno 2] Aucun fichier ou répertoire de ce type :
>>>> '/etc/weewx/bin/user/awekaswx.py'
>>>> (weewx-venv) remy@remy-virtual-machine:~/weewx-data$
>>>>
>>>> I have nothing else except syslog already sent...
>>>> If there there is another information you want, I do not know which one
>>>> and how to get it... 😞
>>>> ???
>>>>
>>>>
>>>>
>>>> Le jeu. 29 févr. 2024, 19:58, Tom Keffer <[email protected]> a écrit :
>>>>
>>>>> When you run "weectl extension install", what shows up on the
>>>>> terminal? It should tell you which configuration file it is using. That
>>>>> will tell us what it expects WEEWX_ROOT to be.
>>>>>
>>>>> On Thu, Feb 29, 2024 at 10:13 AM Remy LAVABRE <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> 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
>>>>>> <https://groups.google.com/d/msgid/weewx-user/CADhm9YdT_x7HNT%2BjYJBi4n_yWWr35jPAP4AuyAj8e6C1xKFKOA%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/CAPq0zEB97a%2BMUH4kqp%3DnJMk%3DBfarAS3SPC%2BXQwwt3KZSHb31kA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEB97a%2BMUH4kqp%3DnJMk%3DBfarAS3SPC%2BXQwwt3KZSHb31kA%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/CADhm9YdrFs%2BcezB%2BbMayd8V9S5xRSkTEvv4gUAETPULsD7p-OQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/weewx-user/CADhm9YdrFs%2BcezB%2BbMayd8V9S5xRSkTEvv4gUAETPULsD7p-OQ%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/CAPq0zEAM0N-RxhdiS%2BY6qMywQJ%3Di6a08GuYDOw-DvJG7PMNXhw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEAM0N-RxhdiS%2BY6qMywQJ%3Di6a08GuYDOw-DvJG7PMNXhw%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/CADhm9YejdxVQjE-UJknPn6KkZPALn%2B4ZMZZ3jzwRcxMF2MqC2w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/weewx-user/CADhm9YejdxVQjE-UJknPn6KkZPALn%2B4ZMZZ3jzwRcxMF2MqC2w%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/CAPq0zEA23xomU1vmZC3tRrciV6ji_a2QB-msNop6dQkWPwB8qA%40mail.gmail.com.

Reply via email to