LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2011, 03:43 PM   #1
ldieter
LQ Newbie
 
Registered: Jun 2001
Location: Avon NY
Distribution: Suse
Posts: 12

Rep: Reputation: 0
Centos 5.6 x86_64 Python problem


After updating to 5.6, I'm having weird version mismatch errors with python and python-devel:

rpm -ivh python-2.4.3-43.el5.x86_64.rpm
error: Failed dependencies:
libpython2.4.so.1.0()(64bit) is needed by python-2.4.3-43.el5.x86_64
python-libs-x86_64 = 2.4.3-43.el5 is needed by python-.4.3-43.el5.x86_64

So I tried:

rpm -ivh --nodeps --force python-2.4.3-43.el5.x86_64.rpm
Preparing... ########################################### [100%]
1ython ########################################### [100%]

Then:


rpm -ivh python-devel-2.4.3-43.el5.*
error: Failed dependencies:
python < 2.4.3-43.el5 conflicts with python-devel-2.4.3-43.el5.i386
python < 2.4.3-43.el5 conflicts with python-devel-2.4.3-43.el5.x86_64


This all started after the 5.6 upgrade when I tried to apply later updates with a yum update.

Any assistance would be appreciated.
 
Old 05-13-2011, 03:50 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
--nodeps --force
Why would you do that?

Why didn't you use yum to update Python?

Double-check `rpm -qa | grep python | sort`, because the error you're getting when installing python-devel doesn't make sense to me.

Now, you need to get (at least) python-libs-2.4.3-43.el5.x86_64.rpm. Then try: `rpm -Uvh python-libs-2.4.3-43.el5.x86_64.rpm python-2.4.3-43.el5.x86_64.rpm python-devel-2.4.3-43.el5.x86_64` and see if it works.
 
1 members found this post helpful.
Old 05-13-2011, 05:21 PM   #3
ldieter
LQ Newbie
 
Registered: Jun 2001
Location: Avon NY
Distribution: Suse
Posts: 12

Original Poster
Rep: Reputation: 0
[root@nenya RPMS]# rpm -qa | grep python | sort
audit-libs-python-1.7.18-2.el5
dbus-python-0.70-9.el5_4
gamin-python-0.1.7-8.el5
gnome-python2-2.16.0-1.fc6
gnome-python2-bonobo-2.16.0-1.fc6
gnome-python2-canvas-2.16.0-1.fc6
gnome-python2-desktop-2.16.0-3.el5
gnome-python2-gconf-2.16.0-1.fc6
gnome-python2-gnomekeyring-2.16.0-3.el5
gnome-python2-gnomevfs-2.16.0-1.fc6
gtk-vnc-python-0.3.8-3.el5
libbdevid-python-5.1.19.6-68.el5_6.1
libselinux-python-1.33.4-5.7.el5
libvirt-python-0.8.2-15.el5_6.3
libxml2-python-2.6.26-2.1.2.8.el5_5.1
notify-python-0.1.0-3.fc6
postgresql-python-8.1.23-1.el5_6.1
python-2.4.3-24.el5_3.6
python-2.4.3-43.el5
python-dmidecode-3.10.13-1.el5_5.1
python-docs-2.4.3-1.1
python-elementtree-1.2.6-5
python-exo-0.3.4-1.el5.centos
python-genshi-0.5-0.99.el5
python-iniparse-0.2.3-4.el5
python-lcms-1.18-0.1.beta1.el5_3.2
python-ldap-2.2.0-2.1
python-lxml-1.1.2-1.0.el5
python-MythTV-0.21-207.el5
python-numeric-23.7-2.2.2
python-pyblock-0.26-4.el5
python-pycurl-7.15.5.1-8.el5
python-setuptools-0.6c5-2.el5
python-sqlite-1.1.7-1.2.1
python-sqlite2-2.3.3-3_0.1.el5
python-urlgrabber-3.1.0-6.el5
python-vcpx-0.9.26-4.0.1.el5
python-virtinst-0.400.3-11.el5
rpm-python-4.4.2.3-22.el5

[root@nenya RPMS]# rpm -Uvh python-libs-2.4.3-43.el5.x86_64.rpm python-2.4.3-43.el5.x86_64.rpm python-devel-2.4.3-43.el5.x86_64.rpm
error: Failed dependencies:
python < 2.4.3-32.el5 conflicts with python-libs-2.4.3-43.el5.x86_64
python < 2.4.3-43.el5 conflicts with python-devel-2.4.3-43.el5.x86_64

As to why the "--force --nodeps", I was stuck, and guessed...probably incorrectly.
 
Old 05-13-2011, 05:24 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Code:
python-2.4.3-24.el5_3.6
python-2.4.3-43.el5
So you have two versions installed at different levels.

I think if you remove python-2.4.3-24.el5_3.6, the rpm -Uvh will work. I don't have an RPM-based system in front of me right now, but try "rpm -e python-2.4.3-24.el5_3.6" or similar.. you may need to read the man page to find out how to remove the specific version.

Next time.. "yum install python" unless you have a very good reason to not use the package manager for what it was meant for. Using "rpm" is not recommended unless you know what you're doing, and easier and more full-featured tools exist for a reason. --force and --nodeps are really not recommended unless you really know what you're doing.

Last edited by AlucardZero; 05-13-2011 at 05:26 PM.
 
Old 05-13-2011, 07:35 PM   #5
ldieter
LQ Newbie
 
Registered: Jun 2001
Location: Avon NY
Distribution: Suse
Posts: 12

Original Poster
Rep: Reputation: 0
OK, closer, I think.

rpm -e python-2.4.3-24.el5_3.6

Was successful. But now a "yum list" (or yum anything) gives me:

[root@nenya RPMS]# yum list
/usr/bin/python: error while loading shared libraries: libpython2.4.so.1.0: cannot open shared object file: No such file or directory

And yes, I'm suitably chastised...and I appreciate the help.
 
Old 05-13-2011, 10:11 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
then you might need to manually reinstall python

a bit of WARNING that was NOT given to you before
cent/rhel/fedora/sl are very VERY VERY dependent on the version of python in the OS BASE repo
some repos can royally mess up the install ( a VERY well documented issue ) and is WHY there are TWO yum plugins to SOLVE that problem

yum-protectbase & yum-priorities


now by "updating " i am assuming you updated from 5.5 to 5.6 ?? right and NOT from say 5.2 to 5.6

Also what repos are you using ? for instance ATrpm is known to be incompatible with rhn or the centos base repo
and some of rpmforge is incompatible

those two plugins ARE needed to keep a cent or rhel install running and have "yum" navigate through the mine field of incompatibility .


for the current python look in the base repo and download and save the rpm
-- you might be able in firefox --
http://mirror.centos.org/centos-5/5....s/x86_64/RPMS/
and click on
"python-2.4.3-44.el5.x86_64.rpm'
and the -devel package
python-devel-2.4.3-44.el5.x86_64.rpm
and while you are at is INSTALL the 32 bit also !

a pop-up in FF should ask if you want to install or save .
 
Old 05-13-2011, 11:19 PM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Ok.. Now do your
Code:
 rpm -Uvh python-libs-2.4.3-43.el5.x86_64.rpm python-2.4.3-43.el5.x86_64.rpm python-devel-2.4.3-43.el5.x86_64.rpm
If it complains that python is already installed, you can do the --force. That should put your python libraries back. Note that I'm assuming here that those are all the dependencies needed.

Alternately you can get python*-2.4.3-44 as John suggests.
 
Old 05-14-2011, 05:05 AM   #8
ldieter
LQ Newbie
 
Registered: Jun 2001
Location: Avon NY
Distribution: Suse
Posts: 12

Original Poster
Rep: Reputation: 0
OK, that did it.

rpm -Uvh --force python-libs-2.4.3-43.el5.x86_64.rpm python-2.4.3-43.el5.x86_64.rpm python-devel-2.4.3-43.el5.x86_64.rpm

Fixed it.

Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: CentOS-announce Release for CentOS-5.6 i386 and x86_64 LXer Syndicated Linux News 0 04-09-2011 05:00 AM
[SOLVED] Python problem after upgrading to gtk+2-2.24.1-x86_64-1 in slack current lemmens Slackware 7 03-01-2011 10:21 AM
CentOS 5.5 x86_64 Python 2.7 wills Linux - Server 3 02-24-2011 03:41 AM
CentOS 5.5 x86_64 nic bonding problem rhbegin Linux - Networking 2 07-28-2010 07:57 PM
LXer: Xen 3.2 on CentOS 5.2 x86_64 / RHEL 5.2 x86_64 LXer Syndicated Linux News 0 07-12-2008 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration