no module named yum

David Timms dtimms at iinet.net.au
Wed Oct 17 12:08:43 UTC 2007


cache2 wrote:
> Hi. I'm pretty new to this thing, so any help is appreciated! I have got yum working well before, but today it suddenly failed me. I'm guessing something is wrong with yum/python.. here is the error message when I type yum on my terminal:
> 
> ______________________________
> Could not find platform independent libraries 
> Could not find platform dependent libraries 
> Consider setting $PYTHONHOME to [:]
> '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

Yikes, hopefully rpm is still happy, Can you verify the yum packages:
# rpm -V yum* rpm* python*

and try to import the yum module into python:
$ python
Python 2.5 (r25:51908, Apr 10 2007, 10:29:13)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import yum
 >>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
 >>>

Also, what is the command you are trying - try with -d 10 to enable the 
debug text.

DaveT.




More information about the users mailing list