<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.10.2">
</HEAD>
<BODY>
I am using FC5.<BR>
<BR>
I seem to have two pythons installed.  One in /usr/local/bin and one in /usr/bin<BR>
<BR>
[10:42:38 root@~]/usr/local/bin/python<BR>
Python 2.0.1 (#1, Jul 12 2006, 18:03:04)<BR>
[GCC 3.4.4 20050721 (Red Hat 3.4.4-2)] on linux2<BR>
Type "copyright", "credits" or "license" for more information.<BR>
>>> import yum<BR>
Traceback (most recent call last):<BR>
  File "<stdin>", line 1, in ?<BR>
ImportError: No module named yum<BR>
>>><BR>
[10:42:53 root@~]/usr/bin/python<BR>
Python 2.3.5 (#1, Aug 25 2005, 09:17:42)<BR>
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2<BR>
Type "help", "copyright", "credits" or "license" for more information.<BR>
>>> import yum<BR>
Traceback (most recent call last):<BR>
  File "<stdin>", line 1, in ?<BR>
ImportError: No module named yum<BR>
>>><BR>
<BR>
[10:43:15 root@~]uname -a<BR>
Linux blkpoohba.dyndns.org 2.6.16-1.2129_FC5 #1 Thu Jun 1 10:59:33 EDT 2006 i686 athlon i386 GNU/Linux<BR>
<BR>
On Wed, 2006-07-19 at 08:30 -0500, Aaron Konstam wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Tue, 2006-07-18 at 23:40 -0400, Poohba wrote:</FONT>
<FONT COLOR="#000000">> [23:31:53 root@downloads]yum</FONT>
<FONT COLOR="#000000">> There was a problem importing one of the Python modules</FONT>
<FONT COLOR="#000000">> required to run yum. The error leading to this problem was:</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">>    No module named yum</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Please install a package which provides this module, or</FONT>
<FONT COLOR="#000000">> verify that the module is installed correctly.</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> It's possible that the above module doesn't match the</FONT>
<FONT COLOR="#000000">> current version of Python, which is:</FONT>
<FONT COLOR="#000000">> 2.3.5 (#1, Aug 25 2005, 09:17:42)</FONT>
<FONT COLOR="#000000">> [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)]</FONT>

<FONT COLOR="#000000">The above message is interesting since 2.3.5 is not the current version</FONT>
<FONT COLOR="#000000">of python, although you don't say whether you are using FC4 or FC5.</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> If you cannot solve this problem yourself, please go to</FONT>
<FONT COLOR="#000000">> the yum faq at:</FONT>
<FONT COLOR="#000000">>   <A HREF="http://wiki.linux.duke.edu/YumFaq">http://wiki.linux.duke.edu/YumFaq</A></FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> [23:31:55 root@downloads]python</FONT>
<FONT COLOR="#000000">> Python 2.0.1 (#1, Jul 12 2006, 18:03:04)</FONT>
<FONT COLOR="#000000">> [GCC 3.4.4 20050721 (Red Hat 3.4.4-2)] on linux2</FONT>
<FONT COLOR="#000000">> Type "copyright", "credits" or "license" for more information.</FONT>
<FONT COLOR="#000000">> >>> import yum</FONT>
<FONT COLOR="#000000">> Traceback (most recent call last):</FONT>
<FONT COLOR="#000000">>   File "<stdin>", line 1, in ?</FONT>
<FONT COLOR="#000000">> ImportError: No module named yum</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> [23:32:55 root@downloads]rpm -q python</FONT>
<FONT COLOR="#000000">> python-2.4.3-8.FC5</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> [22:44:06 root@i386]rpm -q python-devel</FONT>
<FONT COLOR="#000000">> package python-devel is not installed</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Yum is not the only one that has the problem. </FONT>
<FONT COLOR="#000000">> -- </FONT>
<FONT COLOR="#000000">> fedora-list mailing list</FONT>
<FONT COLOR="#000000">> <A HREF="mailto:fedora-list@redhat.com">fedora-list@redhat.com</A></FONT>
<FONT COLOR="#000000">> To unsubscribe: <A HREF="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>