Description of problem:Upgrading from F7 to f8 yum is broken. Version-Release number of selected component (if applicable): How reproducible:every time Steps to Reproduce: 1.[root@fedora etc]# yum -y upgrade There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named cElementTree 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.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq I have tried all the suggestions I can find and am still receiving this error. Also, there does not exist a python-elementtree any longer. Python import log [root@fedora etc]# python -d Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import yum Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 38, in <module> import comps File "/usr/lib/python2.5/site-packages/yum/comps.py", line 21, in <module> import cElementTree ImportError: No module named cElementTree >>> 2. 3. Actual results: Expected results:yum to upgrade from f7 to f8 Additional info:
I tried installing cElementtree from fc3 which is the last one I could find and still receive the same error...
could you please run this and let us see the output? rpm -q yum python rpm fedora-release thanks
Here you go.. rpm -q yum python rpm fedora-release yum-3.2.7-1.fc8 python-2.5.1-15.fc8 rpm-4.4.2.2-3.fc8 fedora-release-8-3 fedora-release-7-3
I then removed fedora-release-7-3 and still have the same issue
Do you have another version of python or any python modules anywhere on your system b/c there's nothing in the above which could be causing this. also run this: rpm -qa |grep python maybe you have some other leftover packages.
Fixed it! Edit all *.py files in the /usr/lib/python2.5/site-packages directory that contain cElementTree to ElementTree. Good to go.
there should be no files with cElementTree in them in f8.