Hi,

I'm trying to do a new Weewx installation on CentOS 8 and I'm having some 
installation issues regarding python that I can't figure out.  I know the 
basics of Linux but am not a veteran.  I'm following the instructions on 
the http://www.weewx.com/docs/redhat.htm page.

I installed as many of the prerequisites as I could.  None of the commands 
worked as-is.  First I installed python 2 with *sudo yum install python2* 
and then I was able to run *sudo yum install python2-cheetah* and *sudo 
pip2 install pyserial* and *sudo pip2 install pyusb*.  The only other 
package name I got a result for was on *sudo yum install python2-setuptools* 
but it said this was installed already.

At this point I figured I would at least try to run the Weewx install, so I 
got the .rpm file and attempted to install it with *rpm -i*.  But it failed 
all python dependencies.

error: Failed dependencies:
        python is needed by weewx-3.9.2-1.rhel.noarch
        python-cheetah is needed by weewx-3.9.2-1.rhel.noarch
        python-configobj is needed by weewx-3.9.2-1.rhel.noarch
        python-imaging is needed by weewx-3.9.2-1.rhel.noarch
        python-setuptools is needed by weewx-3.9.2-1.rhel.noarch


I'm sure something is goofy with having by python2 and python3 on the same 
OS.  I couldn't run *python* by itself, so I looked around as best I could 
and wound up running *sudo alternatives --set python /usr/bin/python2* but 
this didn't make the rpm any happier.

The output of *whereis python* returns:

python: /usr/bin/python2.7 /usr/bin/python /usr/lib/python3.6 
/usr/lib/python2.7 /usr/lib64/python3.6 /usr/lib64/python2.7 
/usr/include/python3.6m /usr/include/python2.7 
/usr/share/man/man1/python.1.gz


Other potentially useful info:

[me@SERVER ~]$ *ls -alh /usr/bin | grep python*
lrwxrwxrwx   1 root root      36 Oct 17 07:32 python -> 
/etc/alternatives/unversioned-python
lrwxrwxrwx   1 root root       9 Oct  8 17:08 python2 -> python2.7
-rwxr-xr-x   1 root root    9.1K Oct  8 17:08 python2.7
lrwxrwxrwx   1 root root      24 Oct 17 07:32 unversioned-python -> 
/etc/alternatives/python
[me@SERVER ~]$ *ls -alh /usr/lib | grep python*
drwxr-xr-x    3 root root   27 Oct 16 14:06 python2.7
drwxr-xr-x.   3 root root   27 Oct  7 14:00 python3.6
[me@SERVER ~]$


I figure at this point any tinkering will only make the problem worse, so I 
thought it was a good time to reach out.


Thanks.

-- 
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/7162c81f-9634-4a1c-bd79-a388615d192e%40googlegroups.com.

Reply via email to