On Wed, 2004-03-24 at 15:06 -0500, salvatore wrote: > > Many options. > > 1) edit /usr/bin/yum to use #!/usr/bin/python2.3 > > 2) cp /usr/bin/python2.3 /usr/bin/python > > 3) something cleaner? is this managed by alternatives? not sure. > > > > So now Ive broken Yum: > > *** > [salvatore@incom salvatore]$ yum check-update > Traceback (most recent call last): > File "/usr/bin/yum", line 22, in ? > import yummain > File "/usr/share/yum/yummain.py", line 22, in ? > import clientStuff > File "/usr/share/yum/clientStuff.py", line 18, in ? > import rpm > ImportError: No module named rpm > *** > > There were many /usr/bin/python listsings, namely: > /usr/bin/python > /usr/bin/python2 > /usr/bin/python2.2 > /usr/bin/python2.3 > > I renamed /usr/bin/python2 to /usr/bin/python2_old and > /usr/bin/python2.2 to /usr/bin/python2.2_old > Tried both copying /usr/bin/python2.3 to /usr/bin/python and > (separately) telling /usr/bin/yum to use /usr/bin/python2.3; neither worked. > you have dug a deep, deep hole. you're best off reinstalling all the python packages and removing all the file moves you did what's broken is that yum can't find an rpm module in the python that it is using. -sv