Yum Woes with Python

Seann Clark nombrandue at tsukinokage.net
Wed Nov 5 22:09:41 UTC 2008


Jeff Spaleta wrote:
> 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
>>>>         
>
>   
Wed Nov 05-16:06:32-root at haruhi:minazuki> python
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys
 >>> print sys.path
['', '/usr/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev-py2.5.egg', 
'/usr/lib64/python25.zip', '/usr/lib64/python2.5', 
'/usr/lib64/python2.5/plat-linux2', '/usr/lib64/python2.5/lib-tk', 
'/usr/lib64/python2.5/lib-dynload', 
'/usr/lib64/python2.5/site-packages', 
'/usr/lib64/python2.5/site-packages/FontTools', 
'/usr/lib64/python2.5/site-packages/Numeric', 
'/usr/lib64/python2.5/site-packages/PIL', 
'/usr/lib64/python2.5/site-packages/HippoDraw', 
'/usr/lib64/python2.5/site-packages/Ice', 
'/usr/lib64/python2.5/site-packages/gst-0.10', 
'/usr/lib64/python2.5/site-packages/gtk-2.0', 
'/usr/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode', 
'/usr/lib/python2.5/site-packages', 
'/usr/lib/python2.5/site-packages/HippoDraw']
 >>>

> 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
>   
 >>> import yum
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 31, in 
<module>
    import logging.config
ImportError: No module named config
 >>>

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

Regards,
Seann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5614 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20081105/13e66301/attachment-0001.bin>


More information about the fedora-list mailing list