Yum Woes with Python

Jeff Spaleta jspaleta at gmail.com
Wed Nov 5 22:04:56 UTC 2008


On Wed, Nov 5, 2008 at 12:22 PM, Seann Clark
> Wed Nov 05-15:08:28-root at haruhi:snmp> rpm -q yum
> yum-3.2.19-3.fc9.noarch
> Wed Nov 05-15:16:26-root at haruhi:snmp> rpm -V yum
> Wed Nov 05-15:16:36-root at haruhi:snmp> rpm -ql yum |grep config
> /usr/lib/python2.5/site-packages/yum/config.py
> /usr/lib/python2.5/site-packages/yum/config.pyc
> /usr/lib/python2.5/site-packages/yum/config.pyo


Okay lets check your python module path

start python
>>>import sys
>>>print sys.path

Crtrl-D to leave the python environment

The filesystem location /usr/lib/python2.5/site-packages/
should be in the output of print sys,path.

If it isn't that's the underlying problem.

If it is in the path start python and try to import yum

That should produce a useful python traceback, since the ImportError
exception producing the fancy error is at the beginning of the
/usr/bin/yum executable script

I bare  import yum command will throw an exception and python will
produce a full traceback for us to look at.

-jef




More information about the fedora-list mailing list