For v5 pip installations in a venv you still possibly need to add modules 
via pip within the venv....

Here, I needed to add requests and paho-mqtt for a couple 
skins/extensions....

On Thursday, August 24, 2023 at 12:18:01 PM UTC-7 Karen K wrote:

> Most Linux distributions provide Python requests by means of their package 
> management and update system. pip would mess up with this.
>
> Tom Keffer schrieb am Donnerstag, 24. August 2023 um 16:03:03 UTC+2:
>
>> Good reason to always run out of a virtual environment.
>>
>> On Thu, Aug 24, 2023 at 5:59 AM matthew wall <[email protected]> wrote:
>>
>>> invoking pip as a possible side effect of installing a weewx extension 
>>> has "danger will robinson" and "there be dragons" written all over it.
>>>
>>> although it *could* mean one fewer step when installing a weewx 
>>> extension, and it probably would not be a problem on a system that is 
>>> running only weewx and where weewx was installed using pip and where weewx 
>>> is being run in a virtual environment (and i might have missed a few more 
>>> 'and's), it could be problematic in many other situations.
>>>
>>> pip is horrible at dependency management - it will happily break one 
>>> python package as it tries to satisfy dependencies for another, and unless 
>>> you have extensive unit tests for everything you ever want to run, you 
>>> won't notice it until something that used to run just fine breaks.
>>>
>>> i wish there were a good solution to python 
>>> installation/upgrade/management that works across operating environments 
>>> and packaging systems.
>>>
>>> On Wednesday, August 23, 2023 at 4:06:17 PM UTC-4 [email protected] 
>>> wrote:
>>>
>>>> We are trying to keep the number of modules down to a minimum.
>>>>
>>>> I suppose we could add a feature to the WeeWX extension installer that 
>>>> allowed extension writers to specify which pypi modules they need for 
>>>> their 
>>>> extension. It would look something like
>>>>
>>>> class MyInstaller(ExtensionInstaller):
>>>>     def __init__(self):
>>>>         super().__init__(
>>>>             version="0.5",
>>>>             name='my',
>>>>             ...
>>>>             files=[
>>>>                 ...
>>>>             ],
>>>>         pypi = [requests,]
>>>>         )
>>>>
>>>> The installer would then run pip to install the specified modules.
>>>>
>>>> -tk
>>>>
>>>> On Wed, Aug 23, 2023 at 12:53 PM Chris Alemany <[email protected]> 
>>>> wrote:
>>>>
>>>>> Hello all,
>>>>>
>>>>> I’ve moved over to v5 successfully for the most part. One missing 
>>>>> piece I’ve come across with two extensions now is the Requests modules. I 
>>>>> use the weewx-purpleAir and a Mastodon wxtoot extension that both rely on 
>>>>> this module. I’m not sure how common it is in other extensions.
>>>>>
>>>>> I’m sure you want to keep the number of modules down to a minimum but 
>>>>> I’ll put my hand up to include pip requests in the weewx-venv.
>>>>>
>>>>> Cheers
>>>>> Chris
>>>>>
>>>>> -- 
>>>>> 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 [email protected].
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/weewx-user/06890F55-849E-42BB-93BB-72CFCDB28960%40gmail.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 [email protected].
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/eb451f54-2289-4637-9c52-d0398303f017n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/eb451f54-2289-4637-9c52-d0398303f017n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/cf81c6eb-99fa-4f0f-a262-d9e5e3296f08n%40googlegroups.com.

Reply via email to