Oh, and I modified weewxd.py thusly: rob@pi4:/etc/weewx $ cat /usr/bin/weewxd #!/bin/sh app=weewxd.py
# Get the weewx location and interpreter. Default to something sane, but # look for overrides from the system defaults. WEEWX_BINDIR=/usr/share/weewx *WEEWX_PYTHON=/usr/bin/python3.11* [ -r /etc/default/weewx ] && . /etc/default/weewx exec "$WEEWX_PYTHON" $WEEWX_PYTHON_ARGS "$WEEWX_BINDIR/$app" "$@" On Wednesday, October 15, 2025 at 4:35:20 PM UTC-7 Rob Cranfill wrote: > On Wednesday, October 15, 2025 at 12:19:49 PM UTC-7 vince wrote: > > You have some kind of non-standard legacy python installation. Notice the > path to python below ? > > .. > > > Oct 14 17:08:55 pi4 weewxd[3538]: INFO __main__: Located at: > /usr/local/bin/python3 > > > I suspect if you used /usr/bin/python3 it would work. > > > Yes! That's got to be it. But I'm having trouble getting WeeWX to use the > Python I want. > > I start it with this service file: > > rob@pi4:/etc/weewx $ cat /lib/systemd/system/weewx.service > # systemd service configuration file for WeeWX > > # fixed after upgrade to WeeWX 5.2? > # using /usr/share/weewx/weewxd.py > > [Unit] > Description=WeeWX > Documentation=https://weewx.com/docs > Requires=time-sync.target > After=time-sync.target > Wants=network-online.target > After=network-online.target > > [Service] > # was: ExecStart=weewxd /etc/weewx/weewx.conf > > *ExecStart=/usr/bin/python3.11 /usr/share/weewx/weewxd.py > /etc/weewx/weewx.conf*StandardOutput=null > StandardError=journal+console > RuntimeDirectory=weewx > RuntimeDirectoryMode=775 > User=weewx > Group=weewx > > [Install] > WantedBy=multi-user.target > > > wherein I specify the path to Python3.11 But in the logs, nothing has > changed: > > Oct 15 16:28:55 pi4 systemd[1]: Started weewx.service - WeeWX. > Oct 15 16:28:56 pi4 weewxd[615557]: INFO __main__: Initializing weewxd > version 5.2.0 > Oct 15 16:28:56 pi4 weewxd[615557]: INFO __main__: Command line: > /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf > Oct 15 16:28:56 pi4 weewxd[615557]: INFO __main__: Using Python: 3.13.1 > (main, Dec 12 2024, 15:48:42) [GCC 12.2.0] > Oct 15 16:28:56 pi4 weewxd[615557]: INFO __main__: Located at: > /usr/local/bin/python3 > > > If I use that ExecStart (*/usr/bin/python3.11 /usr/share/weewx/weewxd.py > /etc/weewx/weewx.conf) *from the command line, it works fine. > > Thoughts? I'll go read the "starting weewx" docs again..... > > > -- 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/16191003-8640-4b4d-a294-0c86e5338122n%40googlegroups.com.
