Originally posted by: KiloBravo
Updating python on a working yum server/client from 2.7.10-1 to 2.7.13-1 breaks Yum.
The current workaround to fix yum is to downgrade python via:
# rpm -Uvh --oldpackage python-2.7.10-1.aix6.1.ppc.rpm python-devel-2.7.10-1.aix6.1.ppc.rpm python-tools-2.7.10-1.aix6.1.ppc.rpm
Failure log:
# yum update python
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package python.ppc 0:2.7.10-1 will be updated
--> Processing Dependency: python = 2.7.10 for package: python-tools-2.7.10-1.ppc
--> Processing Dependency: python = 2.7.10 for package: python-devel-2.7.10-1.ppc
---> Package python.ppc 0:2.7.13-1 will be an update
--> Running transaction check
---> Package python-devel.ppc 0:2.7.10-1 will be updated
---> Package python-devel.ppc 0:2.7.13-1 will be an update
---> Package python-tools.ppc 0:2.7.10-1 will be updated
---> Package python-tools.ppc 0:2.7.13-1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Updating:
python ppc 2.7.13-1 PHS_AIX_Toolbox 20 M
Updating for dependencies:
python-devel ppc 2.7.13-1 PHS_AIX_Toolbox 11 k
python-tools ppc 2.7.13-1 PHS_AIX_Toolbox 12 k
Transaction Summary
====================================================================================================================================
Upgrade 3 Packages
Total download size: 20 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): python-2.7.13-1.aix6.1.ppc.rpm | 20 MB 00:00:01
(2/3): python-devel-2.7.13-1.aix6.1.ppc.rpm | 11 kB 00:00:00
(3/3): python-tools-2.7.13-1.aix6.1.ppc.rpm | 12 kB 00:00:00
------------------------------------------------------------------------------------------------------------------------------------
Total 11 MB/s | 20 MB 00:01
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : python-2.7.13-1.ppc 1/6
Updating : python-devel-2.7.13-1.ppc 2/6
Updating : python-tools-2.7.13-1.ppc 3/6
Cleanup : python-tools-2.7.10-1.ppc 4/6
Cleanup : python-devel-2.7.10-1.ppc 5/6
Cleanup : python-2.7.10-1.ppc 6/6
Updated:
python.ppc 0:2.7.13-1
Dependency Updated:
python-devel.ppc 0:2.7.13-1 python-tools.ppc 0:2.7.13-1
Complete!
# yum search python
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
errcode = main(args)
File "/opt/freeware/share/yum-cli/yummain.py", line 140, in main
result, resultmsgs = base.doCommands()
File "/opt/freeware/share/yum-cli/cli.py", line 440, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/opt/freeware/share/yum-cli/yumcommands.py", line 699, in doCommand
return base.search(extcmds)
File "/opt/freeware/share/yum-cli/cli.py", line 1048, in search
for (po, keys, matched_value) in matching:
File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 2532, in searchGenerator
for sack in self.pkgSack.sacks.values():
File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 900, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 681, in _getSacks
self.repos.populateSack(which=repos)
File "/opt/freeware/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 164, in populate
if self._check_db_version(repo, mydbtype):
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 222, in _check_db_version
return repo._check_db_version(mdtype)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1264, in _check_db_version
repoXML = self.repoXML
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1463, in <lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1455, in _getRepoXML
self._loadRepoXML(text=self)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1445, in _loadRepoXML
return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes())
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1420, in _groupLoadRepoXML
if self._commonLoadRepoXML(text):
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1248, in _commonLoadRepoXML
self._repoXML = self._parseRepoXML(result)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1044, in _parseRepoXML
return repoMDObject.RepoMD(self.id, local)
File "/opt/freeware/lib/python2.7/site-packages/yum/repoMDObject.py", line 124, in __init__
self.parse(srcfile)
File "/opt/freeware/lib/python2.7/site-packages/yum/repoMDObject.py", line 140, in parse
parser = iterparse(infile)
File "/opt/freeware/lib/python2.7/site-packages/yum/misc.py", line 1188, in cElementTree_iterparse
_cElementTree_import()
File "/opt/freeware/lib/python2.7/site-packages/yum/misc.py", line 1183, in _cElementTree_import
import cElementTree
ImportError: No module named cElementTree
# yum info python
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
errcode = main(args)
File "/opt/freeware/share/yum-cli/yummain.py", line 140, in main
result, resultmsgs = base.doCommands()
File "/opt/freeware/share/yum-cli/cli.py", line 436, in doCommands
self._getTs(needTsRemove)
File "/opt/freeware/lib/python2.7/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/opt/freeware/lib/python2.7/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 900, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 681, in _getSacks
self.repos.populateSack(which=repos)
File "/opt/freeware/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 164, in populate
if self._check_db_version(repo, mydbtype):
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 222, in _check_db_version
return repo._check_db_version(mdtype)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1264, in _check_db_version
repoXML = self.repoXML
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1463, in <lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1455, in _getRepoXML
self._loadRepoXML(text=self)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1445, in _loadRepoXML
return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes())
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1420, in _groupLoadRepoXML
if self._commonLoadRepoXML(text):
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1248, in _commonLoadRepoXML
self._repoXML = self._parseRepoXML(result)
File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1044, in _parseRepoXML
return repoMDObject.RepoMD(self.id, local)
File "/opt/freeware/lib/python2.7/site-packages/yum/repoMDObject.py", line 124, in __init__
self.parse(srcfile)
File "/opt/freeware/lib/python2.7/site-packages/yum/repoMDObject.py", line 140, in parse
parser = iterparse(infile)
File "/opt/freeware/lib/python2.7/site-packages/yum/misc.py", line 1188, in cElementTree_iterparse
_cElementTree_import()
File "/opt/freeware/lib/python2.7/site-packages/yum/misc.py", line 1183, in _cElementTree_import
import cElementTree
ImportError: No module named cElementTree