Koozali.org: home of the SME Server

Yum not work

Offline meelis

  • ****
  • 112
  • +0/-0
Yum not work
« 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Yum not work
« Reply #1 on: May 30, 2008, 11:25:04 AM »
hi..

how did you install pootle?

Ciao
Stefano

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Yum not work
« Reply #2 on: May 30, 2008, 11:43:54 AM »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Yum not work
« Reply #3 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

Offline meelis

  • ****
  • 112
  • +0/-0
Re: Yum not work
« Reply #4 on: May 30, 2008, 12:44:29 PM »
Evrithing works just fonderful!

Thakns

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Yum not work
« Reply #5 on: May 30, 2008, 07:15:14 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!