Hi Graham Thanks for that and I understand all of what you are saying - except I have no idea whereabouts in /etc/init.d/weewx to change to make it use Python3. I thought I might find the line command line containing weewxd in there somewhere but alas no (or I've done a "boy look"). And I know enough this part of the system to be dangerous, so I'll keep fingers off until I can actually figure this out! Still learning lots here so appreciate the patience and explanations :)
Colin On Sun, 3 May 2020 at 12:44, Graham Eddy <graham.e...@gmail.com> wrote: > as others have already mentioned you can instruct use of python3 either > (a) system-wide e.g. /etc/default or defaults > (b) startup e.g. /etc/init.d/weewx or /Library/LaunchDaemons/com > <http://LaunchDameons.com>.weewx.weewxd > (c) embedded e.g. shebang (insert #!python3 in first line of weewxd) > > my platform (macos) provides python2.7 native not python3.7 and i hesitate > to set system-wide in case it impacts some other platform-provided > utilities. i find startup approach inconvenient on macos so i usually use > embedded (shebang), in my case #!/opt/local/bin/python3.7 because that’s > where macports puts python3 > > On 3 May 2020, at 10:30 am, Colin Larsen <colin.lar...@gmail.com> wrote: > > Thanks Tom > > Well /etc/init.d/weewx is there and the other one isn't so I'll go with > that but to be honest the innards of that file is out of my depth. > > On Sun, 3 May 2020 at 12:20, Tom Keffer <tkef...@gmail.com> wrote: > >> You will have to edit whatever script you use to start weewx as a daemon. >> >> Look in /etc/init.d/weewx. If not there, then >> /etc/systemd/system/weewx.service. >> >> -tk >> >> On Sat, May 2, 2020 at 5:13 PM Colin Larsen <colin.lar...@gmail.com> >> wrote: >> >>> Hi all >>> >>> I know that this is buried somewhere in the threads of information, >>> sorry apologies for not being able to find it. >>> >>> I've just upgraded my Pi based station to Weewx 4.0 using the apt-get >>> method. Ihas Python3 installed but is still using Python2 as can be seen >>> here. I thought I had read that if Python3 was already installed then the >>> update would use that version - apparently not :) >>> >> > -- > 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/2BE0524D-D87A-45EB-8A45-A6ED93BD087B%40gmail.com > <https://groups.google.com/d/msgid/weewx-user/2BE0524D-D87A-45EB-8A45-A6ED93BD087B%40gmail.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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CACjxfUsK1bUg9xt0_ecvhQG3%3DYgMya%3DjeET_1YsvrxMCukBwoA%40mail.gmail.com.