LinuxQuestions.org
Register a domain and help support LQ
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-09-2006, 07:24 AM   #1
shihab-alain
LQ Newbie
 
Registered: Oct 2005
Location: UAE
Posts: 2

Rep: Reputation: 0
broken yum - "No module named yum"


After installing python-posd my yum stopped working. Every time I try to use it I get this message:

Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.2 (#1, Mar 4 2006, 13:45:50)
[GCC 3.3.6 (PLD Linux)]

If you cannot solve this problem yourself, please go to
the yum faq at:


I've uninstalled the python package and uninstalled and reinstalled yum via rpm but nothing seems to work. Beyond that, I have no idea what to do.

OS: Fedora Core 5
Kernel: 2.6.15-1.2054_FC5smp

Any help would be appreciated,
-Shihab Alain
 
Old 05-10-2006, 03:15 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
it'll most likely be down to version numbers and such. I'm not too familiar with the versioning heirarchy that python uses, but i've been bitten with a yum version needing python 2.3 but i had python 2.4 installed. each version has it's own directory tree, so the files are not found. if you do an "rpm -ql yum" you'll see where the files are actually going, and how that relates to the version of python you have. at worst you should be able to force a reinstall of python and yum from the fedora core os (both of cd or both off an online repo) and you shoudl be ok.
 
Old 05-10-2006, 05:09 AM   #3
shihab-alain
LQ Newbie
 
Registered: Oct 2005
Location: UAE
Posts: 2

Original Poster
Rep: Reputation: 0
thanx, I'll try that and see what happens
 
  


Reply

Tags
fc5, fedora, python, yum


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 -y upgrade" FC4->FC5 killed my machine! U4ea Fedora 1 04-20-2006 10:47 AM
gDesklets in SuSE 10.0 - "ImportError: No module named os" slong682000 Linux - Software 2 04-10-2006 09:51 PM
Bittorrent. "ImportError: No module named __future__" BashTin Linux - Software 4 09-12-2005 03:07 AM
Yum problem: "Cannot open/read repomd.xml" archdev Fedora 2 01-29-2005 02:56 PM
Running yum asks for "sysadmin to update headers" Equisilus Fedora 0 06-25-2004 04:52 PM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration