Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: Bud on September 14, 2012, 03:18:20 PM

Title: Yum Problem
Post by: Bud on September 14, 2012, 03:18:20 PM
guys hope you can help
using sme server 8
when i try to install an rpm with yum this is the error i get

=========================
# yum install smeserver-password-1.0.0-25.el4.sme.noarch.rpm

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.3 (#1, Sep 21 2011, 20:06:00)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

======================
any ideas what i can do to sort it out 
Title: Re: Yum Problem
Post by: Stefano on September 14, 2012, 04:39:22 PM
well.. start opening a bug..

at the same time, tell us what you did on your server recently
Title: Re: Yum Problem
Post by: Bud on September 15, 2012, 08:31:06 AM
Stefano thanks for your reply

firstly i have taken over an sme 8 server and i noticed that a change has been made to python (not sure what else) and the sme 8 system.

NB: THIS PROBLEM IS CAUSED DUE TO CHANGES MADE TO THE SYSTEM BY A PROGRAMMER.

THIS IS NOT A BUG IN THE SME 8 CORE SYSTEM.

now what can i do to "find" what needs to be done/undone??

any help greatly appreciated  :-)
Title: Re: Yum Problem
Post by: Stefano on September 15, 2012, 09:07:38 AM
before killing him, ask the programmer about the changes he made
after killing him, be sure no one can touch the server.

bash history could help you..
good luck
Title: Re: Yum Problem
Post by: mmccarn on July 09, 2013, 01:38:07 PM
This is a very late response, but here it is in case someone else gets the same error.

I ran into the error reported by Bud ("No module named yum").

On my system this was caused by a non-standard python configuration.  I have python 2.7 installed (using 'altinstall'), and at some point I had made /usr/local/bin/python a symlink to the python2.7 version.

Yum ran without errors once /usr/local/bin/python was symlinked to the SME version of python (/usr/local/bin/python2.4).