No module named yum after Fedora 10 to 11 upgrade

After upgrading from Fedora 10 to 11 using the following instructions, I encountered the errors detailed below.

http://www.cyberciti.biz/faq/upgrade-fedora-11/

Upon boot, immediately encountered the following error.

?Traceback (most recent call last):
? File “/usr/sbin/yum-updatesd” . line 41. in <module>
??? from yum.config import BaseConfig. Option, IntOption, ListOption, BoolOption
ImportError: No module name yum.config

Upon trying to run #yum update , I encountered the following error.

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.6 (r26:66714, Mar 17 2009, 11:44:21)
[GCC 4.4.0 20090313 (Red Hat 4.4.0-0.26)]

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

 

The following rpm -qa output reveals that the Fedora upgrade left remnants of the yum for Fedora 10.? By downloading the Fedora 11 yum rpm’s and installing them, the problem was resolved.

# rpm -qa | grep yum
yum-utils-1.1.22-1.fc10.noarch
yum-3.2.23-3.fc10.noarch

—-

Below command, where you prefix each rpm file with the location of the repository where you’re downloading them from.
# wget yum-3.2.23-3.fc11.noarch.rpm? yum-utils-1.1.22-1.fc11.noarch.rpm

Then, install the downloaded rpm’s.

# rpm -Uvh yum*.rpm

Preparing…??????????????? ########################################### [100%]
?? 1:yum??????????????????? ########################################### [ 50%]
?? 2:yum-utils????????????? ########################################### [100%]

But alas, there was one more error encountered with yum when running a #yum update.

ERROR : File /var/cache/yum/updates/metalink.xml does not exist

Had to do a #yum clean all
which fixed that error message.