Maybe. I suppose a potential change would be in how weewx generates its ExecStart string.
Installing weewx via "python3 -m venv weewx-venv" generates the following:
ExecStart=/home/pi/weewx-venv/bin/python3 /home/pi/weewx-venv/lib/python3.9/site-packages/weewxd.py /home/pi/weewx-data/weewx.conf
But... if I had installed weewx via "python3.9 -m venv weewx-venv" there's a different result....
ExecStart=/home/pi/weewx-venv/bin/python3.9 /home/pi/weewx-venv/lib/python3.9/site-packages/weewxd.py /home/pi/weewx-data/weewx.conf
So for this second example I could 'add' a new python 3.12 to my os safely 'if' the old 3.9 was left unaltered. I don't know if every os would do so, however. This might be os specific.
I guess there are a couple options for potential change:
- make the ExecStart string generation smarter and figure out that python3 points to python3.9 when you follow the symlinks
- or change the procedure or add a note suggesting using pythonX.Y (whatever your os is using) to protect against this situation
On Monday, June 10, 2024 at 3:20:59 AM UTC-7 steepleian wrote:
Tom,
I know of another user who had an identical problem with Manjaro when Python was updated to 3.12. With a self contained virtual environment I was surprised this happened. Is this worth further investigation?
I.
there's still a problem with Pillow
Il giorno lunedì 10 giugno 2024 alle 09:39:40 UTC+2 Andrea ha scritto:
Hi Tom.
Yes, weewx was running since February. Every Weeks I restart the PC and always weewx running normal. Yesterday, suddenly, doesn't work anymore.
I use virtual environment with the command source.... and then launch weewxd.
thanks
Andrea
Il giorno domenica 9 giugno 2024 alle 19:32:32 UTC+2 Tom Keffer ha scritto:
Your message is a little confusing. From what you wrote, it looks like you created a virtual environment, then activated it, then tried to run weewxd.
However, the normal sequence is to create the virtual environment, activate it, install WeeWX, then run weewxd.
Did you install WeeWX?
-tk
hello,
after restart the PC, I tried to start weewx with this steps:
python3 -m venv ~/weewx-venv
source ~/weewx-venv/bin/activate
weewxd &
but I received the message
from weewxd import main
ModuleNotFoundError: No module named 'weewxd'
Weewx has been running up to before restart the PC.
I use Manjaro and weewx 5.0
Thanks for your help
Andrea
--
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
weewx-user+...@googlegroups.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
weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/4e27ed84-7151-4f70-b88c-4450461f97afn%40googlegroups.com.