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): python-2.3.3-1 How reproducible: Steps to Reproduce: 1. yum upgrade python 2. 3. Actual results: Traceback (most recent call last): File "/usr/bin/yum", line 22, in ? import yummain File "/usr/share/yum/yummain.py", line 21, in ? import clientStuff File "/usr/share/yum/clientStuff.py", line 18, in ? import rpm ImportError: No module named rpm Expected results: yum to work Additional info:
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. ***