[Python-Dev] Fwd: require python rpms for fc8

shashidhar velagandula shashidhar.velagandula at gmail.com
Fri Feb 27 17:07:47 CET 2009


---------- Forwarded message ----------
From: shashidhar velagandula <shashidhar.velagandula at gmail.com>
Date: Fri, Feb 27, 2009 at 9:21 PM
Subject: Fwd: require python rpms for fc8
To: python-dev at python.org




---------- Forwarded message ----------
From: <python-3000-owner at python.org>
Date: Fri, Feb 27, 2009 at 8:38 PM
Subject: require python rpms for fc8
To: shashidhar.velagandula at gmail.com


This mailing list is closed now. Please use python-dev at python.org
instead.



---------- Forwarded message ----------
From: shashidhar velagandula <shashidhar.velagandula at gmail.com>
To: python-3000 at python.org
Date: Fri, 27 Feb 2009 20:38:43 +0530
Subject: require python rpms for fc8
HI ,


 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 "yum " command , and
it is throwing an error as " problem importing one of the python modules "

bash-3.2# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

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

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq


bash-3.2# python -V
Python 2.3.5


--> I tried to install the python through source but of no use , whatever
the python version may be , it is showing same error ,
I didn't get any python rpms form the site http://python.org/... even I
tried to use rpmbuild using python tar files , but it is giving error ,

[shashi at shashi SPECS]$ sudo rpmbuild -bb python-2.3.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.59931
+ umask 022
+ cd /home/shashi/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/shashi/redhat/BUILD
+ rm -rf Python-2.3.5
+ /usr/bin/bzip2 -dc /home/shashi/redhat/SOURCES/Python-2.3.5.tgz
+ tar -xvvf -
-rw-rw-r-- shashi/shashi 36259840 2009-02-27 16:40 Python-2.3.5.tar
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd Python-2.3.5
/var/tmp/rpm-tmp.59931: line 33: cd: Python-2.3.5: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.59931 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.59931 (%prep)
[shashi at shashi SPECS]$ cp ~/Desktop/Python-2.
Python-2.3.5/         Python-2.3.5.tar      Python-2.3.5.tar.bz2
Python-2.3.5.tgz      Python-2.6.1/
[shashi at shashi SPECS]$ cp ~/Desktop/Python-2.3.5.tar.bz2 ../SOURCES/
Crypt-OpenSSL-RSA-0.25.tar.gz
java-1.6.0-sun-compat-unregister-java-fonts.xsl  openssl-0.9.8j.tar.gz
java-1.5.0-sun-compat-register-java-fonts.xsl
jdk-1_5_0_14-linux-i586.bin                      Python-2.3.5.tgz
java-1.5.0-sun-compat-unregister-java-fonts.xsl
jdk-6u6-linux-i586-rpm.bin
java-1.6.0-sun-compat-register-java-fonts.xsl
openssl-0.9.8g-9.12.fc9.i386.rpm
[shashi at shashi SPECS]$ cp ~/Desktop/Python-2.3.5.tar.bz2 ../SOURCES/.
[shashi at shashi SPECS]$ sudo rpmbuild -bb python-2.3.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.72526
+ umask 022
+ cd /home/shashi/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/shashi/redhat/BUILD
+ rm -rf Python-2.3.5
+ /usr/bin/bzip2 -dc /home/shashi/redhat/SOURCES/Python-2.3.5.tgz
+ tar -xvvf -
-rw-rw-r-- shashi/shashi 36259840 2009-02-27 16:40 Python-2.3.5.tar
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd Python-2.3.5
/var/tmp/rpm-tmp.72526: line 33: cd: Python-2.3.5: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.72526 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.72526 (%prep)
[shashi at shashi SPECS]$
[shashi at shashi SPECS]$
[shashi at shashi SPECS]$ cp ~/Desktop/Python-2.3.5 ../SOURCES/.
Python-2.3.5/         Python-2.3.5.tar      Python-2.3.5.tar.bz2
Python-2.3.5.tgz
[shashi at shashi SPECS]$ cp -r ~/Desktop/Python-2.3.5 ../SOURCES/.
[shashi at shashi SPECS]$ sudo rpmbuild -bb python-2.3.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.63171
+ umask 022
+ cd /home/shashi/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/shashi/redhat/BUILD
+ rm -rf Python-2.3.5
+ /usr/bin/bzip2 -dc /home/shashi/redhat/SOURCES/Python-2.3.5.tgz
+ tar -xvvf -
-rw-rw-r-- shashi/shashi 36259840 2009-02-27 16:40 Python-2.3.5.tar
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd Python-2.3.5
/var/tmp/rpm-tmp.63171: line 33: cd: Python-2.3.5: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.63171 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.63171 (%prep)
[shashi at shashi SPECS]$

---> My purpose is to run "yum" which will make use of the correct python
module it requires ,
Even I tried reinstalling the new yum packages but it is giving same python
module problem only

Plz suggest a solution to have a proper python version ( to run "yum"
command) which suits fc8 and to remove all the other available python
versions

Thanks & Regards ,
shashidhar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20090227/09fffa3c/attachment-0001.htm>


More information about the Python-Dev mailing list