Yum and Python... something is broke

Paul Howarth paul at city-fan.org
Wed Jul 19 07:26:00 UTC 2006


On Tue, 2006-07-18 at 23:40 -0400, Poohba wrote:
> [23:31:53 root at downloads]yum
> 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.

Hmm,

> It's possible that the above module doesn't match the
> current version of Python, which is:
> 2.3.5 (#1, Aug 25 2005, 09:17:42)
> [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)]

So you have python 2.3.5...

> If you cannot solve this problem yourself, please go to
> the yum faq at:
>   http://wiki.linux.duke.edu/YumFaq
> 
> 
> [23:31:55 root at downloads]python
> Python 2.0.1 (#1, Jul 12 2006, 18:03:04)
> [GCC 3.4.4 20050721 (Red Hat 3.4.4-2)] on linux2
> Type "copyright", "credits" or "license" for more information.

But this is python 2.0.1...

> >>> import yum
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: No module named yum
> 
> [23:32:55 root at downloads]rpm -q python
> python-2.4.3-8.FC5
> 
> [22:44:06 root at i386]rpm -q python-devel
> package python-devel is not installed
> 
> 
> Yum is not the only one that has the problem.

You seem to have multiple versions of python installed. Make sure your
PATH setting is appropriate for the version of python needed by the
applicatins you are trying to run.

Paul.




More information about the fedora-list mailing list