Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: meelis on May 30, 2008, 09:37:24 AM

Title: Yum not work
Post by: meelis on May 30, 2008, 09:37:24 AM
If i try do something in yum i see this error: (this problem started after i install pootle on sewrver
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, Sep 28 2005, 10:25:47)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
Title: Re: Yum not work
Post by: Stefano on May 30, 2008, 11:25:04 AM
hi..

how did you install pootle?

Ciao
Stefano
Title: Re: Yum not work
Post by: meelis on May 30, 2008, 11:43:54 AM
I used this howto http://wiki.contribs.org/Pootle
Title: Re: Yum not work
Post by: Stefano on May 30, 2008, 12:35:12 PM
Hi..

did you REALLY read all the page at the link you gave me?

Quote
If you run python at command line, you will see version 2.4, and you can't use yum anymore, because yum is installed under python 2.3

To fixing, run the following command:

/usr/sbin/alternatives-helper --remove python24
mv /usr/bin/python.alternatives_save /usr/bin/python
mv /usr/share/man/man1/python.1.gz.alternatives_save /usr/share/man/man1/python.1.gz

Now you have again python 2.3 running as default

If this doesn't help you, please raise a bug, thank you

Ciao
Stefano
Title: Re: Yum not work
Post by: meelis on May 30, 2008, 12:44:29 PM
Evrithing works just fonderful!

Thakns
Title: Re: Yum not work
Post by: byte on May 30, 2008, 07:15:14 PM
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!