<br><br><div><span class="gmail_quote">On 9/20/06, <b class="gmail_sendername">Paul Howarth</b> <<a href="mailto:paul@city-fan.org">paul@city-fan.org</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;">
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 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 far as I
<br>>> know<br>>> >(!) I havent changed any settings related to character sets, in 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 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 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.  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 matches
<br>>> the current version of gcc for FC4.<br>>><br>>> Try running python (if it will run) from the command line and see what<br>>> it gives for a start-up message (ctrl-D to exit the python CLI).  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 really<br>>> strange is going on.  yum is somehow picking up an old copy of python.<br>>><br>>> Cheers,<br>>> Dave<br>>>
<br>>> --<br>>> Politics, n. Strife of interests masquerading as a contest of 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></blockquote><div><br>
<br>
Hi Paul,<br>
<br>
<div style="margin-left: 40px;">[alastair@d6173 alastair]# which python<br>
/usr/bin/python<br>
[alastair@d6173 alastair]#<br>
</div>
<br>
The App I believe to be the culprit was installed with a shell script.  I didnt look at it closely and now its disappeared!<br>
<br>
Any ideas on how I can bring python back to life?<br>
<br>
Best regards and thanks,<br>
<br>
Alastair<br>
<br>
<br>
<br>
 <br>
</div><br></div><br>