Re: [weewx-user] Using venv for weewx 5.0

2024-06-15 Thread Chuck Rhode
On Fri, 14 Jun 2024 14:38:59 -0700 (PDT) vince wrote: > install ... prerequisite module(s) ... with pip just like you did > for v4 I note that Debian (and presumably downstream) packaging for the *python* development and run-time environments changed in v12 (Bookworm). The package *python3-pip*

Re: [weewx-user] Using venv for weewx 5.0

2024-06-14 Thread vince
Easy. Everything goes inside the venv. Activate your venv (likely 'source /home/pi/weewx-venv/bin/activate') then install and configure the MQTTSubscribe extension and also install its prerequisite module paho-mqtt with pip just like you did for v4. Other than the one added step to activate

Re: [weewx-user] Using venv for weewx 5.0

2024-06-14 Thread Tom Keffer
Python virtual environments are used to isolate Python runtimes. So, if you want access to an extension or a Python module from within a runtime then, yes, you need to activate the environment, then do the install into it. It's worth creating a throwaway virtual environment then examining it. It's

Re: [weewx-user] Using venv for weewx 5.0

2024-06-14 Thread bgra...@umw.edu
Thanks, Tom, I’m learning my way into weewx 5.0. As I understand, weewx updates, python updates, and additions such as extensions need to be done while logged into venv. Everything else indtalled should be from the normal login. Weewx is a great system and I appreciate all the work you and many

Re: [weewx-user] Using venv for weewx 5.0

2024-06-14 Thread bgra...@umw.edu
Vince, I've been using Node-Red to send MQTT data from several other sensors to weewx 4.10.2 on Ubuntu (VP2)--all working ok. I'm now trying to setup the same install on an RPI5 which is running weewx 5.0. Being unfamiliar with venv, I'm trying to understand what goes inside and outside of the v

Re: [weewx-user] Using venv for weewx 5.0

2024-06-14 Thread vince
What are you actually trying to do with node-red ? Not seeing what it has to do with weewx. Are you trying to use it to read other sensors or something like that ? On Friday, June 14, 2024 at 7:30:34 AM UTC-7 Tom Keffer wrote: > A virtual environment is just a way of isolating a Python-based

Re: [weewx-user] Using venv for weewx 5.0

2024-06-14 Thread Tom Keffer
A virtual environment is just a way of isolating a Python-based runtime. The environment locks down which instance of the Python interpreter will be used, plus that interpreter gets its own copy of any installed Python modules. Node Red uses the node interpreter, not the Python interpreter. You in

[weewx-user] Using venv for weewx 5.0

2024-06-14 Thread bgra...@umw.edu
I have successfully set up 5.0 on a test RPI5 connected to a second VP2 console. My main system, weewx 4.10.2, has been running on Ubuntu for over 10 years. I’m not at all familiar with the venv setup and how to use it with respect to other programs installed on the RPI5. My question: * when I