I have problem while run yum
Code:
# yum
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.4.3 (#1, Oct 14 2009, 01:52:50)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
and when import yum from python
Code:
# python
Python 2.4.3 (#1, Oct 14 2009, 01:52:50)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yum
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named yum
Code:
# rpm -qa | grep yum
yum-3.2.19-18.el5.centos
yum-fastestmirror-1.1.18-2.fc10
yum-metadata-parser-1.1.2-2.el5
Code:
# rpm -qa | grep python
python-numeric-23.7-2.2.2
python-docs-2.4.3-1.1
gnome-python2-applet-2.16.0-2.el5
libselinux-python-1.33.4-5.el5
gnome-python2-desktop-2.16.0-2.el5
gnome-python2-2.16.0-1.fc6
gnome-python2-gtksourceview-2.16.0-2.el5
gnome-python2-gconf-2.16.0-1.fc6
gamin-python-0.1.7-8.el5
gnome-python2-libegg-2.14.2-6.el5
gnome-python2-gnomevfs-2.16.0-1.fc6
python-elementtree-1.2.6-5
python-urlgrabber-3.1.0-5.el5
gnome-python2-gnomeprint-2.16.0-2.el5
python-2.4.3-21.el5
libxml2-python-2.6.26-2.1.2.7
python-sqlite-1.1.7-1.2.1
python-ldap-2.2.0-2.1
gnome-python2-bonobo-2.16.0-1.fc6
dbus-python-0.70-7.el5
gnome-python2-extras-2.14.2-6.el5
audit-libs-python-1.6.5-9.el5
python-iniparse-0.2.3-4.el5
rpm-python-4.4.2.3-9.el5
Code:
# ls /usr/local/bin/ | grep python
python*
python2.4*
don't know how to solve this problem
and thanks for advice