Re: [weewx-user] Broken installation after upgrade to v5.0.2

2024-02-29 Thread fLsh
Yeah I even had problems creating the venv environment with 3.9 and that 
worked in the past with other software on 3.7.
But I have a Debian Package installation and don't want to lose all my 
changes so I am hoping that I will get it to work with python 3.7 and new 
driver version.
Or is venv a must-have on weewx 5? And will install also work with pipx? I 
remember cloudy that I had problems with pip in the past and solved it by 
using pipx.

Tom Keffer schrieb am Donnerstag, 29. Februar 2024 um 21:24:31 UTC+1:

> Not sure what's going on there, but it may have something to do with 
> attempting to install as root. Try installing as an unprivileged user, say 
> "pi".
>
> $ *su - pi*
> $ *whoami*
> pi
> $ *cd*
> $ *python3.9 -m venv weewx-venv*
> $ *source weewx-venv/bin/activate*
> $ *python3.9 -m pip install weewx*
> $ *weectl station create*
> *...*
> $ *weectl extension install 
>  
> https://github.com/michael-slx/weewx-weatherlink-live/releases/download/v1.1.3/weewx-weatherlink-live-v1.1.3.tar.xz
>  
> *
> $ *weectl extension list*
> Using configuration file /home/pi/weewx-data/weewx.conf
> Extension NameVersion   Description
> weatherlink-live  1.1.3 WeeWX driver for Davis WeatherLink Live.
>
> -tk
>
>
>
>
>
>
> On Thu, Feb 29, 2024 at 11:44 AM fLsh  wrote:
>
>> Author of the driver suggested to use Python 3.9 which I installed and 
>> now I get a different error:
>> Feb 29 19:57:12 loxberry systemd[1]: Started WeeWX.
>> Feb 29 19:57:12 loxberry weewxd[30842]: Traceback (most recent call last):
>> Feb 29 19:57:12 loxberry weewxd[30842]: File 
>> "/usr/share/weewx/weewxd.py", line 18, in 
>> Feb 29 19:57:12 loxberry weewxd[30842]: import configobj
>> Feb 29 19:57:12 loxberry weewxd[30842]: ModuleNotFoundError: No module 
>> named 'configobj'
>> Feb 29 19:57:12 loxberry systemd[1]: weewx.service: Main process exited, 
>> code=exited, status=1/FAILURE
>> Feb 29 19:57:12 loxberry systemd[1]: weewx.service: Failed with result 
>> 'exit-code'.
>>
>> Installation of Python3.9 was by following this: 
>> https://itheo.tech/install-python-39-on-raspberry-pi
>> I don't know how to install configobj. I am having a debian installation 
>> (at least I think I have) and in the docs there are no dependencies listed.
>> In the git docs there is installation mentioned:
>> python3 -m pip install CT3 python3 -m pip install configobj python3 -m 
>> pip install Pillow
>>
>> failed: 
>> root@loxberry:~# python3 -m pip install configobj 
>> ERROR: Exception:
>> Traceback (most recent call last):
>> File 
>> "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 
>> 228, in _main
>> status = self.run(options, args)
>> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
>> line 182, in wrapper
>> return func(self, options, args)
>> File 
>> "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 
>> 272, in run
>> session = self.get_default_session(options)
>> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
>> line 80, in get_default_sess
>> ion
>> self._session = self.enter_context(self._build_session(options))
>> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
>> line 90, in _build_session
>> session = PipSession(
>> File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
>> line 249, in __init__
>> self.headers["User-Agent"] = user_agent()
>> File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
>> line 132, in user_agent
>> zip(["name", "version", "id"], distro.linux_distribution()),
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 125, 
>> in linux_distribution
>> return _distro.linux_distribution(full_distribution_name)
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 681, 
>> in linux_distribution
>> self.version(),
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 741, 
>> in version
>> self.lsb_release_attr('release'),
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 903, 
>> in lsb_release_attr
>> return self._lsb_release_info.get(attribute, '')
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 556, 
>> in __get__
>> ret = obj.__dict__[self._fname] = self._f(obj)
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 1014, 
>> in _lsb_release_info
>> stdout = subprocess.check_output(cmd, stderr=devnull)
>> File "/usr/lib/python3.9/subprocess.py", line 420, in check_output
>> return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
>> File "/usr/lib/python3.9/subprocess.py", line 524, in run
>> raise CalledProcessError(retcode, process.args,
>> subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned 
>> non-zero exit status 1.
>> Traceback (most recent call last): 
>> File 

Re: [weewx-user] Broken installation after upgrade to v5.0.2

2024-02-29 Thread fLsh
Hi vince,

no not really, it is an up to date Raspberry Pi which was running 4.10.2 
and Python 3.7 without issues.
Problems started with weewx 5. First I did the update to 5.0.1 and it 
worked as well. Then I saw that there is another update to 5.0.2 and also 
changed weatherlink_live driver to new version for changes in weewx 5 and 
then problems started.
I heard from drivers author that python 3.9 should work and compiled and 
installed. Maybe installation was corrupted that could possibly be.
Drivers author also said he will do another upgrade to solve the issues 
with python 3.7 today so I changed the python version back to that and 
awaiting the new release and hoping, it will work fine then.


vince schrieb am Donnerstag, 29. Februar 2024 um 21:23:03 UTC+1:

> That's very odd. Are you running a very unusual or very ancient os on your 
> pi ?
>
> I don't think I've ever seen lsb_release 'fail' but I recall some os 
> didn't have that command years ago
>
> What do the following commands return when you run them from the shell ?
>
>- lsb_release -a
>- cat /etc/os-release
>- cat /etc/debian_version
>- uname -a
>- cat /boot/issue.txt
>
>
> On Thursday, February 29, 2024 at 11:44:39 AM UTC-8 fLsh wrote:
>
>> Author of the driver suggested to use Python 3.9 which I installed and 
>> now I get a different error:
>> Feb 29 19:57:12 loxberry systemd[1]: Started WeeWX.
>> Feb 29 19:57:12 loxberry weewxd[30842]: Traceback (most recent call last):
>> Feb 29 19:57:12 loxberry weewxd[30842]: File 
>> "/usr/share/weewx/weewxd.py", line 18, in 
>> Feb 29 19:57:12 loxberry weewxd[30842]: import configobj
>> Feb 29 19:57:12 loxberry weewxd[30842]: ModuleNotFoundError: No module 
>> named 'configobj'
>> Feb 29 19:57:12 loxberry systemd[1]: weewx.service: Main process exited, 
>> code=exited, status=1/FAILURE
>> Feb 29 19:57:12 loxberry systemd[1]: weewx.service: Failed with result 
>> 'exit-code'.
>>
>> Installation of Python3.9 was by following this: 
>> https://itheo.tech/install-python-39-on-raspberry-pi
>> I don't know how to install configobj. I am having a debian installation 
>> (at least I think I have) and in the docs there are no dependencies listed.
>> In the git docs there is installation mentioned:
>> python3 -m pip install CT3 python3 -m pip install configobj python3 -m 
>> pip install Pillow
>>
>> failed: 
>> root@loxberry:~# python3 -m pip install configobj 
>> ERROR: Exception:
>> Traceback (most recent call last):
>> File 
>> "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 
>> 228, in _main
>> status = self.run(options, args)
>> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
>> line 182, in wrapper
>> return func(self, options, args)
>> File 
>> "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 
>> 272, in run
>> session = self.get_default_session(options)
>> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
>> line 80, in get_default_sess
>> ion
>> self._session = self.enter_context(self._build_session(options))
>> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
>> line 90, in _build_session
>> session = PipSession(
>> File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
>> line 249, in __init__
>> self.headers["User-Agent"] = user_agent()
>> File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
>> line 132, in user_agent
>> zip(["name", "version", "id"], distro.linux_distribution()),
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 125, 
>> in linux_distribution
>> return _distro.linux_distribution(full_distribution_name)
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 681, 
>> in linux_distribution
>> self.version(),
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 741, 
>> in version
>> self.lsb_release_attr('release'),
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 903, 
>> in lsb_release_attr
>> return self._lsb_release_info.get(attribute, '')
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 556, 
>> in __get__
>> ret = obj.__dict__[self._fname] = self._f(obj)
>> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 1014, 
>> in _lsb_release_info
>> stdout = subprocess.check_output(cmd, stderr=devnull)
>> File "/usr/lib/python3.9/subprocess.py", line 420, in check_output
>> return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
>> File "/usr/lib/python3.9/subprocess.py", line 524, in run
>> raise CalledProcessError(retcode, process.args,
>> subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned 
>> non-zero exit status 1.
>> Traceback (most recent call last): 
>> File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main 
>> return _run_code(code, main_globals, None, 
>> File "/usr/lib/python3.9/runpy.py", line 87, in _run_code 
>> 

[weewx-user] Trying to get rtl_433 to feed data to weewx

2024-02-29 Thread Charlie T
OK Noob progresswhen I start weewx with the command: *sudo systemctl 
start weewx *and then monitor with a *top* command I can see that weewx is 
running rtl_433.  But the .html file is not updating.  (When I run in 
simulator mode the .html file IS updating).

So it seems that *both *programs are running but something in one of the 
two programs (weewx and/or rtl_433) is not configured properly.

Any suggestions/tips/hints greatly appreciated.

Here's the output of the log file "messages" including my program 
termination:


Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: Initializing 
weewxd version 5.0.2
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: Command line: 
/usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: Using Python 
3.9.2 (default, Mar 12 2021, 04:06:34) #012[GCC 10.2.1 20210110]
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: Located at 
/usr/bin/python3
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: Platform 
Linux-6.1.21-v7+-armv7l-with-glibc2.31
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: Locale: 
'en_US.UTF-8'
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: Entry path: 
/usr/share/weewx/weewxd.py
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: WEEWX_ROOT: 
/etc/weewx
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: Configuration 
file: /etc/weewx/weewx.conf
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: User module: 
/etc/weewx/bin/user
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO __main__: Debug: 1
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO weewx.engine: Loading 
station type SDR (user.sdr)
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO user.sdr: driver version is 
0.87
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO user.sdr: model is SDR
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO user.sdr: sensor map is {}
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO user.sdr: deltas is 
{'rain': 'rain_total', 'strikes': 'strikes_total'}
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO user.sdr: startup process 
'rtl_433 -M utc -F json'
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO weewx.engine: StdConvert 
target unit is 0x1
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO weewx.wxservices: 
StdWXCalculate will use data binding wx_binding
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO weewx.engine: Archive will 
use data binding wx_binding
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO weewx.engine: Record 
generation will be attempted in 'hardware'
Feb 29 21:14:40 raspberrypi weewxd[16494]: INFO weewx.engine: Using archive 
interval of 300 seconds (specified in weewx configuration)
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.restx: 
StationRegistry: Registration not requested.
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.restx: Wunderground: 
Posting not enabled.
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.restx: PWSweather: 
Posting not enabled.
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.restx: CWOP: Posting 
not enabled.
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.restx: WOW: Posting 
not enabled.
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.restx: AWEKAS: 
Posting not enabled.
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.engine: 'pyephem' 
detected, extended almanac data is available
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO __main__: Starting up weewx 
version 5.0.2
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx.sdb'
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.manager: Starting 
backfill of daily summaries
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.manager: Daily 
summaries up to date
Feb 29 21:14:41 raspberrypi weewxd[16494]: INFO weewx.engine: Starting main 
packet loop.
Feb 29 21:16:37 raspberrypi weewxd[16494]: INFO __main__: Received signal 
TERM (15).
Feb 29 21:16:37 raspberrypi weewxd[16494]: INFO weewx.engine: Main loop 
exiting. Shutting engine down.
Feb 29 21:16:37 raspberrypi weewxd[16494]: INFO user.sdr: shutdown process 
rtl_433 -M utc -F json
Feb 29 21:16:37 raspberrypi weewxd[16494]: INFO user.sdr: shutdown complete
Feb 29 21:16:37 raspberrypi weewxd[16494]: INFO __main__: Terminating weewx 
version 5.0.2


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1adc8d1e-6001-45bc-8563-b8b1cf34df14n%40googlegroups.com.


Re: [weewx-user] Re: Saratoga extension unhappy with Feb 29th

2024-02-29 Thread Al Barnes

Thanks Gary! Now working fine after updating to 0.1.9.

Al


gjr80 wrote:
Was fixed in release 0.1.9 
.


Gary

On Friday 1 March 2024 at 10:48:13 UTC+10 vanilla...@gmail.com wrote:

I just noticed that today my logs are filled with messages every cycle
complaining about the date:

ValueError: day is out of range for month

Full log attached

Al

--
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+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/60887087-3954-4072-bbfa-ef78a75eb4cfn%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8763f43f-551a-41bc-a768-144e2f76ecee%40gmail.com.


[weewx-user] Re: Saratoga extension unhappy with Feb 29th

2024-02-29 Thread gjr80
Was fixed in release 0.1.9 
.

Gary

On Friday 1 March 2024 at 10:48:13 UTC+10 vanilla...@gmail.com wrote:

> I just noticed that today my logs are filled with messages every cycle 
> complaining about the date:
>
> ValueError: day is out of range for month
>
> Full log attached
>
> Al

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/60887087-3954-4072-bbfa-ef78a75eb4cfn%40googlegroups.com.


[weewx-user] Saratoga extension unhappy with Feb 29th

2024-02-29 Thread Al Barnes
I just noticed that today my logs are filled with messages every cycle 
complaining about the date:


 ValueError: day is out of range for month

Full log attached

Al

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2d017b19-7009-4151-a87e-b91515d990eb%40gmail.com.
Feb 29 16:18:55 p5-1 systemd[1]: Started weewx.service - WeeWX weather system.
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: Initializing weewxd version 
5.0.2
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: Command line: 
/home/al/venv-weewx/lib/python3.11/site-packages/weewxd.py 
/home/al/weewx-data/weewx.conf
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: Using Python 3.11.2 (main, 
Mar 13 2023, 12:18:29) [GCC 12.2.0]
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: Located at 
/home/al/venv-weewx/bin/python3
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: Platform 
Linux-6.1.0-rpi8-rpi-2712-aarch64-with-glibc2.36
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: Locale: 'en_US.UTF-8'
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: Entry path: 
/home/al/venv-weewx/lib/python3.11/site-packages/weewxd.py
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: WEEWX_ROOT: 
/home/al/weewx-data
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: Configuration file: 
/home/al/weewx-data/weewx.conf
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: User module: 
/home/al/weewx-data/bin/user
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: Debug: 0
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.engine: Loading station type 
Vantage (weewx.drivers.vantage)
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.engine: StdConvert target unit is 
0x1
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.wxservices: StdWXCalculate will 
use data binding wx_binding
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.ws: WsWXCalculate version 0.1.8
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.ws: WsWXCalculate sunshine 
threshold: 120
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.ws: pyephem was detected
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.engine: Archive will use data 
binding wx_binding
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.engine: Record generation will be 
attempted in 'hardware'
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.engine: Using archive interval of 
300 seconds (specified by hardware)
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.ws: WsArchive version 0.1.8
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.ws: Using binding 'ws_binding' to 
database 'weewxwd.sdb'
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.ws: Starting backfill of daily 
summaries
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.manager: Starting backfill of 
daily summaries
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.manager: Daily summaries up to 
date
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.ws: Daily summaries up to date.
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.restx: StationRegistry: Station 
will be registered.
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.restx: Wunderground-PWS: Data for 
station KWASEATT52 will be posted
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.restx: PWSWeather: Data for 
station CW6259 will be posted
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.restx: CWOP: Data for station 
CW6259 will be posted
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.restx: WOW: Data for station 
ff36fec3-c199-e911-80e7-0003ff59889d will be posted
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.restx: AWEKAS: Data will be 
uploaded for user *
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.mqtt: service version is 0.24
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.mqtt: binding to archive, loop
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.mqtt: data_binding is wx_binding
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.mqtt: topic is weather
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.mqtt: desired unit system is US
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.mqtt: data will be uploaded to 
mqtt://*:xxx@192.81.132.82:1883
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO weewx.engine: 'pyephem' detected, 
extended almanac data is available
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.rtcr: RealtimeClientraw version 
0.3.7
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.rtcr: RealtimeClientraw will 
generate /home/al/weewx-data/public_html/clientraw.txt
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.rtcr: min_interval is 10 seconds
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO user.rtcr: clientraw.txt will be posted 
to https://radiex.com/wx/saratoga/post_clientraw.php by HTTP POST
Feb 29 16:18:56 p5-1 weewxd[5537]: INFO __main__: Starting up weewx version 
5.0.2
Feb 29 16:18:57 p5-1 weewxd[5537]: INFO weewx.engine: Clock error is 1.76 
seconds (positive is fast)
Feb 29 16:18:57 p5-1 weewxd[5537]: INFO weewx.engine: Using 

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 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  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 
>> 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 
>>> 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  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 
 wrote:

> 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 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 
 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...
>

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, Tom Keffer  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 
> 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 
>> 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  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 
>>> wrote:
>>>
 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 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 
>>> 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 

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) 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 
> 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  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 
>> wrote:
>>
>>> 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 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 
>> 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)?
>>> 

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 "/home/remy/weewx-venv/bin/weectl", line 8, in 
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$

Le jeudi 29 février 2024 à 22:19:57 UTC+1, Remy LAVABRE a écrit :

> 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 
> 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  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  
>> wrote:
>>
>>> 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 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
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 
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  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 
> wrote:
>
>> 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 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 
> 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 
>> sys.exit(main())  File
>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectl.py", line 66, 
>> in
>> mainnamespace.func(namespace)  File
>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/__init__.py",
>> line 121, in dispatch

Re: [weewx-user] Broken installation after upgrade to v5.0.2

2024-02-29 Thread Tom Keffer
Not sure what's going on there, but it may have something to do with
attempting to install as root. Try installing as an unprivileged user, say
"pi".

$ *su - pi*
$ *whoami*
pi
$ *cd*
$ *python3.9 -m venv weewx-venv*
$ *source weewx-venv/bin/activate*
$ *python3.9 -m pip install weewx*
$ *weectl station create*
*...*
$ *weectl extension install
 
https://github.com/michael-slx/weewx-weatherlink-live/releases/download/v1.1.3/weewx-weatherlink-live-v1.1.3.tar.xz
*
$ *weectl extension list*
Using configuration file /home/pi/weewx-data/weewx.conf
Extension NameVersion   Description
weatherlink-live  1.1.3 WeeWX driver for Davis WeatherLink Live.

-tk






On Thu, Feb 29, 2024 at 11:44 AM fLsh  wrote:

> Author of the driver suggested to use Python 3.9 which I installed and now
> I get a different error:
> Feb 29 19:57:12 loxberry systemd[1]: Started WeeWX.
> Feb 29 19:57:12 loxberry weewxd[30842]: Traceback (most recent call last):
> Feb 29 19:57:12 loxberry weewxd[30842]: File "/usr/share/weewx/weewxd.py",
> line 18, in 
> Feb 29 19:57:12 loxberry weewxd[30842]: import configobj
> Feb 29 19:57:12 loxberry weewxd[30842]: ModuleNotFoundError: No module
> named 'configobj'
> Feb 29 19:57:12 loxberry systemd[1]: weewx.service: Main process exited,
> code=exited, status=1/FAILURE
> Feb 29 19:57:12 loxberry systemd[1]: weewx.service: Failed with result
> 'exit-code'.
>
> Installation of Python3.9 was by following this:
> https://itheo.tech/install-python-39-on-raspberry-pi
> I don't know how to install configobj. I am having a debian installation
> (at least I think I have) and in the docs there are no dependencies listed.
> In the git docs there is installation mentioned:
> python3 -m pip install CT3 python3 -m pip install configobj python3 -m pip
> install Pillow
>
> failed:
> root@loxberry:~# python3 -m pip install configobj
> ERROR: Exception:
> Traceback (most recent call last):
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py",
> line 228, in _main
> status = self.run(options, args)
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py",
> line 182, in wrapper
> return func(self, options, args)
> File "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py",
> line 272, in run
> session = self.get_default_session(options)
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py",
> line 80, in get_default_sess
> ion
> self._session = self.enter_context(self._build_session(options))
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py",
> line 90, in _build_session
> session = PipSession(
> File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py",
> line 249, in __init__
> self.headers["User-Agent"] = user_agent()
> File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py",
> line 132, in user_agent
> zip(["name", "version", "id"], distro.linux_distribution()),
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 125,
> in linux_distribution
> return _distro.linux_distribution(full_distribution_name)
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 681,
> in linux_distribution
> self.version(),
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 741,
> in version
> self.lsb_release_attr('release'),
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 903,
> in lsb_release_attr
> return self._lsb_release_info.get(attribute, '')
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 556,
> in __get__
> ret = obj.__dict__[self._fname] = self._f(obj)
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 1014,
> in _lsb_release_info
> stdout = subprocess.check_output(cmd, stderr=devnull)
> File "/usr/lib/python3.9/subprocess.py", line 420, in check_output
> return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
> File "/usr/lib/python3.9/subprocess.py", line 524, in run
> raise CalledProcessError(retcode, process.args,
> subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned
> non-zero exit status 1.
> Traceback (most recent call last):
> File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
> return _run_code(code, main_globals, None,
> File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
> exec(code, run_globals)
> File "/usr/lib/python3.9/site-packages/pip/__main__.py", line 26, in
> 
> sys.exit(_main())
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/main.py", line
> 75, in main
> return command.main(cmd_args)
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py",
> line 121, in main
> return self._main(args)
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py",
> line 265, in _main
> self.handle_pip_version_check(options)
> File 

Re: [weewx-user] Broken installation after upgrade to v5.0.2

2024-02-29 Thread vince
That's very odd. Are you running a very unusual or very ancient os on your 
pi ?

I don't think I've ever seen lsb_release 'fail' but I recall some os didn't 
have that command years ago

What do the following commands return when you run them from the shell ?

   - lsb_release -a
   - cat /etc/os-release
   - cat /etc/debian_version
   - uname -a
   - cat /boot/issue.txt


On Thursday, February 29, 2024 at 11:44:39 AM UTC-8 fLsh wrote:

> Author of the driver suggested to use Python 3.9 which I installed and now 
> I get a different error:
> Feb 29 19:57:12 loxberry systemd[1]: Started WeeWX.
> Feb 29 19:57:12 loxberry weewxd[30842]: Traceback (most recent call last):
> Feb 29 19:57:12 loxberry weewxd[30842]: File "/usr/share/weewx/weewxd.py", 
> line 18, in 
> Feb 29 19:57:12 loxberry weewxd[30842]: import configobj
> Feb 29 19:57:12 loxberry weewxd[30842]: ModuleNotFoundError: No module 
> named 'configobj'
> Feb 29 19:57:12 loxberry systemd[1]: weewx.service: Main process exited, 
> code=exited, status=1/FAILURE
> Feb 29 19:57:12 loxberry systemd[1]: weewx.service: Failed with result 
> 'exit-code'.
>
> Installation of Python3.9 was by following this: 
> https://itheo.tech/install-python-39-on-raspberry-pi
> I don't know how to install configobj. I am having a debian installation 
> (at least I think I have) and in the docs there are no dependencies listed.
> In the git docs there is installation mentioned:
> python3 -m pip install CT3 python3 -m pip install configobj python3 -m pip 
> install Pillow
>
> failed: 
> root@loxberry:~# python3 -m pip install configobj 
> ERROR: Exception:
> Traceback (most recent call last):
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", 
> line 228, in _main
> status = self.run(options, args)
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
> line 182, in wrapper
> return func(self, options, args)
> File "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", 
> line 272, in run
> session = self.get_default_session(options)
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
> line 80, in get_default_sess
> ion
> self._session = self.enter_context(self._build_session(options))
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
> line 90, in _build_session
> session = PipSession(
> File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
> line 249, in __init__
> self.headers["User-Agent"] = user_agent()
> File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
> line 132, in user_agent
> zip(["name", "version", "id"], distro.linux_distribution()),
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 125, 
> in linux_distribution
> return _distro.linux_distribution(full_distribution_name)
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 681, 
> in linux_distribution
> self.version(),
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 741, 
> in version
> self.lsb_release_attr('release'),
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 903, 
> in lsb_release_attr
> return self._lsb_release_info.get(attribute, '')
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 556, 
> in __get__
> ret = obj.__dict__[self._fname] = self._f(obj)
> File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 1014, 
> in _lsb_release_info
> stdout = subprocess.check_output(cmd, stderr=devnull)
> File "/usr/lib/python3.9/subprocess.py", line 420, in check_output
> return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
> File "/usr/lib/python3.9/subprocess.py", line 524, in run
> raise CalledProcessError(retcode, process.args,
> subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned 
> non-zero exit status 1.
> Traceback (most recent call last): 
> File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main 
> return _run_code(code, main_globals, None, 
> File "/usr/lib/python3.9/runpy.py", line 87, in _run_code 
> exec(code, run_globals) 
> File "/usr/lib/python3.9/site-packages/pip/__main__.py", line 26, in 
>  
> sys.exit(_main()) 
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/main.py", line 
> 75, in main 
> return command.main(cmd_args) 
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", 
> line 121, in main 
> return self._main(args) 
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", 
> line 265, in _main 
> self.handle_pip_version_check(options) 
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
> line 149, in handle_pip_vers
> ion_check 
> session = self._build_session( 
> File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
> line 90, in _build_session 
> session = PipSession( 
> File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
> line 249, in 

Re: [weewx-user] leap year and span

2024-02-29 Thread Tom Keffer
I am not surprised that $year_delta=1 does not work on leap day. There is
no 29 February 2023.

This is issue #436 .


On Thu, Feb 29, 2024 at 9:45 AM František Slimařík 
wrote:

> Hi Tom,
>
> actually I found another for cycle which caused the issue. When I changed
> delta from "$year_delta=1" into "$day_delta=365" it works again.
> Interesting it worked without any issue till yesterday :)
>
> ##for $A in $span($year_delta=1).months
>  $A.dateTime.format("%OB %Y");$A.rain.sum.format(add_label=False)
> #end for
>
>
> čt 29. 2. 2024 v 15:49 odesílatel Tom Keffer  napsal:
>
>> I just tried this and it worked fine:
>>
>> 28. February 2023;33.4
>> 1. March 2023;36.1
>> 2. March 2023;38.0
>> 3. March 2023;37.1
>> ...
>> 26. February 2024;37.3
>> 27. February 2024;38.5
>> 28. February 2024;41.3
>>
>>
>> On Wed, Feb 28, 2024 at 8:57 PM František Slimařík 
>> wrote:
>>
>>> Yes, right
>>>
>>> #for $i in $span($day_delta=365).days
>>> #set fDate = $i.dateTime.format("%-d. %B %Y")
>>> $fDate;$i.outTemp.avg.format(add_label=False)
>>> #end for
>>>
>>> čt 29. 2. 2024 v 1:49 odesílatel Tom Keffer  napsal:
>>>
 I don't know. How are you using the $span() tags? In a loop, I assume?

 On Wed, Feb 28, 2024 at 3:25 PM František Slimařík 
 wrote:

> Hello,
>
> is it possible that leap year causes issue in span tag? I am using
> these:
>
> $span($day_delta=365).days
> $span($year_delta=1).months
>
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator: Evaluation of template
> /etc/weewx/skins/neowx/year.html.tmpl failed with exception ' 'ValueError'>'
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator:  Ignoring template
> /etc/weewx/skins/neowx/year.html.tmpl
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator:  Reason: day is out of range for month
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator:   Traceback (most recent call last):
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator: File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator:   unicode_string =
> compiled_template.respond()
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator: File
> "_etc_weewx_skins_neowx_year_html_tmpl.py", line 1380, in respond
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator: File "/usr/share/weewx/weewx/tags.py", 
> line
> 132, in span
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator:   year_delta=year_delta, 
> boundary=boundary),
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator: File 
> "/usr/share/weewx/weeutil/weeutil.py",
> line 402, in archiveSpanSpan
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator:   start_dt = time_dt.replace(year=year,
> month=month)
> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
> weewx.cheetahgenerator:   ValueError: day is out of range for month
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/6ca52acb-9235-4154-9e01-ba5e23a9750dn%40googlegroups.com
> 
> .
>
 --
 You received this message because you are subscribed to a topic in the
 Google Groups "weewx-user" group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/weewx-user/7c8sNahwkiw/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 weewx-user+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/weewx-user/CAPq0zECBN016YJK8gbzfY_gM4rjGFxmFUDmjpHWEdGcfTH2Tog%40mail.gmail.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+unsubscr...@googlegroups.com.
>>> 

Re: [weewx-user] Broken installation after upgrade to v5.0.2

2024-02-29 Thread fLsh
 Author of the driver suggested to use Python 3.9 which I installed and now 
I get a different error:
Feb 29 19:57:12 loxberry systemd[1]: Started WeeWX.
Feb 29 19:57:12 loxberry weewxd[30842]: Traceback (most recent call last):
Feb 29 19:57:12 loxberry weewxd[30842]: File "/usr/share/weewx/weewxd.py", 
line 18, in 
Feb 29 19:57:12 loxberry weewxd[30842]: import configobj
Feb 29 19:57:12 loxberry weewxd[30842]: ModuleNotFoundError: No module 
named 'configobj'
Feb 29 19:57:12 loxberry systemd[1]: weewx.service: Main process exited, 
code=exited, status=1/FAILURE
Feb 29 19:57:12 loxberry systemd[1]: weewx.service: Failed with result 
'exit-code'.

Installation of Python3.9 was by following this: 
https://itheo.tech/install-python-39-on-raspberry-pi
I don't know how to install configobj. I am having a debian installation 
(at least I think I have) and in the docs there are no dependencies listed.
In the git docs there is installation mentioned:
python3 -m pip install CT3 python3 -m pip install configobj python3 -m pip 
install Pillow

failed: 
root@loxberry:~# python3 -m pip install configobj 
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", 
line 228, in _main
status = self.run(options, args)
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
line 182, in wrapper
return func(self, options, args)
File "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", 
line 272, in run
session = self.get_default_session(options)
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
line 80, in get_default_sess
ion
self._session = self.enter_context(self._build_session(options))
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
line 90, in _build_session
session = PipSession(
File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
line 249, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
line 132, in user_agent
zip(["name", "version", "id"], distro.linux_distribution()),
File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 125, in 
linux_distribution
return _distro.linux_distribution(full_distribution_name)
File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 681, in 
linux_distribution
self.version(),
File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 741, in 
version
self.lsb_release_attr('release'),
File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 903, in 
lsb_release_attr
return self._lsb_release_info.get(attribute, '')
File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 556, in 
__get__
ret = obj.__dict__[self._fname] = self._f(obj)
File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 1014, 
in _lsb_release_info
stdout = subprocess.check_output(cmd, stderr=devnull)
File "/usr/lib/python3.9/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned 
non-zero exit status 1.
Traceback (most recent call last): 
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main 
return _run_code(code, main_globals, None, 
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code 
exec(code, run_globals) 
File "/usr/lib/python3.9/site-packages/pip/__main__.py", line 26, in 
 
sys.exit(_main()) 
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/main.py", line 75, 
in main 
return command.main(cmd_args) 
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", 
line 121, in main 
return self._main(args) 
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", 
line 265, in _main 
self.handle_pip_version_check(options) 
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
line 149, in handle_pip_vers
ion_check 
session = self._build_session( 
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", 
line 90, in _build_session 
session = PipSession( 
File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
line 249, in __init__ 
self.headers["User-Agent"] = user_agent() 
File "/usr/lib/python3.9/site-packages/pip/_internal/network/session.py", 
line 132, in user_agent 
zip(["name", "version", "id"], distro.linux_distribution()), 
File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 125, in 
linux_distribution 
return _distro.linux_distribution(full_distribution_name) 
File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 681, in 
linux_distribution 
self.version(), 
File "/usr/lib/python3.9/site-packages/pip/_vendor/distro.py", line 741, in 
version 
self.lsb_release_attr('release'), 
File 

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...
>
> 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 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 
 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 
> sys.exit(main())  File
> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectl.py", line 66, in
> mainnamespace.func(namespace)  File
> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/__init__.py",
> line 121, in dispatchnamespace.action_func(config_dict, namespace)
> File
> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/extension_cmd.py",
> line 116, in install_extensionext.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_extensionextension_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_fileextension_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_dirself._install_files(installer['files'],
> extension_dir)  File
> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py",
> line 269, in _install_filesshutil.copy(source_path, destination_path)
> File "/usr/lib/python3.8/shutil.py", line 418, in copycopyfile(src,
> dst, follow_symlinks=follow_symlinks)  File 
> "/usr/lib/python3.8/shutil.py",
> line 264, in copyfilewith 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 
>> 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 weewx-user+...@googlegroups.com.
>
 To view this discussion on the web 

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 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 
>>> 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 
 sys.exit(main())  File
 "/home/remy/weewx-venv/lib/python3.8/site-packages/weectl.py", line 66, in
 mainnamespace.func(namespace)  File
 "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/__init__.py",
 line 121, in dispatchnamespace.action_func(config_dict, namespace)
 File
 "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/extension_cmd.py",
 line 116, in install_extensionext.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_extensionextension_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_fileextension_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_dirself._install_files(installer['files'],
 extension_dir)  File
 "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py",
 line 269, in _install_filesshutil.copy(source_path, destination_path)
 File "/usr/lib/python3.8/shutil.py", line 418, in copycopyfile(src,
 dst, follow_symlinks=follow_symlinks)  File "/usr/lib/python3.8/shutil.py",
 line 264, in copyfilewith 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 
> 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 weewx-user+...@googlegroups.com.

>>> To view this discussion on the web visit
 https://groups.google.com/d/msgid/weewx-user/c6aa3f12-0903-42a1-a764-70bcfa2f8been%40googlegroups.com
 
 .

>>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To 

Re: [weewx-user] leap year and span

2024-02-29 Thread František Slimařík
Hi Tom,

actually I found another for cycle which caused the issue. When I changed
delta from "$year_delta=1" into "$day_delta=365" it works again.
Interesting it worked without any issue till yesterday :)

##for $A in $span($year_delta=1).months
 $A.dateTime.format("%OB %Y");$A.rain.sum.format(add_label=False)
#end for


čt 29. 2. 2024 v 15:49 odesílatel Tom Keffer  napsal:

> I just tried this and it worked fine:
>
> 28. February 2023;33.4
> 1. March 2023;36.1
> 2. March 2023;38.0
> 3. March 2023;37.1
> ...
> 26. February 2024;37.3
> 27. February 2024;38.5
> 28. February 2024;41.3
>
>
> On Wed, Feb 28, 2024 at 8:57 PM František Slimařík 
> wrote:
>
>> Yes, right
>>
>> #for $i in $span($day_delta=365).days
>> #set fDate = $i.dateTime.format("%-d. %B %Y")
>> $fDate;$i.outTemp.avg.format(add_label=False)
>> #end for
>>
>> čt 29. 2. 2024 v 1:49 odesílatel Tom Keffer  napsal:
>>
>>> I don't know. How are you using the $span() tags? In a loop, I assume?
>>>
>>> On Wed, Feb 28, 2024 at 3:25 PM František Slimařík 
>>> wrote:
>>>
 Hello,

 is it possible that leap year causes issue in span tag? I am using
 these:

 $span($day_delta=365).days
 $span($year_delta=1).months

 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator: Evaluation of template
 /etc/weewx/skins/neowx/year.html.tmpl failed with exception '>>> 'ValueError'>'
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator:  Ignoring template
 /etc/weewx/skins/neowx/year.html.tmpl
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator:  Reason: day is out of range for month
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator:   Traceback (most recent call last):
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator: File
 "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator:   unicode_string =
 compiled_template.respond()
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator: File
 "_etc_weewx_skins_neowx_year_html_tmpl.py", line 1380, in respond
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator: File "/usr/share/weewx/weewx/tags.py", line
 132, in span
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator:   year_delta=year_delta, 
 boundary=boundary),
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator: File "/usr/share/weewx/weeutil/weeutil.py",
 line 402, in archiveSpanSpan
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator:   start_dt = time_dt.replace(year=year,
 month=month)
 Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
 weewx.cheetahgenerator:   ValueError: day is out of range for month

 --
 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+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/weewx-user/6ca52acb-9235-4154-9e01-ba5e23a9750dn%40googlegroups.com
 
 .

>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "weewx-user" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/weewx-user/7c8sNahwkiw/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> weewx-user+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/CAPq0zECBN016YJK8gbzfY_gM4rjGFxmFUDmjpHWEdGcfTH2Tog%40mail.gmail.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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/CAPXATBW0bD_xgqW9m0q0yQ2JzoFB3uJmJv77ARyzM_dF-4ajOQ%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because 

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: 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  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 
>>> sys.exit(main())  File
>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectl.py", line 66, in
>>> mainnamespace.func(namespace)  File
>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/__init__.py",
>>> line 121, in dispatchnamespace.action_func(config_dict, namespace)
>>> File
>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/extension_cmd.py",
>>> line 116, in install_extensionext.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_extensionextension_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_fileextension_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_dirself._install_files(installer['files'],
>>> extension_dir)  File
>>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py",
>>> line 269, in _install_filesshutil.copy(source_path, destination_path)
>>> File "/usr/lib/python3.8/shutil.py", line 418, in copycopyfile(src,
>>> dst, follow_symlinks=follow_symlinks)  File "/usr/lib/python3.8/shutil.py",
>>> line 264, in copyfilewith 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 
 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 weewx-user+...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/c6aa3f12-0903-42a1-a764-70bcfa2f8been%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> 

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]: 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  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 
>> sys.exit(main())  File 
>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectl.py", line 66, in 
>> mainnamespace.func(namespace)  File 
>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/__init__.py", 
>> line 121, in dispatchnamespace.action_func(config_dict, namespace)  
>> File 
>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/extension_cmd.py",
>>  
>> line 116, in install_extensionext.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_extensionextension_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_fileextension_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_dirself._install_files(installer['files'], 
>> extension_dir)  File 
>> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py", 
>> line 269, in _install_filesshutil.copy(source_path, destination_path)  
>> File "/usr/lib/python3.8/shutil.py", line 418, in copycopyfile(src, 
>> dst, follow_symlinks=follow_symlinks)  File "/usr/lib/python3.8/shutil.py", 
>> line 264, in copyfilewith 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  
>>> 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 weewx-user+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/c6aa3f12-0903-42a1-a764-70bcfa2f8been%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8d965e23-fd96-43e8-8aba-0a86d39878den%40googlegroups.com.


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 the error.

-tk

On Thu, Feb 29, 2024 at 7:53 AM Remy Lavabre  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 
> sys.exit(main())  File
> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectl.py", line 66, in
> mainnamespace.func(namespace)  File
> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/__init__.py",
> line 121, in dispatchnamespace.action_func(config_dict, namespace)
> File
> "/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/extension_cmd.py",
> line 116, in install_extensionext.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_extensionextension_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_fileextension_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_dirself._install_files(installer['files'],
> extension_dir)  File
> "/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py",
> line 269, in _install_filesshutil.copy(source_path, destination_path)
> File "/usr/lib/python3.8/shutil.py", line 418, in copycopyfile(src,
> dst, follow_symlinks=follow_symlinks)  File "/usr/lib/python3.8/shutil.py",
> line 264, in copyfilewith 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 
>> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/c6aa3f12-0903-42a1-a764-70bcfa2f8been%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEC_qe9O4DLN-6%3D3Q86cLtLvfvc2%2BM_c1ymiGKonECsKdw%40mail.gmail.com.


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... 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 
sys.exit(main())  File 
"/home/remy/weewx-venv/lib/python3.8/site-packages/weectl.py", line 66, in 
mainnamespace.func(namespace)  File 
"/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/__init__.py", 
line 121, in dispatchnamespace.action_func(config_dict, namespace)  
File 
"/home/remy/weewx-venv/lib/python3.8/site-packages/weectllib/extension_cmd.py", 
line 116, in install_extensionext.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_extensionextension_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_fileextension_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_dirself._install_files(installer['files'], 
extension_dir)  File 
"/home/remy/weewx-venv/lib/python3.8/site-packages/weecfg/extension.py", 
line 269, in _install_filesshutil.copy(source_path, destination_path)  
File "/usr/lib/python3.8/shutil.py", line 418, in copycopyfile(src, 
dst, follow_symlinks=follow_symlinks)  File "/usr/lib/python3.8/shutil.py", 
line 264, in copyfilewith 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  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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c6aa3f12-0903-42a1-a764-70bcfa2f8been%40googlegroups.com.


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 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEA3V8XA7hJ-PzV%2BsEdpGTC8JJNF9B2EUKeQFAOm%2BZrQsg%40mail.gmail.com.


Re: [weewx-user] Broken installation after upgrade to v5.0.2

2024-02-29 Thread Tom Keffer
I think the problem is in the typing suggestions used by the driver. They
can be tricky to get right. For example, in file mappers.py, line 137, reads

def map_table(self) -> Dict[str, Union[str, list[str]]]:

when it should probably be

def map_table(self) -> Dict[str, Union[str, List[str]]]:

Ask the author of the driver.

But, I'm not an expert on type hints. I find them more trouble than they
are worth.

-tk

On Wed, Feb 28, 2024 at 11:09 PM fLsh  wrote:

> ok funny, after a reboot, v.5.0.2 is getting loaded.
> Error is now:
> -- Logs begin at Thu 2024-02-29 00:06:39 CET, end at Thu 2024-02-29
> 08:06:40 CET. --
> Feb 29 00:06:53 loxberry systemd[1]: Started WeeWX.
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: Initializing weewxd
> version 5.0.2
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: Command line:
> /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: Using Python 3.7.3
> (default, Oct 11 2023, 09:51:27)
> [GCC 8.3.0]
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: Located at
> /usr/bin/python3
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: Platform
> Linux-4.19.118-v7l+-armv7l-with-debian-10.13
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: Locale: 'de_DE.UTF-8'
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: Entry path:
> /usr/share/weewx/weewxd.py
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: WEEWX_ROOT:
> /etc/weewx
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: Configuration file:
> /etc/weewx/weewx.conf
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: User module:
> /etc/weewx/bin/user
> Feb 29 00:06:56 loxberry weewxd[932]: INFO __main__: Debug: 0
> Feb 29 00:06:56 loxberry weewxd[932]: INFO weewx.engine: Loading station
> type WeatherLinkLive (user.weatherlink_live)
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__: Caught
> unrecoverable exception:
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  'type'
> object is not subscriptable
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  Traceback
> (most recent call last):
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  File
> "/usr/share/weewx/weewxd.py", line 160, in main
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  engine =
> weewx.engine.StdEngine(config_dict)
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  File
> "/usr/share/weewx/weewx/engine.py", line 77, in __init__
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__: 
> self.setupStation(config_dict)
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  File
> "/usr/share/weewx/weewx/engine.py", line 104, in setupStation
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__: 
> __import__(driver)
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  File
> "/etc/weewx/bin/user/weatherlink_live/__init__.py", line 27, in 
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  from
> user.weatherlink_live.configurator import WeatherlinkLiveConfigurator
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  File
> "/etc/weewx/bin/user/weatherlink_live/configurator.py", line 24, in 
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  from
> user.weatherlink_live import configuration
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  File
> "/etc/weewx/bin/user/weatherlink_live/configuration.py", line 24, in
> 
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  from
> user.weatherlink_live.mappers import TMapping, THMapping, WindMapping,
> RainMapping, SolarMapping, UvMapping, \
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  File
> "/etc/weewx/bin/user/weatherlink_live/mappers.py", line 48, in 
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  class
> AbstractMapping(object):
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  File
> "/etc/weewx/bin/user/weatherlink_live/mappers.py", line 137, in
> AbstractMapping
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  def
> map_table(self) -> Dict[str, Union[str, list[str]]]:
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  TypeError:
> 'type' object is not subscriptable
> Feb 29 00:06:57 loxberry weewxd[932]: CRITICAL __main__:  Exiting.
> Feb 29 00:06:57 loxberry weewxd[932]: Traceback (most recent call last):
> Feb 29 00:06:57 loxberry weewxd[932]: File "/usr/share/weewx/weewxd.py",
> line 265, in 
> Feb 29 00:06:57 loxberry weewxd[932]: main()
> Feb 29 00:06:57 loxberry weewxd[932]: File "/usr/share/weewx/weewxd.py",
> line 160, in main
> Feb 29 00:06:57 loxberry weewxd[932]: engine =
> weewx.engine.StdEngine(config_dict)
> Feb 29 00:06:57 loxberry weewxd[932]: File
> "/usr/share/weewx/weewx/engine.py", line 77, in __init__
> Feb 29 00:06:57 loxberry weewxd[932]: self.setupStation(config_dict)
> Feb 29 00:06:57 loxberry weewxd[932]: File
> 

Re: [weewx-user] leap year and span

2024-02-29 Thread Tom Keffer
I just tried this and it worked fine:

28. February 2023;33.4
1. March 2023;36.1
2. March 2023;38.0
3. March 2023;37.1
...
26. February 2024;37.3
27. February 2024;38.5
28. February 2024;41.3


On Wed, Feb 28, 2024 at 8:57 PM František Slimařík 
wrote:

> Yes, right
>
> #for $i in $span($day_delta=365).days
> #set fDate = $i.dateTime.format("%-d. %B %Y")
> $fDate;$i.outTemp.avg.format(add_label=False)
> #end for
>
> čt 29. 2. 2024 v 1:49 odesílatel Tom Keffer  napsal:
>
>> I don't know. How are you using the $span() tags? In a loop, I assume?
>>
>> On Wed, Feb 28, 2024 at 3:25 PM František Slimařík 
>> wrote:
>>
>>> Hello,
>>>
>>> is it possible that leap year causes issue in span tag? I am using these:
>>>
>>> $span($day_delta=365).days
>>> $span($year_delta=1).months
>>>
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator: Evaluation of template
>>> /etc/weewx/skins/neowx/year.html.tmpl failed with exception '>> 'ValueError'>'
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator:  Ignoring template
>>> /etc/weewx/skins/neowx/year.html.tmpl
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator:  Reason: day is out of range for month
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator:   Traceback (most recent call last):
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator: File
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator:   unicode_string =
>>> compiled_template.respond()
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator: File
>>> "_etc_weewx_skins_neowx_year_html_tmpl.py", line 1380, in respond
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator: File "/usr/share/weewx/weewx/tags.py", line
>>> 132, in span
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator:   year_delta=year_delta, boundary=boundary),
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator: File "/usr/share/weewx/weeutil/weeutil.py",
>>> line 402, in archiveSpanSpan
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator:   start_dt = time_dt.replace(year=year,
>>> month=month)
>>> Feb 29 00:10:43 rocky-weather-machine weewxd[405028]: ERROR
>>> weewx.cheetahgenerator:   ValueError: day is out of range for month
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/6ca52acb-9235-4154-9e01-ba5e23a9750dn%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/weewx-user/7c8sNahwkiw/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/CAPq0zECBN016YJK8gbzfY_gM4rjGFxmFUDmjpHWEdGcfTH2Tog%40mail.gmail.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPXATBW0bD_xgqW9m0q0yQ2JzoFB3uJmJv77ARyzM_dF-4ajOQ%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEABFqb9wgJyMprjwLga5%2BoiF3YvVO35VhvxoO7HT5NjjA%40mail.gmail.com.


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 2024 at 19:00:48 UTC+10 remy.l...@gmail.com wrote:

> 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 configuration file /home/remy/weewx-data/weewx.conf
> Install extension 'awekas.zip' (y/n)? y
>
> Traceback (most recent call last):
>   File "/home/remy/weewx-venv/bin/weectl", line 8, in 
> 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 143, in install_extension
> raise InstallError(f"Unrecognized type for {extension_path}")
> weecfg.extension.InstallError: Unrecognized type for awekas.zip
>
> Le jeudi 29 février 2024 à 09:35:50 UTC+1, gjr80 a écrit :
>
>> 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  2024-02-29 08:42   AWEKAS/
>>   565  2024-02-29 08:42   AWEKAS/install.py
>> 35149  2024-02-26 10:33   AWEKAS/LICENSE.txt
>> 56528  2024-02-26 10:33   AWEKAS*/awekaswx.py*
>> - ---
>> 92242 4 files
>>
>>
>> And there is your problem, the structure of your extension 
>> package/archive does not agree with the instructions you have given to the 
>> installer. The line:
>>
>> files=[('bin/user', ['bin/user/awekaswx.py'])],
>>
>> in your installer is telling the extension installer to copy the file 
>> awekaswx.py from the bin/user directory in your extension 
>> package/archive to the WeeWX bin/user directory. The problem is 
>> bin/user/awekaswx.py does not exist in your archive, you have awekaswx.py 
>> in the main directory (AWEKAS) of your archive.
>>
>> Take for example the Ecowitt gateway driver extension package, its 
>> structure is:
>>
>> gary@cockatoo1:~ $ unzip -l ./gw1000.zip
>> Archive:  ./gw1000.zip
>>
>>   Length  DateTimeName
>> -  -- -   
>> 0  2024-02-21 19:39   gw1000/bin/
>> 0  2024-02-21 19:39   gw1000/bin/user/
>>  6148  2024-02-11 20:14   gw1000/bin/user/.DS_Store
>>390698  2024-02-21 19:39   gw1000/bin/user/gw1000.py
>>  8355  2024-02-21 19:39   gw1000/changelog
>> 4  2024-02-21 19:39   gw1000/install.py
>> 11346  2024-02-21 19:39   gw1000/readme.txt
>> - ---
>>
>> The extension installer has the same line:
>>
>> files=[('bin/user', ['bin/user/gw1000.py'])],
>>  
>> (well the same but of course a different file name). Note 
>> bin/user/gw1000.py exists in the extension package/extension. 
>>
>>  To fix you have two choices, change the files = line in your extension 
>> installer or change the structure of your extension package/archive. I 
>> favour the latter, it keeps the structure of the extension package more 
>> akin to the WeeWX file structure and avoids the 'put everything in one 
>> directory' approach. Your choice.
>>
>> Gary
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f3996539-b321-4993-a02e-2c1b0c47b161n%40googlegroups.com.


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 configuration file /home/remy/weewx-data/weewx.conf
Install extension 'awekas.zip' (y/n)? y
Traceback (most recent call last):
  File "/home/remy/weewx-venv/bin/weectl", line 8, in 
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 143, in install_extension
raise InstallError(f"Unrecognized type for {extension_path}")
weecfg.extension.InstallError: Unrecognized type for awekas.zip

Le jeudi 29 février 2024 à 09:35:50 UTC+1, gjr80 a écrit :

> 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  2024-02-29 08:42   AWEKAS/
>   565  2024-02-29 08:42   AWEKAS/install.py
> 35149  2024-02-26 10:33   AWEKAS/LICENSE.txt
> 56528  2024-02-26 10:33   AWEKAS*/awekaswx.py*
> - ---
> 92242 4 files
>
>
> And there is your problem, the structure of your extension package/archive 
> does not agree with the instructions you have given to the installer. The 
> line:
>
> files=[('bin/user', ['bin/user/awekaswx.py'])],
>
> in your installer is telling the extension installer to copy the file 
> awekaswx.py from the bin/user directory in your extension package/archive 
> to the WeeWX bin/user directory. The problem is bin/user/awekaswx.py does 
> not exist in your archive, you have awekaswx.py in the main directory (
> AWEKAS) of your archive.
>
> Take for example the Ecowitt gateway driver extension package, its 
> structure is:
>
> gary@cockatoo1:~ $ unzip -l ./gw1000.zip
> Archive:  ./gw1000.zip
>
>   Length  DateTimeName
> -  -- -   
> 0  2024-02-21 19:39   gw1000/bin/
> 0  2024-02-21 19:39   gw1000/bin/user/
>  6148  2024-02-11 20:14   gw1000/bin/user/.DS_Store
>390698  2024-02-21 19:39   gw1000/bin/user/gw1000.py
>  8355  2024-02-21 19:39   gw1000/changelog
> 4  2024-02-21 19:39   gw1000/install.py
> 11346  2024-02-21 19:39   gw1000/readme.txt
> - ---
>
> The extension installer has the same line:
>
> files=[('bin/user', ['bin/user/gw1000.py'])],
>  
> (well the same but of course a different file name). Note 
> bin/user/gw1000.py exists in the extension package/extension. 
>
>  To fix you have two choices, change the files = line in your extension 
> installer or change the structure of your extension package/archive. I 
> favour the latter, it keeps the structure of the extension package more 
> akin to the WeeWX file structure and avoids the 'put everything in one 
> directory' approach. Your choice.
>
> Gary
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c68bfef7-ce42-4ec3-9765-0072e24ce6a2n%40googlegroups.com.


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  2024-02-29 08:42   AWEKAS/
  565  2024-02-29 08:42   AWEKAS/install.py
35149  2024-02-26 10:33   AWEKAS/LICENSE.txt
56528  2024-02-26 10:33   AWEKAS*/awekaswx.py*
- ---
92242 4 files


And there is your problem, the structure of your extension package/archive 
does not agree with the instructions you have given to the installer. The 
line:

files=[('bin/user', ['bin/user/awekaswx.py'])],

in your installer is telling the extension installer to copy the file 
awekaswx.py from the bin/user directory in your extension package/archive 
to the WeeWX bin/user directory. The problem is bin/user/awekaswx.py does 
not exist in your archive, you have awekaswx.py in the main directory (
AWEKAS) of your archive.

Take for example the Ecowitt gateway driver extension package, its 
structure is:

gary@cockatoo1:~ $ unzip -l ./gw1000.zip
Archive:  ./gw1000.zip
  Length  DateTimeName
-  -- -   
0  2024-02-21 19:39   gw1000/bin/
0  2024-02-21 19:39   gw1000/bin/user/
 6148  2024-02-11 20:14   gw1000/bin/user/.DS_Store
   390698  2024-02-21 19:39   gw1000/bin/user/gw1000.py
 8355  2024-02-21 19:39   gw1000/changelog
4  2024-02-21 19:39   gw1000/install.py
11346  2024-02-21 19:39   gw1000/readme.txt
- ---

The extension installer has the same line:

files=[('bin/user', ['bin/user/gw1000.py'])],
 
(well the same but of course a different file name). Note bin/user/gw1000.py 
exists in the extension package/extension. 

 To fix you have two choices, change the files = line in your extension 
installer or change the structure of your extension package/archive. I 
favour the latter, it keeps the structure of the extension package more 
akin to the WeeWX file structure and avoids the 'put everything in one 
directory' approach. Your choice.

Gary


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8530a29f-f788-462c-81cc-566982a9540fn%40googlegroups.com.


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 -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
> 35149  2024-02-26 10:33   AWEKAS/LICENSE.txt
> 56528  2024-02-26 10:33   AWEKAS*/awekaswx.py*
> - ---
> 92242 4 files
>
>
> *Rémy LAVABRE*
>
>
> Le mer. 28 févr. 2024 à 09:32, gjr80  a écrit :
>
>> 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) 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 "/home/remy/weewx-venv/bin/weectl", line 8, in 
>>> 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: 
>>> '/tmp/tmprpxo6tw5/AWEKAS/bin/user/awekaswx.py'
>>>
>>> *and the install.py :*
>>>
>>> # installer for Awekas Bresser awekaswx driver
>>> # Copyright 2024 Remy LAVABRE
>>>
>>> from setup import ExtensionInstaller
>>>
>>> def loader():
>>> return awekaswxInstaller()
>>>
>>> class awekaswxInstaller(ExtensionInstaller):
>>> def __init__(self):
>>> super(awekaswxInstaller, self).__init__(
>>> version="1.3",
>>> name='awekaswx',
>>> description='Get Bresser 7in1 data on Awekas',
>>> author="Remy LAVABRE",
>>> author_email="remy.l...@gmail.com",
>>> files=[('bin/user', ['bin/user/awekaswx.py'])],
>>> config={
>>> 'awekaswx': {
>>> 'driver' : 'bin.user.awekaswx',
>>> 'poll_interval': '60',
>>> 'awekasapikey' :'My_API_Awekas_Key','
>>> 'openweatherapikey': 'My_API_OpenWeather_Key',
>>> 'send_syslog': 'True',
>>> 'model': 'Bresser 7in1'
>>> }
>>> }
>>> )
>>>
>>> *Rémy LAVABRE*
>>>
>>>
>>> Le dim. 25 févr. 2024 à 22:45, Tom Keffer  a écrit :
>>>
 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 restart weewxd. Post the log *from startup* through 
 the error.

 On Sun, Feb 25, 2024 at 10:55 AM Remy Lavabre  
 wrote:

> 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