-   Linux - Software (
-   -   broken yum - "No module named yum" (

shihab-alain 05-09-2006 07:24 AM

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

acid_kewpie 05-10-2006 03:15 AM

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.

shihab-alain 05-10-2006 05:09 AM

thanx, I'll try that and see what happens

All times are GMT -5. The time now is 08:13 PM.