<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">shashidhar velagandula</b> <span dir="ltr">&lt;<a href="mailto:shashidhar.velagandula@gmail.com">shashidhar.velagandula@gmail.com</a>&gt;</span><br>
Date: Fri, Feb 27, 2009 at 9:21 PM<br>Subject: Fwd: require python rpms for fc8<br>To: <a href="mailto:python-dev@python.org">python-dev@python.org</a><br><br><br><br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">
---------- Forwarded message ----------<br>From: <b class="gmail_sendername"></b> <span dir="ltr">&lt;<a href="mailto:python-3000-owner@python.org" target="_blank">python-3000-owner@python.org</a>&gt;</span><br>
Date: Fri, Feb 27, 2009 at 8:38 PM<br>Subject: require python rpms for fc8<br>To: <a href="mailto:shashidhar.velagandula@gmail.com" target="_blank">shashidhar.velagandula@gmail.com</a><br><br><br>This mailing list is closed now. Please use <a href="mailto:python-dev@python.org" target="_blank">python-dev@python.org</a><br>


instead.<br>
<br>
<br><br></div></div>---------- Forwarded message ----------<br>From: shashidhar velagandula &lt;<a href="mailto:shashidhar.velagandula@gmail.com" target="_blank">shashidhar.velagandula@gmail.com</a>&gt;<br>To: <a href="mailto:python-3000@python.org" target="_blank">python-3000@python.org</a><br>

Date: Fri, 27 Feb 2009 20:38:43 +0530<br>Subject: require python rpms for fc8<br>HI ,<br><br><br> 2 or 3 different python versions are installed in my machine ( fc8 )  , I have removed and reinstalled python-2.3.5 (tar archive only) for some reasons , from that time onwards I was not able to use &quot;yum &quot; command , and it is throwing an error as &quot; problem importing one of the python modules &quot;<br>


<br>bash-3.2# yum<br>There was a problem importing one of the Python modules<br>required to run yum. The error leading to this problem was:<br><br>   No module named yum<br><br>Please install a package which provides this module, or<br>


verify that the module is installed correctly.<br><br>It&#39;s possible that the above module doesn&#39;t match the<br>current version of Python, which is:<br>2.3.5 (#1, Mar 20 2005, 15:45:23) <br>[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)]<br>


<br>If you cannot solve this problem yourself, please go to <br>the yum faq at:<br>  <a href="http://wiki.linux.duke.edu/YumFaq" target="_blank">http://wiki.linux.duke.edu/YumFaq</a><br>  <br><br>bash-3.2# python -V<br>Python 2.3.5<br>

<br>
<br>--&gt; I tried to install the python through source but of no use , whatever the python version may be , it is showing same error , <br>I didn&#39;t get any python rpms form the site <a href="http://python.org/." target="_blank">http://python.org/.</a>.. even I tried to use rpmbuild using python tar files , but it is giving error , <br>


<br>[shashi@shashi SPECS]$ sudo rpmbuild -bb python-2.3.spec <br>Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.59931<br>+ umask 022<br>+ cd /home/shashi/redhat/BUILD<br>+ LANG=C<br>+ export LANG<br>+ unset DISPLAY<br>+ cd /home/shashi/redhat/BUILD<br>


+ rm -rf Python-2.3.5<br>+ /usr/bin/bzip2 -dc /home/shashi/redhat/SOURCES/Python-2.3.5.tgz<br>+ tar -xvvf -<br>-rw-rw-r-- shashi/shashi 36259840 2009-02-27 16:40 Python-2.3.5.tar<br>+ STATUS=0<br>+ &#39;[&#39; 0 -ne 0 &#39;]&#39;<br>


+ cd Python-2.3.5<br>/var/tmp/rpm-tmp.59931: line 33: cd: Python-2.3.5: No such file or directory<br>error: Bad exit status from /var/tmp/rpm-tmp.59931 (%prep)<br><br><br>RPM build errors:<br>    Bad exit status from /var/tmp/rpm-tmp.59931 (%prep)<br>


[shashi@shashi SPECS]$ cp ~/Desktop/Python-2.<br>Python-2.3.5/         Python-2.3.5.tar      Python-2.3.5.tar.bz2  Python-2.3.5.tgz      Python-2.6.1/         <br>[shashi@shashi SPECS]$ cp ~/Desktop/Python-2.3.5.tar.bz2 ../SOURCES/<br>


Crypt-OpenSSL-RSA-0.25.tar.gz                    java-1.6.0-sun-compat-unregister-java-fonts.xsl  openssl-0.9.8j.tar.gz<br>java-1.5.0-sun-compat-register-java-fonts.xsl    jdk-1_5_0_14-linux-i586.bin                      Python-2.3.5.tgz<br>


java-1.5.0-sun-compat-unregister-java-fonts.xsl  jdk-6u6-linux-i586-rpm.bin                       <br>java-1.6.0-sun-compat-register-java-fonts.xsl    openssl-0.9.8g-9.12.fc9.i386.rpm                 <br>[shashi@shashi SPECS]$ cp ~/Desktop/Python-2.3.5.tar.bz2 ../SOURCES/.<br>


[shashi@shashi SPECS]$ sudo rpmbuild -bb python-2.3.spec <br>Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.72526<br>+ umask 022<br>+ cd /home/shashi/redhat/BUILD<br>+ LANG=C<br>+ export LANG<br>+ unset DISPLAY<br>+ cd /home/shashi/redhat/BUILD<br>


+ rm -rf Python-2.3.5<br>+ /usr/bin/bzip2 -dc /home/shashi/redhat/SOURCES/Python-2.3.5.tgz<br>+ tar -xvvf -<br>-rw-rw-r-- shashi/shashi 36259840 2009-02-27 16:40 Python-2.3.5.tar<br>+ STATUS=0<br>+ &#39;[&#39; 0 -ne 0 &#39;]&#39;<br>


+ cd Python-2.3.5<br>/var/tmp/rpm-tmp.72526: line 33: cd: Python-2.3.5: No such file or directory<br>error: Bad exit status from /var/tmp/rpm-tmp.72526 (%prep)<br><br><br>RPM build errors:<br>    Bad exit status from /var/tmp/rpm-tmp.72526 (%prep)<br>


[shashi@shashi SPECS]$ <br>[shashi@shashi SPECS]$ <br>[shashi@shashi SPECS]$ cp ~/Desktop/Python-2.3.5 ../SOURCES/.<br>Python-2.3.5/         Python-2.3.5.tar      Python-2.3.5.tar.bz2  Python-2.3.5.tgz      <br>[shashi@shashi SPECS]$ cp -r ~/Desktop/Python-2.3.5 ../SOURCES/.<br>


[shashi@shashi SPECS]$ sudo rpmbuild -bb python-2.3.spec <br>Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.63171<br>+ umask 022<br>+ cd /home/shashi/redhat/BUILD<br>+ LANG=C<br>+ export LANG<br>+ unset DISPLAY<br>+ cd /home/shashi/redhat/BUILD<br>


+ rm -rf Python-2.3.5<br>+ /usr/bin/bzip2 -dc /home/shashi/redhat/SOURCES/Python-2.3.5.tgz<br>+ tar -xvvf -<br>-rw-rw-r-- shashi/shashi 36259840 2009-02-27 16:40 Python-2.3.5.tar<br>+ STATUS=0<br>+ &#39;[&#39; 0 -ne 0 &#39;]&#39;<br>


+ cd Python-2.3.5<br>/var/tmp/rpm-tmp.63171: line 33: cd: Python-2.3.5: No such file or directory<br>error: Bad exit status from /var/tmp/rpm-tmp.63171 (%prep)<br><br><br>RPM build errors:<br>    Bad exit status from /var/tmp/rpm-tmp.63171 (%prep)<br>


[shashi@shashi SPECS]$ <br><br>---&gt; My purpose is to run &quot;yum&quot; which will make use of the correct python module it requires ,<br>Even I tried reinstalling the new yum packages but it is giving same python module problem only<br>


<br>Plz suggest a solution to have a proper python version ( to run &quot;yum&quot; command) which suits fc8 and to remove all the other available python versions<br><br>Thanks &amp; Regards ,<br>shashidhar <br><br>
<br></div><br>
</div><br>