Code:
grep -H '' /etc/*release /var/cpanel/envtype
/etc/redhat-release:CentOS release 5.2 (Final)
/var/cpanel/envtype:standard
Was Python manually compiled from source?
Yes
Code:
/usr/bin/python -V
Python 2.6.4
Code:
rpm -qf /usr/bin/python
python-2.4.3-21.el5
Code:
/usr/local/bin/python -V
Python 2.6.4
Code:
rpm -qf /usr/local/bin/python
file /usr/local/bin/python is not owned by any package
Code:
rpm -qa --qf "%{name}-%{version}-%{release}.%{arch}.rpm\n" | grep -i "^python\|yum" | sort
python-2.4.3-21.el5.i386.rpm
python-devel-2.4.3-21.el5.i386.rpm
python-docs-2.4.3-1.1.noarch.rpm
python-elementtree-1.2.6-5.i386.rpm
python-iniparse-0.2.3-4.el5.noarch.rpm
python-optik-1.4-2.noarch.rpm
python-sqlite-1.1.7-1.2.1.i386.rpm
python-tools-2.4.3-21.el5.i386.rpm
python-urlgrabber-3.1.0-2.noarch.rpm
python-urlgrabber-3.1.0-5.el5.noarch.rpm
yum-3.2.22-20.el5.centos.noarch.rpm
yum-arch-2.2.2-2.el5.kb.noarch.rpm
yum-fastestmirror-1.1.10-9.el5.centos.noarch.rpm
yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
yum-metadata-parser-1.1.2-2.el5.i386.rpm
yum-updatesd-0.9-2.el5.noarch.rpm
Code:
yum check-update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.4 (r264:75706, Jan 26 2010, 04:26:58)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq