Well, I guess using symbolic links works, but I don't think the average
user is going to want to do that.

In any case, glad to see that it is working for you.

-tk

On Wed, Jan 11, 2023 at 5:36 AM Hartmut Schweidler <[email protected]>
wrote:

> Meine Lösung ein ff. Links
>
> ln -s
> /usr/local/lib/python3.9/dist-packages/requests
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
> ln -s /usr/local/lib/python3.9/dist-packages/requests-2.26.0.dist-info
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
> ln -s /usr/local/lib/python3.9/dist-packages/urllib3
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
> ln -s /usr/local/lib/python3.9/dist-packages/urllib3-1.26.7.dist-info
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
> ln -s /usr/local/lib/python3.9/dist-packages/charset_normalizer
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
> ln -s
> /usr/local/lib/python3.9/dist-packages/charset_normalizer-2.0.8.dist-info
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
> ln -s /usr/local/lib/python3.9/dist-packages/certifi
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
> ln -s /usr/local/lib/python3.9/dist-packages/certifi-2021.10.8.dist-info
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
> ln -s /usr/local/lib/python3.9/dist-packages/idna
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
> ln -s /usr/local/lib/python3.9/dist-packages/idna-3.3.dist-info
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
> ln -s /usr/local/lib/python3.9/dist-packages/Cryptodome
> /home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages
>
> danach läuft: hes1@ba001:/root$ weewxd
>
> nur sudo ./.local/bin/weectl daemon install --type=systemd brachte diev.
> Fehler.
>
> nach etwas Anpassung
>
> Jan 11 11:18:19 ba001 systemd[1]: Starting LSB: weewx weather system...
> Jan 11 11:18:20 ba001 weewx[10979] INFO weewxd: Initializing weewx version
> 5.0.0a10
> Jan 11 11:18:20 ba001 weewx[10979] INFO weewxd: Using Python 3.9.2
> (default, Feb 28 2021, 17:03:44) #012[GCC 10.2.1 20210110]
> Jan 11 11:18:20 ba001 weewx[10979] INFO weewxd: Located at
> /home/hes1/.local/pipx/venvs/weewx/bin/python
> Jan 11 11:18:20 ba001 weewx[10979] INFO weewxd: Platform
> Linux-5.15.80-sunxi-armv7l-with-glibc2.31
> Jan 11 11:18:20 ba001 weewx[10979] INFO weewxd: Locale is
> 'LC_CTYPE=de_DE.UTF-8;LC_NUMERIC=de_DE.UTF-8;LC_TIME=de_DE.UTF-8;LC_COLLATE=de_DE.UTF-8;LC_MONETA
>
> RY=de_DE.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=de_DE.UTF-8;LC_ADDRESS=de_DE.UTF-8;LC_TELEPHONE=de_DE.UTF-8;LC_MEASUREMENT=de_DE.UTF-8;
> LC_IDENTIFICATION=de_DE.UTF-8'
> Jan 11 11:18:20 ba001 weewx[10979] INFO weewxd: Using configuration file
> /home/hes1/weewx-data/weewx.conf
> Jan 11 11:18:20 ba001 weewx[10979] INFO weewxd: Debug is 1
> Jan 11 11:18:20 ba001 weewx[10979] INFO weewxd: PID file is
> /var/run/weewx.pid
> Jan 11 11:18:20 ba001 weewx[10982] DEBUG weewxd: Initializing engine
> Jan 11 11:18:20 ba001 weewx[10982] INFO weewx.engine: Loading station type
> WLL (user.wll)
> Jan 11 11:18:20 ba001 weewx[10969]: Starting weewx weather system: weewx.
> Jan 11 11:18:20 ba001 systemd[1]: Started LSB: weewx weather system.
> Jan 11 11:18:21 ba001 weewx[10982] ERROR user.wll: The WeatherLink Live
> hostname or ip address is required.
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG weewx.engine: Loading service
> weewx.engine.StdTimeSynch
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdTimeSynch
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG weewx.engine: Loading service
> user.airDavis.AirDavis
> Jan 11 11:18:21 ba001 weewx[10982] INFO user.airDavis: service version is
> 3.0.2
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG weewx.manager: Daily summary
> version is 4.0
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG user.airDavis: collect_data:
> fetching from url: http://192.168.38.12:80/v1/current_conditions,
> timeout: 10
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG weewx.engine: Finished loading
> service user.airDavis.AirDavis
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG weewx.engine: Loading service
> user.airDavisOut.AirDavis
> Jan 11 11:18:21 ba001 weewx[10982] INFO user.airDavisOut: service version
> is 3.0.1
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG urllib3.connectionpool: Starting
> new HTTP connection (1): 192.168.38.12:80
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG weewx.manager: Daily summary
> version is 4.0
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG user.airDavisOut: collect_data:
> fetching from url: http://192.168.38.17:80/v1/current_conditions,
> timeout: 10
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG weewx.engine: Finished loading
> service user.airDavisOut.AirDavis
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG weewx.engine: Loading service
> user.davishealthapi.DavisHealthAPI
> Jan 11 11:18:21 ba001 weewx[10982] DEBUG urllib3.connectionpool: Starting
> new HTTP connection (1): 192.168.38.17:80
> Jan 11 11:18:21 ba001 weewx[10982] INFO user.davishealthapi: service
> version is 4.0.2
> Jan 11 11:18:21 ba001 weewx[10982] INFO user.davishealthapi: archive
> interval is 1220
>
> läuft bis zum Abbruch per STRG+C
> Jetzt mit
> hes1@ba001:/root$ sudo /etc/init.d/weewx restart
>
> Jan 11 11:24:49 ba001 systemd[1]: Starting LSB: weewx weather system...
> Jan 11 11:24:51 ba001 weewx[11365] INFO weewxd: Initializing weewx version
> 5.0.0a10
> Jan 11 11:24:51 ba001 weewx[11365] INFO weewxd: Using Python 3.9.2
> (default, Feb 28 2021, 17:03:44) #012[GCC 10.2.1 20210110]
> Jan 11 11:24:51 ba001 weewx[11365] INFO weewxd: Located at
> /home/hes1/.local/pipx/venvs/weewx/bin/python
> Jan 11 11:24:51 ba001 weewx[11365] INFO weewxd: Platform
> Linux-5.15.80-sunxi-armv7l-with-glibc2.31
> Jan 11 11:24:51 ba001 weewx[11365] INFO weewxd: Locale is
> 'LC_CTYPE=de_DE.UTF-8;LC_NUMERIC=de_DE.UTF-8;LC_TIME=de_DE.UTF-8;LC_COLLATE=de_DE.UTF-8;LC_MONETA
>
> RY=de_DE.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=de_DE.UTF-8;LC_ADDRESS=de_DE.UTF-8;LC_TELEPHONE=de_DE.UTF-8;LC_MEASUREMENT=de_DE.UTF-8;
> LC_IDENTIFICATION=de_DE.UTF-8'
> Jan 11 11:24:51 ba001 weewx[11365] INFO weewxd: Using configuration file
> /home/hes1/weewx-data/weewx.conf
> Jan 11 11:24:51 ba001 weewx[11365] INFO weewxd: Debug is 0
> Jan 11 11:24:51 ba001 weewx[11365] INFO weewxd: PID file is
> /var/run/weewx.pid
> Jan 11 11:24:51 ba001 weewx[11368] INFO weewx.engine: Loading station type
> WLL (user.wll)
> Jan 11 11:24:51 ba001 weewx[11355]: Starting weewx weather system: weewx.
> Jan 11 11:24:51 ba001 systemd[1]: Started LSB: weewx weather system.
> Jan 11 11:24:52 ba001 weewx[11368] ERROR user.wll: The WeatherLink Live
> hostname or ip address is required.
> Jan 11 11:24:52 ba001 weewx[11368] INFO user.airDavis: service version is
> 3.0.2
> Jan 11 11:24:52 ba001 weewx[11368] INFO user.airDavisOut: service version
> is 3.0.1
> Jan 11 11:24:52 ba001 weewx[11368] INFO user.davishealthapi: service
> version is 4.0.2
> Jan 11 11:24:52 ba001 weewx[11368] INFO user.davishealthapi: archive
> interval is 1220
> Jan 11 11:24:52 ba001 weewx[11368] INFO user.airQ: AirQ-18 0.18 service
> Jan 11 11:24:52 ba001 weewx[11368] INFO user.airQ: volume_mass_method 1
> Jan 11 11:24:52 ba001 weewx[11368] INFO user.airQ: reading air-Q-18
> 'AirQ', host '192.168.38.18': starting
> Jan 11 11:24:52 ba001 weewx[11368] INFO user.airQ_dbE: AirQ-19 0.19 service
> Jan 11 11:24:52 ba001 weewx[11368] INFO user.airQ_dbE: volume_mass_method 1
> Jan 11 11:24:52 ba001 weewx[11368] INFO user.airQ_dbE: reading airQ-19
> 'AirQ19', host '192.168.38.19': starting
> Jan 11 11:24:52 ba001 weewx[11368] INFO weewx.engine: StdConvert target
> unit is 0x10
> Jan 11 11:24:52 ba001 weewx[11368] INFO weewx.wxservices: StdWXCalculate
> will use data binding wx_binding
> Jan 11 11:24:53 ba001 weewx[11368] INFO user.xgreenGTS: Version 0.8a3
> Jan 11 11:24:53 ba001 weewx[11368] INFO user.xgreenGTS: Local mean time
> (LMT) UTC offset 0:45:21.937680
> Jan 11 11:24:53 ba001 weewx[11368] INFO weewx.engine: Archive will use
> data binding wx_binding
> Jan 11 11:24:53 ba001 weewx[11368] INFO weewx.engine: Record generation
> will be attempted in 'hardware'
> Jan 11 11:24:53 ba001 weewx[11368] INFO weewx.engine: Using archive
> interval of 300 seconds (specified in weewx configuration)
> Jan 11 11:24:53 ba001 weewx[11368] INFO weewx.engine: 'pyephem' detected,
> extended almanac data is available
> Jan 11 11:24:53 ba001 weewx[11368] INFO weewxd: Starting up weewx version
> 5.0.0a10
> Jan 11 11:24:53 ba001 weewx[11368] INFO weewx.engine: Using binding
> 'wx_binding' to database 'weewxBA001'
> Jan 11 11:24:53 ba001 weewx[11368] INFO weewx.manager: Starting backfill
> of daily summaries
> Jan 11 11:24:53 ba001 weewx[11368] INFO weewx.manager: Daily summaries up
> to date
> Jan 11 11:24:53 ba001 weewx[11368] INFO weewx.engine: Starting main packet
> loop.
> Jan 11 11:25:24 ba001 weewx[11368] INFO weewx.manager: Added record
> 2023-01-11 11:24:51 CET (1673432691) to database 'weewxAirDavis'
> Jan 11 11:25:24 ba001 weewx[11368] INFO weewx.manager: Added record
> 2023-01-11 11:24:51 CET (1673432691) to daily summary in 'weewxAirDavis'
> Jan 11 11:25:24 ba001 weewx[11368] INFO weewx.manager: Added record
> 2023-01-11 11:24:52 CET (1673432692) to database 'weewxAirDavisOut'
> Jan 11 11:25:24 ba001 weewx[11368] INFO weewx.manager: Added record
> 2023-01-11 11:24:52 CET (1673432692) to daily summary in 'weewxAirDavisOut'
> Jan 11 11:25:24 ba001 weewx[11368] INFO user.xgreenGTS: GTS initialized
> 2023-01-01 00:14:38
> Jan 11 11:25:24 ba001 weewx[11368] INFO user.xgreenGTS: GTS
> 35.081304164769676, 10 loops
> Jan 11 11:25:24 ba001 weewxd: AqiService: ValueError AQI calculation for
> pm10_0 on 1673432700 failed: Not enough observations wanted 216, but got 29
> Jan 11 11:25:24 ba001 weewxd: AqiService: ValueError AQI calculation for
> pm2_5 on 1673432700 failed: Not enough observations wanted 216, but got 29
> Jan 11 11:25:24 ba001 weewxd: AqiService: not storing record for dateTime
> 1673432700
> Jan 11 11:25:25 ba001 weewx[11368] INFO weewx.manager: Added record
> 2023-01-11 11:25:00 CET (1673432700) to database 'weewxBA001'
> Jan 11 11:25:26 ba001 weewx[11368] INFO weewx.manager: Added record
> 2023-01-11 11:25:00 CET (1673432700) to daily summary in 'weewxBA001'
> Jan 11 11:25:44 ba001 weewx[11368] INFO weewx.cheetahgenerator: Generated
> 8 files for report SeasonsReport in 17.88 seconds
> Jan 11 11:25:49 ba001 weewx[11368] INFO weewx.imagegenerator: Generated 18
> images for report SeasonsReport in 4.34 seconds
> Jan 11 11:25:49 ba001 weewx[11368] INFO weewx.reportengine: Copied 5 files
> to /home/hes1/weewx-data/public_html
> Jan 11 11:25:49 ba001 weewx[11368] INFO weewx.cheetahgenerator: Generated
> 1 files for report AirLinkReport in 0.35 seconds
> Jan 11 11:25:49 ba001 weewx[11368] INFO weewx.imagegenerator: Generated 1
> images for report AirLinkReport in 0.19 seconds
> Jan 11 11:26:03 ba001 weewx[11368] INFO weewx.cheetahgenerator: Generated
> 2 files for report AirQReport in 13.84 seconds
> Jan 11 11:26:03 ba001 weewx[11368] INFO weewx.imagegenerator: Generated 0
> images for report AirQReport in 0.09 seconds
> Jan 11 11:26:03 ba001 weewx[11368] INFO weewx.reportengine: Copied 0 files
> to /home/hes1/weewx-data/public_html
> Jan 11 11:26:05 ba001 weewx[11368] INFO weewx.cheetahgenerator: Generated
> 1 files for report DavisReport in 1.22 seconds
> Jan 11 11:26:05 ba001 weewx[11368] INFO weewx.imagegenerator: Generated 2
> images for report DavisReport in 0.40 seconds
> Jan 11 11:26:05 ba001 weewx[11368] INFO weewx.reportengine: Copied 0 files
> to /home/hes1/weewx-data/public_html/davis
>
> Den Vorschlag werde testen
> Hartmut
> Tom Keffer schrieb am Mittwoch, 11. Januar 2023 um 13:49:42 UTC+1:
>
>> This brings up a good point.
>>
>> The virtual environment used by pipx (~/.local/pipx/venvs/weewx) is not
>> aware of the pip user area ~/.local/lib/python3.9/site-packages. Instead,
>> you have to install dependencies directly into the VE used by pipx:
>>
>> *pipx inject weewx requests*
>>
>>
>> Definitely a limitation to using pipx. I'll have to think about whether
>> we want to recommend this approach.
>>
>> Thanks again, Hartmut.
>>
>> -tk
>>
>>
>> On Wed, Jan 11, 2023 at 12:59 AM Hartmut Schweidler <[email protected]>
>> wrote:
>>
>>> Guten Morgen,
>>> nach der Installation von weewx5 mit pip3 ...
>>>
>>> benötige ich noch eine Installation von  requests  und urllib3
>>> erscheint
>>> hes1@ba001:~$ pip3 install requests --user
>>> Requirement already satisfied: requests in
>>> /usr/local/lib/python3.9/dist-packages (2.26.0)
>>> Requirement already satisfied: urllib3<1.27,>=1.21.1 in
>>> ./.local/lib/python3.9/site-packages (from requests) (1.26.13)
>>> Requirement already satisfied: certifi>=2017.4.17 in
>>> /usr/local/lib/python3.9/dist-packages (from requests) (2021.10.8)
>>> Requirement already satisfied: charset-normalizer~=2.0.0 in
>>> ./.local/lib/python3.9/site-packages (from requests) (2.0.12)
>>> Requirement already satisfied: idna<4,>=2.5 in
>>> /usr/local/lib/python3.9/dist-packages (from requests) (3.3)
>>> hes1@ba001:~$ weewxd
>>> Traceback (most recent call last):
>>>   File "/home/hes1/.local/bin/weewxd", line 8, in <module>
>>>     sys.exit(main())
>>>   File
>>> "/home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages/weewxd.py",
>>> line 149, in main
>>>     engine = weewx.engine.StdEngine(config_dict)
>>>   File
>>> "/home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages/weewx/engine.py",
>>> line 81, in __init__
>>>     self.setupStation(config_dict)
>>>   File
>>> "/home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages/weewx/engine.py",
>>> line 108, in setupStation
>>>     __import__(driver)
>>>   File
>>> "/home/hes1/.local/pipx/venvs/weewx/lib/python3.9/site-packages/user/wll.py",
>>> line 29, in <module>
>>>     import requests
>>> ModuleNotFoundError: No module named 'requests'
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "weewx-development" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-development/a6f1e5d9-6337-47f8-8bf7-1e7613a3f9ccn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-development/a6f1e5d9-6337-47f8-8bf7-1e7613a3f9ccn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/f50492d7-4236-48f6-a5fd-8720a9e93c40n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/f50492d7-4236-48f6-a5fd-8720a9e93c40n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zEAs7uY%3DEE8k0Tjm2VbKAjhmJwPw_3uctxq0qY1rj56tbA%40mail.gmail.com.

Reply via email to