On 21/09/06, <b class="gmail_sendername">Robin Laing</b> <<a href="mailto:Robin.Laing@drdc-rddc.gc.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Robin.Laing@drdc-rddc.gc.ca</a>> wrote:<div>
<span class="gmail_quote"></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>><br>><br>> On 20/09/06, *Robin Laing* <<a href="mailto:Robin.Laing@drdc-rddc.gc.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Robin.Laing@drdc-rddc.gc.ca
</a><br>> <mailto:<a href="mailto:Robin.Laing@drdc-rddc.gc.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Robin.Laing@drdc-rddc.gc.ca</a>>> wrote:<br>><br>> Paul Howarth wrote:<br>> > Alastair McKinley wrote:<br>> ><br>> >> On 9/20/06, Paul Howarth <<a href="mailto:paul@city-fan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
paul@city-fan.org</a><br>> <mailto:<a href="mailto:paul@city-fan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">dave@davenjudy.org</a><br>> <mailto:<a href="mailto:dave@davenjudy.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
dave@davenjudy.org</a>>> wrote:<br>> >>> >><br>> >>> >> "Alastair McKinley" <
<a href="mailto:amckinley03@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">amckinley03@googlemail.com</a><br>> <mailto:<a href="mailto:amckinley03@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://wiki.linux.duke.edu/YumFaq</a><br>> <<a href="http://wiki.linux.duke.edu/YumFaq" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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
<br>> thing. Its<br>> >>> >> something changeable through an environment variable so its<br>> something<br>> >>>
>> that could easily be changed. At least that would
explain<br>> the sudden<br>> >>>
>> change in behavior. After I pursued this line for a
little<br>> while it<br>> >>> >> dawned on me that the version of python being reported<br>> 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<br>> 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<br>> 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
<br>> and see<br>> >>> what<br>> >>> >> it gives for a start-up message (ctrl-D to exit the python<br>> CLI).<br>> >>> If it<br>> >>> >> matches the error message you're getting then at least
<br>> things are<br>> >>>
>> consistent and you may need to just re-install
python. Not<br>> sure how<br>> >>>
>> your system got into this state. If you get the
same thing<br>> 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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
fedora-list@redhat.com</a> <mailto:<a href="mailto:fedora-list@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
fedora-list@redhat.com</a>><br>> >>> >> To unsubscribe:<br>> <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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,<br>> 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
<br>> 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<br>> 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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
fedora-list@redhat.com</a> <mailto:<a href="mailto:fedora-list@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">fedora-list@redhat.com</a>><br>> >>> To unsubscribe:
<a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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<br>> 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<br>> 2.4.3 and<br>> > your regular user account was getting python 2.4.1. So what's the
<br>> 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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
fedora-list@redhat.com</a> <mailto:<a href="mailto:fedora-list@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
fedora-list@redhat.com</a>><br>> To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://www.redhat.com/mailman/listinfo/fedora-list
</a><br>> <<a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://www.redhat.com/mailman/listinfo/fedora-list</a>><br>><br>><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
<br>> 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>This isn't getting you far is it.<br><br>I am not sure about rpm but I know yum uses python.
<br><br>Taking a breath I would do an<br><br> rpm -qa |grep python<br><br>to get a list of all the python packages installed. On my FC4 machine<br>at work, I have 39 packages with python in the name.<br><br>Then I would run
<br><br> rpm -V {package name}<br><br>on the packages to see what packages have errors. This will narrow down<br>what package is having issues. Them maybe you will only have to worry<br>about repairing a few packages with force.
<br><br>The last time I ran into a problem like this was moving from RH8 to FC1.<br> The upgrade left a lot of little problems.<br><br>--<br>Robin Laing<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://www.redhat.com/mailman/listinfo/fedora-list
</a></blockquote><div><br>
<br>
Hi eveyone, <br>
<br>
Thanks David, Paul and Robin for your help! Still no joy! Heres an update,<br>
<br>
Firstly i tried:<br>
<br>
<div style="margin-left: 40px;">rpm -e --nodeps python <span>python- 2.4.3-8.FC4.i386.rpm</span><br>
<span>and:</span><br>
<span>rpm -i --force </span><span>python- 2.4.3-8.FC4.i386.rpm</span><br>
<span></span></div>
<span><br>
Still python reports the wrong version!<br>
<br>
Next I tried rpm -V on all the python packages, most gave no output, heres what I did get:<br>
<br>
</span>
<div style="margin-left: 40px;">[root@d6173 sh]# rpm -qa | grep python<br>
gnome-python2-2.10.0-1<br>
libxml2-python-2.6.20-1.FC4<br>
python-ldap-2.0.6-4<br>
gnome-python2-bonobo-2.10.0-1<br>
gnome-python2-extras-2.10.0-6<br>
gnome-python2-extras-2.10.0-2.1<br>
python-sqlite-1.1.6-1<br>
gnome-python2-canvas-2.10.0-1<br>
gnome-python2-gtkhtml2-2.10.0-2.1<br>
rpm-python-4.4.1-23<br>
python-urlgrabber-2.9.6-1<br>
python-elementtree-1.2.6-4<br>
gnome-python2-gtkhtml2-2.10.0-6<br>
python-devel-2.4.3-8.FC4<br>
dbus-python-0.33-3.fc4.1<br>
python-2.4.3-8.FC4<br>
python-numeric-23.7-2<br>
gnome-python2-gnomevfs-2.10.0-1<br>
rpm-python-4.4.1-22<br>
<br>
</div>
<span><br>
</span>
<div style="margin-left: 40px;"><span>[root@d6173 sh]# rpm -V gnome-python2-extras-2.10.0-2.1</span><br>
<span>.......T /usr/lib/pkgconfig/gnome-python-extras-2.0.pc</span><br>
<span>S.5....T /usr/share/pygtk/2.0/defs/applet.defs</span><br>
<span>.......T /usr/share/pygtk/2.0/defs/art.defs</span><br>
<span>.......T /usr/share/pygtk/2.0/defs/gtkhtml2.defs</span><br>
<span>.......T /usr/share/pygtk/2.0/defs/nautilus_burn.defs</span><br>
<span>.......T /usr/share/pygtk/2.0/defs/nb_drive_selection.defs</span><br>
<span>.......T /usr/share/pygtk/2.0/defs/print.defs</span><br>
<span>.......T /usr/share/pygtk/2.0/defs/printui.defs</span><br>
<span>.......T /usr/share/pygtk/2.0/defs/trayicon.defs</span><br>
<span>.......T /usr/share/pygtk/2.0/defs/wnck.defs<br>
<br>
[root@d6173 sh]# rpm -V gnome-python2-gtkhtml2-2.10.0-2.1<br>
S.5....T /usr/lib/python2.4/site-packages/gtk-2.0/gtkhtml2.so<br>
<br>
[root@d6173 sh]# rpm -V python-2.4.3-8.FC4<br>
..?..... /usr/lib/python2.4/bsddb/test/__init__.py<br>
..?..... /usr/lib/python2.4/email/test/__init__.py<br>
<br>
[root@d6173 sh]# rpm -V rpm-python-4.4.1-22<br>
..5....T /usr/lib/python2.4/site-packages/poptmodule.so<br>
.......T /usr/lib/python2.4/site-packages/rpm/__init__.py<br>
S.5....T /usr/lib/python2.4/site-packages/rpm/_rpmmodule.so<br>
.......T /usr/lib/python2.4/site-packages/rpmdb/__init__.py<br>
S.5....T /usr/lib/python2.4/site-packages/rpmdb/_rpmdb.so<br>
.......T /usr/lib/python2.4/site-packages/rpmdb/db.py<br>
.......T /usr/lib/python2.4/site-packages/rpmdb/dbobj.py<br>
.......T /usr/lib/python2.4/site-packages/rpmdb/dbrecio.py<br>
.......T /usr/lib/python2.4/site-packages/rpmdb/dbshelve.py<br>
.......T /usr/lib/python2.4/site-packages/rpmdb/dbtables.py<br>
.......T /usr/lib/python2.4/site-packages/rpmdb/dbutils.py<br>
<br>
</span></div>
<span></span>Im not quite sure what this output means! <br>
<br>
Alastair<br>
<br>
<br>
<span></span>
<div style="margin-left: 40px;"><span><br>
<br>
</span><span></span></div>
<span><br>
<br>
</span><br>
</div><br></div><br>