<br><br><div><span class="gmail_quote">On 20/09/06, <b class="gmail_sendername">Robin Laing</b> <<a href="mailto:Robin.Laing@drdc-rddc.gc.ca">Robin.Laing@drdc-rddc.gc.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Paul Howarth wrote:<br>> Alastair McKinley wrote:<br>><br>>> On 9/20/06, Paul Howarth <<a href="mailto:paul@city-fan.org">paul@city-fan.org</a>> wrote:<br>>><br>>>><br>>>> Alastair McKinley wrote:
<br>>>> > On 9/20/06, David G. Miller <<a href="mailto:dave@davenjudy.org">dave@davenjudy.org</a>> wrote:<br>>>> >><br>>>> >> "Alastair McKinley" <<a href="mailto:amckinley03@googlemail.com">
amckinley03@googlemail.com</a>> wrote:<br>>>> >><br>>>> >> >Hi Dave,<br>>>> >> ><br>>>> >> >Thanks for your help.  This is what I've got:<br>>>> >> >
<br>>>> >> ><br>>>> >> >[root@d6173 alastair]# rpm -q --whatprovides<br>>>> >> >/usr/lib/python2.4/site-packages/cElementTree.so<br>>>> >> >python-elementtree-1.2.6-4
<br>>>> >> >[root@d6173 alastair]# rpm -q --whatprovides `which python`<br>>>> >> >python-2.4.3-8.FC4<br>>>> >> >[root@d6173 alastair]# rpm -q --whatprovides `which yum`
<br>>>> >> >yum-2.4.1-1.fc4<br>>>> >> >[root@d6173 alastair]# yum update<br>>>> >> >There was a problem importing one of the Python modules<br>>>> >> >required to run yum. The error leading to this problem was:
<br>>>> >> ><br>>>> >> >   /usr/lib/python2.4/site-packages/cElementTree.so: undefined<br>>>> symbol:<br>>>> >> >PyUnicodeUCS4_DecodeUTF8<br>>>> >> >
<br>>>> >> >Please install a package which provides this module, or<br>>>> >> >verify that the module is installed correctly.<br>>>> >> ><br>>>> >> >It's possible that the above module doesn't match the
<br>>>> >> >current version of Python, which is:<br>>>> >> >2.4.1 (#2, May  3 2005, 17:14:18)<br>>>> >> >[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)]<br>>>> >> >
<br>>>> >> >If you cannot solve this problem yourself, please go to<br>>>> >> >the yum faq at:<br>>>> >> >  <a href="http://wiki.linux.duke.edu/YumFaq">http://wiki.linux.duke.edu/YumFaq
</a><br>>>> >> ><br>>>> >> ><br>>>> >> ><br>>>> >> >I've been using yum with virtually no problems for a year.  As<br>>>> far as<br>>>> I
<br>>>> >> know<br>>>> >> >(!) I havent changed any settings related to character sets, in<br>>>> fact I<br>>>> >> dont<br>>>> >> >even know how to check.
<br>>>> >> >What should I do to check this out?<br>>>> >> ><br>>>> >> >Is it possible I have a corrupt shared object file?<br>>>> >> ><br>>>> >> >Thanks again,
<br>>>> >> ><br>>>> >> >Alastair<br>>>> >> ><br>>>> >> >P.S. Apologies for the stupid subject line, I sent the email<br>>>> before I<br>>>> >> wrote
<br>>>> >> >anything descritive in there!<br>>>> >> ><br>>>> >> Sorry about the wild goose chase on the character set thing.  Its<br>>>> >> something changeable through an environment variable so its something
<br>>>> >> that could easily be changed.  At least that would explain the sudden<br>>>> >> change in behavior.  After I pursued this line for a little while it<br>>>> >> dawned on me that the version of python being reported doesn't make
<br>>>> >> sense.<br>>>> >><br>>>> >> It looks like the copy of python that's in yum's path has<br>>>> regressed to<br>>>> >> something REALLY old.  rpm -q showed 
python-2.4.3-8.FC4 but yum is<br>>>> >> complaining about a problem with 2.4.1 compiled with gcc 3.2.2.<br>>>> When I<br>>>> >> run python from the command line on my FC4 box, I get:
<br>>>> >><br>>>> >> [root@bend ~]# python<br>>>> >> Python 2.4.3 (#1, Jun 13 2006, 16:41:18)<br>>>> >> [GCC 4.0.2 20051125 (Red Hat 4.0.2-8)] on linux2<br>>>> >>
<br>>>> >> The version number that python reports matches the version number for<br>>>> >> the python rpm.  Also, the gcc version python was compiled with<br>>>> matches<br>>>> >> the current version of gcc for FC4.
<br>>>> >><br>>>> >> Try running python (if it will run) from the command line and see<br>>>> what<br>>>> >> it gives for a start-up message (ctrl-D to exit the python CLI).
<br>>>> If it<br>>>> >> matches the error message you're getting then at least things are<br>>>> >> consistent and you may need to just re-install python.  Not sure how<br>>>> >> your system got into this state.  If you get the same thing I got
<br>>>> >> (matches what rpm says is the installed version) then something<br>>>> really<br>>>> >> strange is going on.  yum is somehow picking up an old copy of<br>>>> python.
<br>>>> >><br>>>> >> Cheers,<br>>>> >> Dave<br>>>> >><br>>>> >> --<br>>>> >> Politics, n. Strife of interests masquerading as a contest of
<br>>>> principles.<br>>>> >> -- Ambrose Bierce<br>>>> >><br>>>> >> --<br>>>> >> fedora-list mailing list<br>>>> >> <a href="mailto:fedora-list@redhat.com">
fedora-list@redhat.com</a><br>>>> >> To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>>>> ><br>>>> >
<br>>>> ><br>>>> ><br>>>> > Ok I've still got a problem I dont quite understand!<br>>>> ><br>>>> > So i did this:<br>>>> ><br>>>> > rpm -i --force ~alastair/python-
2.4.3-8.FC4.i386.rpm<br>>>> ><br>>>> > However, python still does this:<br>>>> ><br>>>> > [alastair@d6173 sh]$ python Python 2.4.1 (#2, May  3 2005, 17:14:18)<br>>>> > [GCC 
3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2<br>>>> > Type "help", "copyright", "credits" or "license" for more information.<br>>>> >>>><br>>>>
<br>>>> So which python is first in your PATH?<br>>>><br>>>> $ which python<br>>>><br>>>> > So the only thing that looks like it has been changed is the symlink<br>>>> > /usr/bin/python2
<br>>>> ><br>>>> > Is there another rpm command I should be using for this?<br>>>><br>>>> Was the commercial app that you believe to be the culprit installed<br>>>> using RPM?
<br>>>><br>>>> Paul.<br>>>><br>>>> --<br>>>> fedora-list mailing list<br>>>> <a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>>>> To unsubscribe: 
<a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>>><br>>><br>>><br>>><br>>> Hi Paul,<br>>><br>>> [alastair@d6173
 alastair]# which python<br>>> /usr/bin/python<br>>> [alastair@d6173 alastair]#<br>>><br>>> The App I believe to be the culprit was installed with a shell script.  I<br>>> didnt look at it closely and now its disappeared!
<br>><br>><br>> Earlier in the thread it appeared that root was getting python 2.4.3 and<br>> your regular user account was getting python 2.4.1. So what's the output<br>> of "which python" when run from your regular account?
<br>><br>> Paul.<br>><br><br><br>What do you get when you<br>  echo $PATH<br>from a terminal window?<br><br>If there is a "python" path listed, then you have to find where that is<br>being added.  Check your local configuration files.  I do this with
<br>   grep PATH ~/.*<br>which only returns .bash_profile.<br><br>The commercial application may work after changing the PATH if it hasn't<br>written over your newer python some how.<br><br>--<br>Robin Laing<br><br>--<br>
fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list
</a></blockquote><div><br>
<br>
echo $PATH gives:<br>
<br>
/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin<br>
<br>
So there is no python path.  I was about to no rpm -e --nodeps python but does rpm not use python?<br>
Is there any other way I can force python to reinstall?<br>
<br>
Best regards,<br>
<br>
Alastair<br>
<br>
<br>
<br>
<br>
</div><br></div><br>