2

This is driving me bananas! After a recent update in Fedora 13 64bit, my yum is gone:

$> yum 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.

I tried looking for an RPM yum package - to install yum. I went to the Fedora site: http://fedoraproject.org/wiki/Tools/yum

Call me blind but I cannot find it anywhere on that page!

Most of the solutions suggest repairing yum... with yum! But I don't have yum? Yum yum yum? :<

Any help?

Here are some outputs for rpm commands:

$> rpm -ql python | grep "site-packages$"
/usr/lib/python2.6/site-packages
/usr/lib64/python2.6/site-packages
$> rpm -ql yum | grep "site-packages/yum$"
/usr/lib/python2.6/site-packages/yum

1 Answer 1

1

This can happen if your version of python doesn't match the version of yum properly. Run rpm -ql python | grep "site-packages$" and rpm -ql yum | grep "site-packages/yum$" and compare the output to make sure that the two are in sync.

15
  • Hi thanks, I've updated my question with the output. Looks the same Nov 15, 2010 at 16:19
  • @drozzy: Does rpm -V yum output anything? Nov 15, 2010 at 16:21
  • No, rpm -V yum does and shows nothing. Nov 15, 2010 at 16:26
  • Well, it seems I overwrote my python binary with a custom complied "python altinstall". My original python was /usr/lib64/python2.6. Any way I can get back my original executable in /usr/bin/python? Nov 15, 2010 at 17:46
  • cd /usr/bin && rm python && ln -s python2.6 python Nov 15, 2010 at 17:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .