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/CAPq0zEAOFunb83wj1CzMNjfTQ3VecHjYrYTwfVHvztFY%3DOrqmw%40mail.gmail.com.

Reply via email to