Bug 387281 - yum error cElementTree can not update
Summary: yum error cElementTree can not update
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 8
Hardware: i386
OS: Linux
low
high
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-16 17:12 UTC by J Hoffman
Modified: 2014-01-21 23:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-12 15:44:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description J Hoffman 2007-11-16 17:12:04 UTC
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:

Comment 1 J Hoffman 2007-11-28 19:15:03 UTC
I tried installing cElementtree from fc3 which is the last one I could find and
still receive the same error...

Comment 2 Seth Vidal 2007-11-28 20:22:55 UTC
could you please run this and let us see the output?

rpm -q yum python rpm fedora-release

thanks


Comment 3 J Hoffman 2007-11-29 19:42:38 UTC
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


Comment 4 J Hoffman 2007-11-29 19:45:56 UTC
I then removed fedora-release-7-3 and still have the same issue

Comment 5 Seth Vidal 2007-12-06 16:03:21 UTC
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.

Comment 6 J Hoffman 2007-12-19 22:36:56 UTC
Fixed it!

Edit all *.py files in the /usr/lib/python2.5/site-packages directory that
contain cElementTree to ElementTree.

Good to go.

Comment 7 Seth Vidal 2007-12-19 23:34:33 UTC
there should be no files with cElementTree in them in f8.




Note You need to log in before you can comment on or make changes to this bug.