Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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$"
$> rpm -ql yum | grep "site-packages/yum$"
share|improve this question

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.

share|improve this answer
Hi thanks, I've updated my question with the output. Looks the same – drozzy Nov 15 '10 at 16:19
@drozzy: Does rpm -V yum output anything? – Ignacio Vazquez-Abrams Nov 15 '10 at 16:21
No, rpm -V yum does and shows nothing. – drozzy Nov 15 '10 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? – drozzy Nov 15 '10 at 17:46
cd /usr/bin && rm python && ln -s python2.6 python – Ignacio Vazquez-Abrams Nov 15 '10 at 17:47

You must log in to answer this question.

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