Yum not working!!

HostYim

Verified User
Joined
Mar 12, 2011
Messages
10
[root@th01 download]# yum install xxxxxx
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named logging

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, Sep 3 2009, 15:37:12)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq

I getting this error after type in "Yum" command.
 
[root@th01 download]# yum install xxxxxx
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named logging

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, Sep 3 2009, 15:37:12)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq

I getting this error after type in "Yum" command.

Just install the OS provided python rpm . If you are usign centos , you will get it from mirror.centos.org
 
Just install the OS provided python rpm . If you are usign centos , you will get it from mirror.centos.org

Still not working

Results :
package rpm-python-4.4.2.3-18.el5.i386 is already installed

I'm using CentOS release 5.5
 
Remove the old one before installing the new one

Jeff

Hi Jeff,

it can't be uninstalled. Because, some packages still need python to work.

[root@th01 download]# rpm -e python-2.4.3-27.el5.i386
error: Failed dependencies:
libpython2.4.so.1.0 is needed by (installed) libsemanage-1.9.1-4.4.el5.i386
libpython2.4.so.1.0 is needed by (installed) rhythmbox-0.11.6-4.el5.i386
.
.
.
/usr/lib/python2.4 is needed by (installed) gamin-python-0.1.7-8.el5.i386


Regards,
Bright
 
# rpm -e -nodeps python-2.4.3-27.el5.i386
# man rpm
# man yum

Hi,

I just created a new box with Vmware with CentOS 5.5
and I just sftp and copy /usr/lib/python2.4/logging/ to the current machine.
I also copy /usr/lib/python2.4/site-packages/yum/

Surprisingly! it's work.

The problem was I lost all the files containing word "log" in the system.
 
Back
Top