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.
