LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-02-2009, 02:56 PM   #1
Hamidof
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Problems with Python, CentOS and Yum


Hi

For a project, I need pygtgmozembed but had no luck so I found that my problem is this:

I found 2 Python installations, one is 2.3 in /usr/lib and the other one is 2.4 in /usr/local/lib

Command python is pointing to 2.4

Now when I install software from source code, it seems like they go to the one that is 2.4 and yum installs on the 2.3 one?!!

For example I installed GTK and "import gtk" only works on 2.3 one.

This makes a lot of confusion, for example, when I try to install gnome-python2-extras, it checks the 2.4-one and decides not to install pygtgmozembed.

If I set $PYTHON to point to the 2.3-one, then gnome-python2-extras complaints that it's too old.

Also, python-updater gives me all sorts of errors...

It's a mess and I can't really find anything online, any help would be much appreciated.

I hope this made sense.

Thanks in advance.
 
Old 04-03-2009, 01:22 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

"All" the admin tools in CentOS 4.x are based on python 2.3
and the related packages.

I think, the only way to get around it, is to upgrade to
CentOS 5.3 , which uses only python 2.4 .
.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
yum - cElementTree - Python WhatsOnYourBrain Fedora 17 03-24-2011 09:32 AM
Yum won't update Python Zeno McDohl Linux - Newbie 7 09-11-2008 03:04 PM
python messed up my yum c4nk Linux - Software 2 03-13-2007 01:03 AM
Problem with Python? Yum? Daenris Linux - Software 1 04-08-2005 10:31 AM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

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

All times are GMT -5. The time now is 06:56 AM.

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