1 2 Previous Next 15 Replies Latest reply: Sep 2, 2013 7:46 AM by Schattenzeit RSS

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

    Schattenzeit

      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
      2.6.39-200.24.1.el6uek.x86_64

       

       


      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/yummain.py", line 285, in user_main

      errcode = main(args)

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

      result, resultmsgs = base.doCommands()

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

      self._getTs(needTsRemove)

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

      self._getTsInfo(remove_only)

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

      pkgSack = self.pkgSack

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

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

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

      self.repos.populateSack(which=repos)

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

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

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

      if self._check_db_version(repo, mydbtype):

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

      return repo._check_db_version(mdtype)

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

      repoXML = self.repoXML

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

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

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

      self._loadRepoXML(text=self)

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

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

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

      if self._commonLoadRepoXML(text):

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

      self._repoXML = self._parseRepoXML(result)

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

      return repoMDObject.RepoMD(self.id, local)

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

      self.parse(srcfile)

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

      parser = iterparse(infile)

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

      _cElementTree_import()

        File "/usr/lib/python2.6/site-packages/yum/misc.py", 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