<br><br><div><span class="gmail_quote">On 9/20/06, <b class="gmail_sendername">David G. Miller</b> &lt;<a href="mailto:dave@davenjudy.org">dave@davenjudy.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&quot;Alastair McKinley&quot; &lt;<a href="mailto:amckinley03@googlemail.com">amckinley03@googlemail.com</a>&gt; wrote:<br><br>&gt;Hi Dave,<br>&gt;<br>&gt;Thanks for your help.&nbsp;&nbsp;This is what I've got:<br>&gt;<br>&gt;<br>&gt;[
root@d6173 alastair]# rpm -q --whatprovides<br>&gt;/usr/lib/python2.4/site-packages/cElementTree.so<br>&gt;python-elementtree-1.2.6-4<br>&gt;[root@d6173 alastair]# rpm -q --whatprovides `which python`<br>&gt;python-2.4.3-8.FC4
<br>&gt;[root@d6173 alastair]# rpm -q --whatprovides `which yum`<br>&gt;yum-2.4.1-1.fc4<br>&gt;[root@d6173 alastair]# yum update<br>&gt;There was a problem importing one of the Python modules<br>&gt;required to run yum. The error leading to this problem was:
<br>&gt;<br>&gt;&nbsp;&nbsp; /usr/lib/python2.4/site-packages/cElementTree.so: undefined symbol:<br>&gt;PyUnicodeUCS4_DecodeUTF8<br>&gt;<br>&gt;Please install a package which provides this module, or<br>&gt;verify that the module is installed correctly.
<br>&gt;<br>&gt;It's possible that the above module doesn't match the<br>&gt;current version of Python, which is:<br>&gt;2.4.1 (#2, May&nbsp;&nbsp;3 2005, 17:14:18)<br>&gt;[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)]<br>&gt;<br>&gt;If you cannot solve this problem yourself, please go to
<br>&gt;the yum faq at:<br>&gt;&nbsp;&nbsp;<a href="http://wiki.linux.duke.edu/YumFaq">http://wiki.linux.duke.edu/YumFaq</a><br>&gt;<br>&gt;<br>&gt;<br>&gt;I've been using yum with virtually no problems for a year.&nbsp;&nbsp;As far as I know
<br>&gt;(!) I havent changed any settings related to character sets, in fact I dont<br>&gt;even know how to check.<br>&gt;What should I do to check this out?<br>&gt;<br>&gt;Is it possible I have a corrupt shared object file?
<br>&gt;<br>&gt;Thanks again,<br>&gt;<br>&gt;Alastair<br>&gt;<br>&gt;P.S. Apologies for the stupid subject line, I sent the email before I wrote<br>&gt;anything descritive in there!<br>&gt;<br>Sorry about the wild goose chase on the character set thing.&nbsp;&nbsp;Its
<br>something changeable through an environment variable so its something<br>that could easily be changed.&nbsp;&nbsp;At least that would explain the sudden<br>change in behavior.&nbsp;&nbsp;After I pursued this line for a little while it<br>
dawned on me that the version of python being reported doesn't make sense.<br><br>It looks like the copy of python that's in yum's path has regressed to<br>something REALLY old.&nbsp;&nbsp;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.&nbsp;&nbsp;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.&nbsp;&nbsp;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).&nbsp;&nbsp;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.&nbsp;&nbsp;Not sure how<br>your system got into this state.&nbsp;&nbsp;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.&nbsp;&nbsp;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></blockquote><div><br>
<br>
<br>
Ok I've still got a problem I dont quite understand!<br>
<br>
So i did this:<br>
<br>
<div style="margin-left: 40px;">rpm -i --force ~alastair/python-2.4.3-8.FC4.i386.rpm<br>
</div>
<br>
However, python still does this:<br>
<br>
<div style="margin-left: 40px;">[alastair@d6173 sh]$ python Python 2.4.1 (#2, May&nbsp; 3 2005, 17:14:18)<br>
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2<br>
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
&gt;&gt;&gt;<br>
<br>
[alastair@d6173 sh]$ ls -l /usr/bin/python*<br>
-rwxr-xr-x&nbsp; 2 root root 3348 Jun 13 21:41 /usr/bin/python<br>
lrwxrwxrwx&nbsp; 1 root root&nbsp;&nbsp;&nbsp; 6 Sep 20 15:00 /usr/bin/python2 -&gt; python<br>
-rwxr-xr-x&nbsp; 2 root root 3348 Jun 13 21:41 /usr/bin/python2.4<br>
[alastair@d6173 sh]$<br>
</div>
<br>
<br>
So the only thing that looks like it has been changed is the symlink /usr/bin/python2<br>
<br>
Is there another rpm command I should be using for this?<br>
<br>
Best regards,<br>
<br>
Alastair<br>
<br>
<br>
<br>
</div><br></div><br>