On Thursday, November 5, 2020 at 8:42:11 AM UTC-5, Jared wrote: > > Hi all, > > I'm looking to upgrade to 4.2.0 to get off legacy Python 2. I'm running > CentOS 7.8 and I'm looking for guidance on how to deal with Python. I'm > assuming upgrading WeeWX alone won't work since "python" currently maps to > Python 2.7. I'm worried that if I install Python 3 it still won't work > unless I do some symlink acrobatics. I'm not very proficient in Linux, and > Python version weirdness is not easy to untangle. >
how did you install weewx on the centos7 system? did you use the rpm/yum or did you do a setup.py install? if you did the rpm/yum install, then you can do this: 1) install python3 and the weewx python3 pre-requisites 2) change /etc/default/weewx to use python3 instead of python beware that (1) can be a hassle on centos7. you will probably want to update python using pip, not rpm/yum. so that means you might want to install your own python3, not a system-wide python3. ymmv. it is not difficult, but there are a lot of rabbit holes that dead end in places that you do not want to be. if you did a setup.py install, then you can do (1) then reinstall weewx using 'python3 install' instead of 'python install'. be sure to make a snapshot of the /home/weewx directory first (in particular, make a copy of your database, skins, and user directory) > I'd rather upgrade WeeWx first and then move to CentOS 8 down the line, > but if it's significantly easier to start fresh and jump to CentOS 8 now, I > can bring my customizations over to a fresh install. It would be > time-consuming, but should not be challenging. > > if your intent is to move to centos8, then you might want take the leap. just install centos8, install weewx, then copy your db/skins/user stuff from the old weewx installation. this assumes that you have a new, separate computer on which to install centos8. i would avoid upgrading centos7 to centos8 - that process can leave turds that make a mess (or at least cause confusion) later on. m -- 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 on the web visit https://groups.google.com/d/msgid/weewx-user/9314f759-66bc-44eb-ace9-509d27c1cd77o%40googlegroups.com.
