Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-03-01 Thread Tom Keffer
This is true: you do not need a value for WEEWX_ROOT. The default value is the directory where weewx.conf is found. In fact, weewx.conf installed by V5 do not contain a value. On Fri, Mar 1, 2024 at 7:21 AM Remy Lavabre wrote: > Yes Tom, as I told Matthew in my previous post, I installed V5 in

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-03-01 Thread Remy Lavabre
Yes Tom, as I told Matthew in my previous post, I installed V5 in a virtual environment then copied the weewx.conf file from my version 4.10.2 which works perfectly. I took the precaution of changing a few variables like SKIN_ROOT = skins, HTML_ROOT = public_html, version = 5.0.2 but not

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-03-01 Thread Tom Keffer
Thank you, Matthew. I had totally forgotten that older weewx.conf files set WEEWX_ROOT=/ Remy: as Matthew asked, do you know how your weewx.conf came to be in its state? Did you copy it from a previous debian install? On Fri, Mar 1, 2024 at 6:38 AM Remy Lavabre wrote: > SOLVED -->>

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-03-01 Thread Remy Lavabre
SOLVED -->> Thank-you MATTHEW ! (and Tom of course...) With *WEEWX_ROOT = ~/weewx-data/* Result -> Saving installer file to /home/remy/weewx-data/~/weewx-data/bin/user/installer/awekaswx Saved copy of configuration as /home/remy/weewx-data/weewx.conf.20240301153706 Finished installing

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-03-01 Thread Remy Lavabre
Hi Matthew, Thank you for your help ! *--->>> /etc/weewx does not exist* remy@remy-virtual-machine:/etc$ cd weewx bash: cd: weewx: Aucun fichier ou dossier de ce type >>> *# Root directory of the weewx data file hierarchy for this stationWEEWX_ROOT = /* *The weewx.conf file

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-03-01 Thread matthew wall
remy, does /etc/weewx exist? does /etc/weewx/bin/user exist? in the file ~/weewx-data/weewx.conf, what is WEEWX_ROOT? how did the file ~/weewx-data/weewx.conf get to its current state? m -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-03-01 Thread matthew wall
remy, the extension installer is using weewx.conf in ~/weewx-data, but it is trying to put the extension into /etc/weewx/bin/user what is the content of /etc/weewx on your system? tom, why would the extension plumbing try to install to /etc/weewx/bin/user when the weewx.conf is in

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-03-01 Thread Remy Lavabre
Hello Tom, I have also try with the Bresser6in1 driver of Bob Atchley -> https://github.com/BobAtchley/weewx-ws6in1 *Same problem *: Using configuration file /home/remy/weewx-data/weewx.conf Install extension '6in1.zip' (y/n)? y Extracting from zip archive 6in1.zip Request to install

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-03-01 Thread Remy Lavabre
(weewx-venv) remy@remy-virtual-machine:~/weewx-data$* weectl extension install AWEKAS.zip --verbosity=3* Using configuration file /home/remy/weewx-data/weewx.conf Install extension 'AWEKAS.zip' (y/n)? y Extracting from zip archive AWEKAS.zip Request to install extension found in directory

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-03-01 Thread Tom Keffer
(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

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Tom Keffer
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 wrote: > I do not think that the problem come from awekaswx.py. > The install try to put it in

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Remy LAVABRE
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,

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Tom Keffer
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 wrote: > Sorry Tom but I’ve already send you the return of the terminal : > > (weewx-venv)

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Remy Lavabre
Sorry.. US version : (weewx-venv) remy@remy-virtual-machine:~/weewx-data$ weectl extension install AWEKAS.zip Using configuration file /home/remy/weewx-data/weewx.conf Install extension 'AWEKAS.zip' (y/n)? y Extracting from zip archive AWEKAS.zip Traceback (most recent call last): File

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Remy LAVABRE
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

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Tom Keffer
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 wrote: > Sorry Tom, I don’t understand what you want exactly... > >

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Remy LAVABRE
Sorry Tom, I don’t understand what you want exactly... Le jeu. 29 févr. 2024, 17:45, Tom Keffer 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 > wrote: > >> Feb 29 17:03:12 remy-virtual-machine weectl[3059]: INFO

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Tom Keffer
How about the transcript? What did you see when you ran weectl? On Thu, Feb 29, 2024 at 8:05 AM Remy Lavabre 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:

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Remy Lavabre
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]:

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Tom Keffer
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

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Remy Lavabre
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...

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Tom Keffer
On Thu, Feb 29, 2024 at 12:01 AM Remy Lavabre 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

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread gjr80
Where is awekas.zip? is it in ~/weewx-data ? Previously you named your extension package AWEKAS.zip not awekas.zip, did you change names or are you still using AWEKAS.zip? If so you need weectl extension install AWEKAS.zip not weectl extension install awekas.zip. Gary On Thursday 29 February

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Remy Lavabre
Yesss ! Thank's Gary!!! We progress... :-))) BUT... :-((( Now with *from weecfg.extension import ExtensionInstaller or from setup import ExtensionInstaller the error* in install.py, the error is : (weewx-venv) remy@remy-virtual-machine:~/weewx-data$ weectl extension install awekas.zip Using

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread gjr80
On Thursday 29 February 2024 at 17:50:33 UTC+10 remy.l...@gmail.com wrote: *with* : unzip -l AWEKAS.zip *we have* : (weewx-venv) remy@remy-virtual-machine:~/weewx-data$ unzip -l AWEKAS.zip Archive: AWEKAS.zip Length DateTimeName - -- - 0

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-29 Thread Remy Lavabre
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...* Le jeudi 29 février 2024 à 08:50:33 UTC+1, Remy LAVABRE a écrit : > *with* : unzip

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-28 Thread Remy LAVABRE
*with* : unzip -l AWEKAS.zip *we have* : (weewx-venv) remy@remy-virtual-machine:~/weewx-data$ unzip -l AWEKAS.zip Archive: AWEKAS.zip Length DateTimeName - -- - 0 2024-02-29 08:42 AWEKAS/ 565 2024-02-29 08:42 AWEKAS/install.py

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-28 Thread Remy LAVABRE
*with :* *from weecfg.extension import ExtensionInstaller* def loader(): return awekaswxInstaller() class awekaswxInstaller(ExtensionInstaller): def __init__(self): super(awekaswxInstaller, self).__init__( version="1.3", name='awekaswx',

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-28 Thread gjr80
I thought we were trying to solve the OPs problem? The OPs problem has nothing to do with setuptools (or perhaps more correctly the python distutils package); setuptools/distutils is not used in the OPs installer and there is no error re distutils in the provided console output. If the absence

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-28 Thread vince
Dunno Gary but I had to install that for StackedWindRose to get v5 pip to install it successfully here. Details on the issue I opened on your github repo. On Wednesday, February 28, 2024 at 5:56:14 PM UTC-8 gjr80 wrote: > Not quite sure of the relevance of setuptools; if that was the problem

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-28 Thread gjr80
Not quite sure of the relevance of setuptools; if that was the problem here it would be VERY evident. Gary On Thursday 29 February 2024 at 11:26:15 UTC+10 vince wrote: I found an old extension of Gary’s the other day that needed setuptools to be able to install it…it has the same old syntax…

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-28 Thread gjr80
Not quite sure this is the problem, as far as I know the following gives backward compatibility with setup.ExtensionInstaller: # Very old extensions did: # from setup import ExtensionInstaller # Redirect references to 'setup' to me instead. sys.modules['setup'] = sys.modules[__name__] Plus I

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-28 Thread vince
I found an old extension of Gary’s the other day that needed setuptools to be able to install it…it has the same old syntax… On Wednesday, February 28, 2024 at 4:52:49 PM UTC-8 Tom Keffer wrote: > I haven't tried it, but I'm thinking the problem is that the awekas > extension uses > > *from

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-28 Thread Tom Keffer
I haven't tried it, but I'm thinking the problem is that the awekas extension uses *from setup import ExtensionInstaller* which has been deprecated for a long time and will no longer work with V5. It should be *from weecfg.extension import ExtensionInstaller* Try modifying the extension and

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-28 Thread gjr80
What does unzip -l AWEKAS.zip show? Does bin/user/awekaswx.py actually exist in the zip file? Gary On Wednesday 28 February 2024 at 17:54:49 UTC+10 remy.l...@gmail.com wrote: > Hello Tom, > First problem : when trying to install a driver in virtual environnement : > > (weewx-venv)

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-27 Thread Remy LAVABRE
Hello Tom, First problem : when trying to install a driver in virtual environnement : (weewx-venv) remy@remy-virtual-machine:~/weewx-data$ weectl extension install AWEKAS.zip Using configuration file /home/remy/weewx-data/weewx.conf Install extension 'AWEKAS.zip' (y/n)? y Extracting from zip

Re: [weewx-user] Problem with WeeWX5 "driver" directory

2024-02-25 Thread Tom Keffer
>From your description, you're installing it in the correct spot, however you're not giving us much information. Instead of just showing the single error line, it would be helpful to see the log from startup. The reason is that it will log the location of the user directory. Set debug=1, then

[weewx-user] Problem with WeeWX5 "driver" directory

2024-02-25 Thread Remy Lavabre
Hello, weewx is installed in virtual PIP mode -> ~/weewx-data/... and ~/weewx-venv/... I manually added the xxx.py driver for my weather station in the ~/weewx-data/bin/user directory. It is declared in weewx.conf as "driver = usr.xxx", as was done in version 4.x When launching weewxd, I get