This discussion is archived
1 2 Previous Next 15 Replies Latest reply: Sep 2, 2013 5:46 AM by Schattenzeit RSS

yum error  "ImportError: No module named cElementTree" after proposed update

Schattenzeit Newbie
Currently Being Moderated

Hello from Berlin!

I  have a problem after setting up a new machine, installing the database I made  an update (please scroll down for the updates I made).

Maybe "ImportError: No module named cElementTree" is the reason why  I can not use yum

anymore. New installation of the machine is the last option, cause the database is installed and 1,4 TB loaded.

I hope one of the specialists can help me  Thanks a lot!!


[oracle@hive01 unix]$ python --version

Python 2.6.6

[oracle@hive01 unix]$ uname -r



I got this error:


[root@stat89 oracle]# yum -y install ant

Plugin "refresh-packagekit" can't be imported

Loaded plugins: security

Traceback (most recent call last):

  File "/usr/bin/yum", line 29, in <module>

yummain.user_main(sys.argv[1:], exit_code=True)

  File "/usr/share/yum-cli/", line 285, in user_main

errcode = main(args)

  File "/usr/share/yum-cli/", line 136, in main

result, resultmsgs = base.doCommands()

  File "/usr/share/yum-cli/", line 434, in doCommands


  File "/usr/lib/python2.6/site-packages/yum/", line 99, in _getTs


  File "/usr/lib/python2.6/site-packages/yum/", line 110, in _getTsInfo

pkgSack = self.pkgSack

  File "/usr/lib/python2.6/site-packages/yum/", line 887, in <lambda>

pkgSack = property(fget=lambda self: self._getSacks(),

  File "/usr/lib/python2.6/site-packages/yum/", line 669, in _getSacks


  File "/usr/lib/python2.6/site-packages/yum/", line 309, in populateSack

sack.populate(repo, mdtype, callback, cacheonly)

  File "/usr/lib/python2.6/site-packages/yum/", line 165, in populate

if self._check_db_version(repo, mydbtype):

  File "/usr/lib/python2.6/site-packages/yum/", line 223, in _check_db_version

return repo._check_db_version(mdtype)

  File "/usr/lib/python2.6/site-packages/yum/", line 1256, in _check_db_version

repoXML = self.repoXML

  File "/usr/lib/python2.6/site-packages/yum/", line 1455, in <lambda>

repoXML = property(fget=lambda self: self._getRepoXML(),

  File "/usr/lib/python2.6/site-packages/yum/", line 1447, in _getRepoXML


  File "/usr/lib/python2.6/site-packages/yum/", line 1437, in _loadRepoXML

return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes())

  File "/usr/lib/python2.6/site-packages/yum/", line 1412, in _groupLoadRepoXML

if self._commonLoadRepoXML(text):

  File "/usr/lib/python2.6/site-packages/yum/", line 1240, in _commonLoadRepoXML

self._repoXML = self._parseRepoXML(result)

  File "/usr/lib/python2.6/site-packages/yum/", line 1036, in _parseRepoXML

return repoMDObject.RepoMD(, local)

  File "/usr/lib/python2.6/site-packages/yum/", line 124, in __init__


  File "/usr/lib/python2.6/site-packages/yum/", line 140, in parse

parser = iterparse(infile)

  File "/usr/lib/python2.6/site-packages/yum/", line 1141, in cElementTree_iterparse


  File "/usr/lib/python2.6/site-packages/yum/", line 1136, in _cElementTree_import

import cElementTree

ImportError: No module named cElementTree

[root@stat89 oracle]#



Changes I made:


[root@stat89 ~]# yum history

Plugin "refresh-packagekit" can't be imported

Loaded plugins: security

ID     | Login user               | Date and time    | Action(s)      | Altered


     4 | System <unset>           | 2013-08-29 10:42 | Update         | 14

     3 | root <root>              | 2013-08-29 07:39 | I, U           | 19

     2 | root <root>              | 2013-08-29 07:36 | Install        | 1

     1 | System <unset>           | 2013-08-28 22:48 | Install        | 1199

Warning: RPMDB altered outside of yum.

history list

[root@stat89 ~]#


The last  change ,  I think change ID 4 is the reason why  I can not use yum anymore for Install:


[root@stat89 ~]# yum history info 4

Plugin "refresh-packagekit" can't be imported

Loaded plugins: security

Transaction ID : 4

Begin time     : Thu Aug 29 10:42:04 2013

Begin rpmdb    : 1212:0d0b575cedceac38df1b923bccaca9d0219b0fe0

End time       :            10:42:07 2013 (3 seconds)

End rpmdb      : 1212:15f89a764b5413ee12323e760aac7bc6d7b1b9a4 **

User           : System <unset>

Return-Code    : Success

Transaction performed with:

    Updated       rpm-4.8.0-27.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Updated       yum-3.2.29-30.0.1.el6.noarch @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Installed     yum-metadata-parser-1.1.2-16.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

Packages Altered:

    Updated PackageKit-0.5.8-20.0.1.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update             0.5.8-21.0.1.el6.x86_64                  @ol6_latest

    Updated PackageKit-device-rebind-0.5.8-20.0.1.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update 0.5.8-21.0.1.el6.x86_64 @ol6_latest

    Updated PackageKit-glib-0.5.8-20.0.1.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update                  0.5.8-21.0.1.el6.x86_64             @ol6_latest

    Updated PackageKit-gstreamer-plugin-0.5.8-20.0.1.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update 0.5.8-21.0.1.el6.x86_64 @ol6_latest

    Updated PackageKit-gtk-module-0.5.8-20.0.1.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update                        0.5.8-21.0.1.el6.x86_64       @ol6_latest

    Updated PackageKit-yum-0.5.8-20.0.1.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update                 0.5.8-21.0.1.el6.x86_64              @ol6_latest

    Updated PackageKit-yum-plugin-0.5.8-20.0.1.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update 0.5.8-21.0.1.el6.x86_64 @ol6_latest

    Updated rpm-4.8.0-27.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update 4.8.0-32.el6.x86_64                             @ol6_latest

    Updated rpm-libs-4.8.0-27.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update           4.8.0-32.el6.x86_64                        @ol6_latest

    Updated rpm-python-4.8.0-27.el6.x86_64 @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update             4.8.0-32.el6.x86_64                      @ol6_latest

    Updated yum-3.2.29-30.0.1.el6.noarch @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update 3.2.29-40.0.1.el6.noarch                        @ol6_latest

    Updated yum-plugin-security-1.1.30-14.el6.noarch @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update 1.1.30-14.0.1.el6.noarch @ol6_latest

    Updated yum-rhn-plugin-0.9.1-40.0.1.el6.noarch              @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update                 0.9.1-43.0.1.el6.noarch              @ol6_latest

    Updated yum-utils-1.1.30-14.el6.noarch @anaconda-OracleLinuxServer-201206261930.x86_64/6.3

    Update 1.1.30-14.0.1.el6.noarch                  @ol6_latest

history info

[root@stat89 ~]#

1 2 Previous Next


  • Correct Answers - 10 points
  • Helpful Answers - 5 points