Re: Yum Woes with Python

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff Spaleta wrote:
On Wed, Nov 5, 2008 at 12:22 PM, Seann Clark
Wed Nov 05-15:08:28-root@haruhi:snmp> rpm -q yum
yum-3.2.19-3.fc9.noarch
Wed Nov 05-15:16:26-root@haruhi:snmp> rpm -V yum
Wed Nov 05-15:16:36-root@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@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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux