Hmm, I do not have these issues with pip.
I have the weather installed on a rolling distribution. I am constantly
upgrading the OS. Although as I am currently doing WeeWx development, it
has been 45 days since any OS changes. I use tmux to maintain my state
so I do not want to lose all these windows. :)
I recall early on, after installing a new package via pip, I had to
recreate the virtual environment. I followed the WeeWx doc.
Cheers!
---
pablo
On 2025-10-21 10:01, [email protected] wrote:
I'd just like to chime in here.
I certainly do not like the pip install.
It works fine for me.
Until an OS upgrade. Then it seems the choices are either rebuild the
machine and start from scratch so to speak.
Fiddle with finding every instance of the path to the missing python
and edit it.
Or hard link.
Or symlink.
Or...
Yeah, I know. Don't upgrade. Not the best answer to me.
I may revert to a deb install when I rebuild the weewx machine to
solve these errors after the upgrade to Trixie.
Shoot, for me, in the venv there isn't a pip and it was not possible
to reinstall pip for reasons known only to the gods.
Luckily, I run on proxmox and rolled back to my previous state.
My 10 cents
On Monday, October 20, 2025 at 10:41:39 PM UTC-4 Tom Keffer wrote:
It is customary when using a venv interactively, but it's not
actually necessary. As an alternative, you can use an absolute
path to the Python interpreter inside the venv. That's enough for
it to find its packages.
On Mon, Oct 20, 2025 at 4:37 PM vince <[email protected]> wrote:
Yes.
On Monday, October 20, 2025 at 3:33:33 PM UTC-7 Jobu wrote:
A bit of a tangent, but is it customary to run `activate`
from a venv before using it in systematic use cases like this?
On Monday, October 20, 2025 at 4:22:34 PM UTC-5 vince wrote:
Which 'what' is accurate ?
It sounds like your os has a different system-level
python version than your pre-existing venv, perhaps
from an os upgrade. It's happened to others.
See a similar thread at
https://groups.google.com/g/weewx-user/c/04WSgv2Ze7g/m/9nlZklaPAgAJ
- there are multiple ways to work this one, but be
sure to make certain your systemd service file (or
equivalent) matches what is in the venv. I don't know
kali well enough to know how it handles startup files.
Look at your weewx-venv/bin symlinks and you will
likely see that python3 resolves to whatever your os
python version is, and 'not' a specific version that
was there when you set up the venv. You might be able
to just fix the symlink therein to point to python3.12
(to match the venv) if you have multiple python
versions on the os. If that doesn't work you'll need
to reinstall your venv contents and fix up your
startup file to match.
This is not a weewx bug. It is a (massive) pain in
the neck non-feature from the python team.
On Monday, October 20, 2025 at 1:55:15 PM UTC-7 Dan
Hinckley wrote:
Starting weewx throws this error:
Oct 20 16:50:47 kali-linux-2024-2 systemd[1]:
Started weewx.service - WeeWX weather system.
Oct 20 16:50:48 kali-linux-2024-2 python3[2820]:
/home/house/weewx-venv/bin/python3: can't open
file
'/home/house/weewx-venv/lib/python3.12/site-packages/weewxd.py':
[Errno 2] No such file or directory
Which is accurate. That venv has python 3.13
How do I cure this?
--
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 visit
https://groups.google.com/d/msgid/weewx-user/2d424f13-0657-4366-bb69-167822a8f926n%40googlegroups.com
<https://groups.google.com/d/msgid/weewx-user/2d424f13-0657-4366-bb69-167822a8f926n%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 visit
https://groups.google.com/d/msgid/weewx-user/31f348fa-d630-4caf-99d1-877ac006b2a3n%40googlegroups.com
<https://groups.google.com/d/msgid/weewx-user/31f348fa-d630-4caf-99d1-877ac006b2a3n%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 visit
https://groups.google.com/d/msgid/weewx-user/c6f40676-fac0-4d8a-a96d-98f6e8af57ba%40hillsandlakes.com.