I did ... # Create the virtual environment python3 -m venv ~/weewx-venv # Activate the WeeWX virtual environment source ~/weewx-venv/bin/activate # Install WeeWX into the virtual environment python3 -m pip install weewx
On Monday, June 24, 2024 at 5:23:27 PM UTC-7 Mark Hahn wrote: > > Activate the venv first > I followed the pip instructions carefully so I'm 99% sure I did "source > ~/weewx-venv/bin/activate". > > On Monday, June 24, 2024 at 5:04:16 PM UTC-7 vince wrote: > >> You used pip. Activate the venv first. Always. >> >> On Monday, June 24, 2024 at 5:01:38 PM UTC-7 Mark Hahn wrote: >> >>> As suggested I did a separate install using pip. It was very quick. >>> "weectl device --clear-memory" fixed my davis problem. >>> >>> I decided to run the new 5.0. I copied over the conf file. I didn't >>> need to copy the db file. Weewxd works great. >>> >>> But now I want to run it as a daemon. The pip install instructions said >>> to use "sh ~/weewx-data/scripts/setup-daemon.sh". I couldn't run this >>> because weewx-data is in the .env folder, not in root. I went to the >>> weewx-data in .env and ran /setup-daemon.sh. I had to change the location >>> inside that script to also use weewx-data in .env. >>> >>> The daemon install gave no errors but when I run "systemctl start weewx" >>> I get this error ... >>> >>> /etc/systemd/system/weewx.service:12: Executable "WEEWX_PYTHON" not >>> found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >>> weewx.service: Unit configuration has fatal error, unit will not be >>> started. >>> >>> Can anyone tell me how to fix this? Meanwhile I'll run in not as a >>> daemon but obviously I've got to fix this. >>> On Monday, June 24, 2024 at 11:49:27 AM UTC-7 michael.k...@gmx.at wrote: >>> >>>> >>>> I'd recommend you to leave your old installation untouched, install >>>> weewx5 the pip way in a venv together with your extensions, a copy of your >>>> database and config and see if it works out. When the new installation >>>> works as desired, just switch. >>>> Mark Hahn schrieb am Montag, 24. Juni 2024 um 20:10:20 UTC+2: >>>> >>>>> I should say that I want to upgrade to get commands like "weectl >>>>> device --dump". Are there equivalent commands in 4.10.2? I need >>>>> those >>>>> commands to follow instructions in " Troubleshooting the Davis >>>>> Vantage station" page of wiki. My other post here about my davis >>>>> troubles >>>>> is at https://groups.google.com/g/weewx-user/c/DMByZT6hyFM. >>>>> >>>>> On Monday, June 24, 2024 at 11:05:06 AM UTC-7 Mark Hahn wrote: >>>>> >>>>>> I installed weewx long ago (10 yrs?). It is version 4.10.2. I >>>>>> don't have any idea how I installed it. The is nothing related to weewx >>>>>> in >>>>>> my /root directory. The is no weewx directory in /home. >>>>>> >>>>>> Any ideas on how I should upgrade to 5.0? Also, are there breaking >>>>>> changes from 4.10.2 to 5.0? >>>>>> >>>>> -- 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/4b3bf13f-f54b-4d21-a65a-8f63f1954b78n%40googlegroups.com.