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

2024-03-01 Thread fLsh
ok god thx it is working again

--> new driver version v.1.1.4:

thanks for your support :)

● weewx.service - WeeWX
Loaded: loaded (/usr/lib/systemd/system/weewx.service; enabled; vendor 
preset: enabled) 
Active: active (running) since Fri 2024-03-01 19:31:46 CET; 14s ago
 Docs: https://weewx.com/docs


Main PID: 24936 (python3) 
Tasks: 4 (limit: 4915) 
Memory: 14.8M 
CGroup: /system.slice/weewx.service 
└─24936 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf 
Mär 01 19:31:47 loxberry weewxd[24936]: INFO weewx.restx: WOW: Posting not 
enabled. 
Mär 01 19:31:47 loxberry weewxd[24936]: INFO weewx.restx: AWEKAS: Posting 
not enabled. 
Mär 01 19:31:47 loxberry weewxd[24936]: INFO weewx.engine: 'pyephem' 
detected, extended almanac data is available 
Mär 01 19:31:47 loxberry /weewxd.py[24936]: lowBattery: LowBattery alarm 
enabled. Count threshold is 10 
Mär 01 19:31:47 loxberry /weewxd.py[24936]: alarm: Alarm set for 
expression: 'windGust > 35' 
Mär 01 19:31:47 loxberry weewxd[24936]: INFO __main__: Starting up weewx 
version 5.0.2 
Mär 01 19:31:47 loxberry weewxd[24936]: INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx.sdb_new' 
Mär 01 19:31:47 loxberry weewxd[24936]: INFO weewx.manager: Starting 
backfill of daily summaries 
Mär 01 19:31:47 loxberry weewxd[24936]: INFO weewx.manager: Daily summaries 
up to date 
Mär 01 19:31:47 loxberry weewxd[24936]: INFO weewx.engine: Starting main 
packet loop. 
root@loxberry:~# 

vince schrieb am Freitag, 1. März 2024 um 17:50:58 UTC+1:

> If you're python 3.7 on the raspi os, you are running an old debian-10 
> based system which although it's as patched up as it can be, it's not 
> really current.  I have an old pi running that os and my python3 is 3.7.3 
> FWIW.  But the underlying problem is you likely didn't get something quite 
> right in compiling your own python 3.9 version. Hopefully your driver 
> author can tweak things so you can use the system python version.
>
> Don't sweat venv if you use a dpkg package of weewx.
>
> On Thursday, February 29, 2024 at 11:42:13 PM UTC-8 fLsh wrote:
>
>> 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 configob

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

2024-03-01 Thread vince
If you're python 3.7 on the raspi os, you are running an old debian-10 
based system which although it's as patched up as it can be, it's not 
really current.  I have an old pi running that os and my python3 is 3.7.3 
FWIW.  But the underlying problem is you likely didn't get something quite 
right in compiling your own python 3.9 version. Hopefully your driver 
author can tweak things so you can use the system python version.

Don't sweat venv if you use a dpkg package of weewx.

On Thursday, February 29, 2024 at 11:42:13 PM UTC-8 fLsh wrote:

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

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 "/usr/lib/python3.9/ru

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 
>> exec(co

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 "/usr/lib/python3.9/site-packa

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 __in

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 "/usr/lib/python3.9/site-package

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
> "/usr/share/weewx/w

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

2024-02-28 Thread fLsh
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 
"/usr/share/weewx/weewx/engine.py", line 104, in setupStation 
Feb 29 00:06:57 loxberry weewxd[932]: __import__(driver) 
Feb 29 00:06:57 loxberry weewxd[932]: File 
"/etc/weewx/bin/user/weatherlink_live/__init__.py", line 27, in 
Feb 29 00:06:57 loxberry weewxd[932]: from 
user.weatherlink_live.configurator import WeatherlinkLiveConfigurator
Feb 29 00:06:57 loxberry weewxd[932]: File 
"/etc/weewx/bin/user/weatherlink_live/configurator.py", line 24, in 
Feb 29 00:06:57 loxberry weewxd[932]: from user.weatherlink_live import 
configuration
Feb 29 00:06:57 loxberry weewxd[932]: File 
"/etc/weewx/b

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

2024-02-28 Thread fLsh
yeah basicaly driver is not running and therefore Data from weatherlink 
Live cannot be read.
But question is, athough 5.0.2 is installed and driver v1.1.3, why are 
those not used and instead, 5.0.1 is being loaded?

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

> I hate to "pass the buck," but this looks like an issue with the new 
> WeatherLink Live driver.
>
> The log entry gets cut off with the phrase "Caus", which I suspect would 
> give you the "cause." Take a look in your log.
>
>
>
>
>
> On Wed, Feb 28, 2024 at 3:03 PM fLsh  wrote:
>
>> Hi folks,
>>
>> I was happily running 4.10.2 on my Raspberry Pi 4 with many changes to 
>> skins, drivers and templates.
>> Today I did an upgrade to 5.0.1 which was running too. Then I so in apt 
>> update that there is a public key missing which I resolved with the 
>> documentation. After that, 5.0.2 was available (or was just a coincidence 
>> maybe) and also upgrade the weatherllink_live driver bei Michael Schantl to 
>> 1.1.3.
>> Now weewx will fail to start with attached error. 
>> In ournalctl I can see, that weewxd v.5.0.1 gets started and old driver 
>> 1.1.3.
>> Can please somone help me on fixing that?
>>
>> In journalctl:
>> -- Logs begin at Wed 2024-02-28 11:14:25 CET, end at Thu 2024-02-29 
>> 00:01:13 CET. -- 
>> Feb 28 11:14:38 loxberry systemd[1]: Started WeeWX. 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Initializing weewxd 
>> version 5.0.1 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Command line: 
>> /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Using Python 3.7.3 
>> (default, Oct 11 2023, 09:51:27) 
>> [GCC 8.3.0] 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Located at 
>> /usr/bin/python3 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Platform 
>> Linux-4.19.118-v7l+-armv7l-with-debian-10.13 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Locale: 
>> 'de_DE.UTF-8' 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Entry path: 
>> /usr/share/weewx/weewxd.py 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: WEEWX_ROOT: 
>> /etc/weewx 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Configuration file: 
>> /etc/weewx/weewx.conf 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: User module: 
>> /etc/weewx/bin/user 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Debug: 0 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Loading station 
>> type WeatherLinkLive (user.weatherlink_live) 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO user.weatherlink_live: 
>> Initializing driver: WeatherLinkLive v1.0.11 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: StdConvert 
>> target unit is 0x1 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.wxservices: 
>> StdWXCalculate will use data binding wx_binding 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Archive will use 
>> data binding wx_binding 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Record 
>> generation will be attempted in 'hardware' 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Using archive 
>> interval of 300 seconds (specified in weewx configuration) 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: StationRegistry: 
>> Registration not requested. 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: Wunderground-PWS: 
>> Data for station IFELLB13 will be posted 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: PWSweather: 
>> Posting not enabled. 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: CWOP: Posting not 
>> enabled. 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: WOW: Posting not 
>> enabled. 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: AWEKAS: Posting 
>> not enabled. 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: 'pyephem' 
>> detected, extended almanac data is available 
>> Feb 28 11:14:41 loxberry /weewxd.py[234]: lowBattery: LowBattery alarm 
>> enabled. Count threshold is 10 
>> Feb 28 11:14:41 loxberry /weewxd.py[234]: alarm: Alarm set for 
>> expression: 'windGust > 35' 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Starting up weewx 
>> version 5.0.1 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Using binding 
>> 'wx_binding' to database 'weewx.sdb_new' 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.manager: Starting 
>> backfill of daily summaries 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.manager: Daily summaries 
>> up to date 
>> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Starting main 
>> packet loop. 
>> Feb 28 11:14:41 loxberry weewxd[234]: ERROR 
>> user.weatherlink_live.davis_http: HTTPConnectionPool(host='192.168.178.36', 
>> port=80): Max retries exceeded with url: /v1/current_conditions (Caus
>> Feb 28 11:14:41 loxberry weewxd[234]: ERROR 
>> user.weatherlink_live.davis_http: HTTP conditio

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

2024-02-28 Thread Tom Keffer
I hate to "pass the buck," but this looks like an issue with the new
WeatherLink Live driver.

The log entry gets cut off with the phrase "Caus", which I suspect would
give you the "cause." Take a look in your log.





On Wed, Feb 28, 2024 at 3:03 PM fLsh  wrote:

> Hi folks,
>
> I was happily running 4.10.2 on my Raspberry Pi 4 with many changes to
> skins, drivers and templates.
> Today I did an upgrade to 5.0.1 which was running too. Then I so in apt
> update that there is a public key missing which I resolved with the
> documentation. After that, 5.0.2 was available (or was just a coincidence
> maybe) and also upgrade the weatherllink_live driver bei Michael Schantl to
> 1.1.3.
> Now weewx will fail to start with attached error.
> In ournalctl I can see, that weewxd v.5.0.1 gets started and old driver
> 1.1.3.
> Can please somone help me on fixing that?
>
> In journalctl:
> -- Logs begin at Wed 2024-02-28 11:14:25 CET, end at Thu 2024-02-29
> 00:01:13 CET. --
> Feb 28 11:14:38 loxberry systemd[1]: Started WeeWX.
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Initializing weewxd
> version 5.0.1
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Command line:
> /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Using Python 3.7.3
> (default, Oct 11 2023, 09:51:27)
> [GCC 8.3.0]
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Located at
> /usr/bin/python3
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Platform
> Linux-4.19.118-v7l+-armv7l-with-debian-10.13
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Locale: 'de_DE.UTF-8'
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Entry path:
> /usr/share/weewx/weewxd.py
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: WEEWX_ROOT:
> /etc/weewx
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Configuration file:
> /etc/weewx/weewx.conf
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: User module:
> /etc/weewx/bin/user
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Debug: 0
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Loading station
> type WeatherLinkLive (user.weatherlink_live)
> Feb 28 11:14:41 loxberry weewxd[234]: INFO user.weatherlink_live:
> Initializing driver: WeatherLinkLive v1.0.11
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: StdConvert target
> unit is 0x1
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.wxservices:
> StdWXCalculate will use data binding wx_binding
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Archive will use
> data binding wx_binding
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Record generation
> will be attempted in 'hardware'
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Using archive
> interval of 300 seconds (specified in weewx configuration)
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: StationRegistry:
> Registration not requested.
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: Wunderground-PWS:
> Data for station IFELLB13 will be posted
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: PWSweather:
> Posting not enabled.
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: CWOP: Posting not
> enabled.
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: WOW: Posting not
> enabled.
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.restx: AWEKAS: Posting
> not enabled.
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: 'pyephem'
> detected, extended almanac data is available
> Feb 28 11:14:41 loxberry /weewxd.py[234]: lowBattery: LowBattery alarm
> enabled. Count threshold is 10
> Feb 28 11:14:41 loxberry /weewxd.py[234]: alarm: Alarm set for expression:
> 'windGust > 35'
> Feb 28 11:14:41 loxberry weewxd[234]: INFO __main__: Starting up weewx
> version 5.0.1
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Using binding
> 'wx_binding' to database 'weewx.sdb_new'
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.manager: Starting
> backfill of daily summaries
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.manager: Daily summaries
> up to date
> Feb 28 11:14:41 loxberry weewxd[234]: INFO weewx.engine: Starting main
> packet loop.
> Feb 28 11:14:41 loxberry weewxd[234]: ERROR
> user.weatherlink_live.davis_http: HTTPConnectionPool(host='192.168.178.36',
> port=80): Max retries exceeded with url: /v1/current_conditions (Caus
> Feb 28 11:14:41 loxberry weewxd[234]: ERROR
> user.weatherlink_live.davis_http: HTTP conditions request failed. Retry #0
> follows shortly
> Feb 28 11:14:44 loxberry weewxd[234]: ERROR
> user.weatherlink_live.davis_http: HTTPConnectionPool(host='192.168.178.36',
> port=80): Max retries exceeded with url: /v1/current_conditions (Caus
> Feb 28 11:14:44 loxberry weewxd[234]: ERROR
> user.weatherlink_live.davis_http: HTTP conditions request failed. Retry #1
> follows shortly
> Feb 28 11:14:47 loxberry weewxd[234]: ERROR
> user.weatherlink_live.davis_http: HTTPConne