Red Hat Bugzilla – Bug 114059
after upgrade python 2.2 to 2.3 yum python apps can't find there modules
Last modified: 2007-11-30 17:10:35 EST
Description of problem:
after updating python 2.2 to 2.3 from fc2 dev list
python programmes are broken.
for some reason python 2.3 can't find the modules that where installed
during python 2.2
reinstalling the modules makes python 2.3 find them
example yum is broken now
reinstalling rpm-python and libxml2-python was needed to fix it.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum upgrade python
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
File "/usr/share/yum/yummain.py", line 21, in ?
File "/usr/share/yum/clientStuff.py", line 18, in ?
ImportError: No module named rpm
yum to work
I don't think there is an easy fix for this. Python 2.2 modules are
installed in a different directory than the 2.3 ones.
So are you saying that since the fix is not easy upgrades are to
remain broken? This response makes no sense. Are we only fixing the
easy parts? What am I missing?
No, I wish I could say that though :-)
The current transition from Fedora Core 1 to Fedora Core 2 cannot be
safely performed with yum, the python upgrade being one of the
reasons. The core problem is the fact yum (and the modules yum use) do
not enforce the dependency on python 2.2; if that was the case, then
yum would have realized it breaks a dependency, it would have tried to
update itself and then everything would have been fine.
So, until we fix the python dependencies for all the modules (and not
only python itself), I cannot think of a way to not break python 2.2
compiled modules when we upgrade python.
Does my two-line comment make more sense now?
Yes it does. Thank you for the explaination.
*** Bug 120616 has been marked as a duplicate of this bug. ***