Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
share|improve this question

1 Answer 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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.