Yum broken Incorrect python version FC6
Ok I have a server running FC6 and cpanel somehow my python has gotten hosed and broken yum.
This is the only error i get Code:
There was a problem importing one of the Python modules |
Here if this help i upgraded fc5 to fc6 many months ago but yum only recently stopped working
rpm -qa | grep -i python Code:
returns the following obviously i cant just remove the python-2.4.3-9.FC5 cause it just spits out [root@webhosting /]# rpm -e python-2.4.3-9.FC5 error: Code:
Failed dependencies: Any help would be appreciated how to get this running corectly again |
Can you enter the command
Code:
#rpm -qa grep -i python |
Oops, just seen your updated info. For each package listed as belonging to FC5, you could download the corresponding version or FC6 and install it with rpm.
|
hmm
Well i managed to upgrade all those packaes to fc6 versions still getting the same error
now heres the output from pyhton check Code:
mod_python-3.2.8-3 |
?
[root@webhosting /]# rpm -qa grep -i python
Name : python Relocations: (not relocatable) Version : 2.4.4 Vendor: Red Hat, Inc. Release : 1.fc6 Build Date: Mon 23 Oct 2006 01:02:53 PM CDT Install Date: Fri 23 Nov 2007 06:37:36 PM CST Build Host: hs20-bc2-3.build.redhat.com Group : Development/Languages Source RPM: python-2.4.4-1.fc6.src.rpm Size : 21630958 License: PSF - see LICENSE Signature : DSA/SHA1, Mon 06 Nov 2006 02:15:51 PM CST, Key ID b44269d04f2a6fd2 Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://www.python.org/ Summary : An interpreted, interactive, object-oriented programming language. Description : Python is an interpreted, interactive, object-oriented programming language often compared to Tcl, Perl, Scheme or Java. Python includes modules, classes, exceptions, very high level dynamic data types and dynamic typing. Python supports interfaces to many system calls and libraries, as well as to various windowing systems (X11, Motif, Tk, Mac and MFC). Programmers can write new built-in modules for Python in C or C++. Python can be used as an extension language for applications that need a programmable interface. This package contains most of the standard Python modules, as well as modules for interfacing to the Tix widget set for Tk and RPM. Note that documentation for Python is provided in the python-docs package. Name : grep Relocations: (not relocatable) Version : 2.5.1 Vendor: Red Hat, Inc. Release : 52.2 Build Date: Sat 11 Feb 2006 12:45:55 PM CST Install Date: Fri 08 Jun 2007 03:06:54 AM CDT Build Host: hs20-bc1-4.build.redhat.com Group : Applications/Text Source RPM: grep-2.5.1-52.2.src.rpm Size : 438170 License: GPL Signature : DSA/SHA1, Mon 06 Mar 2006 02:14:24 PM CST, Key ID b44269d04f2a6fd2 Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://www.gnu.org/software/grep/ Summary : The GNU versions of grep pattern matching utilities. Description : The GNU versions of commonly used grep utilities. Grep searches through textual input for lines which contain a match to a specified pattern and then prints the matching lines. GNU's grep utilities include grep, egrep and fgrep. You should install grep on your system, because it is a very useful utility for searching through text. Python is 2.4.4 but yum thinks it 2.4.3 |
hmm
Hmm I dont know if this helps but I tried
rpmbuild --rebuild yum*.src.rpm It spits this out RPM build errors: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 69886cc7 user skvidal does not exist - using root group skvidal does not exist - using root user skvidal does not exist - using root group skvidal does not exist - using root File not found by glob: /var/tmp/yum-3.0.6root/usr/lib/python?.?/site-packages/yum File not found by glob: /var/tmp/yum-3.0.6root/usr/lib/python?.?/site-packages/rpmUtils im assuming its not pulling the python version from where it should so its not finding the folder to build it I dont think python?.? is a version lol Any Ideas?? |
I have a couple of ideas for you to try and questions. Do you have any environment variables set such as $PYTHONHOME or $PYTHONPATH?
What version of rpm are you running? I have rpm-4.4.2.1-2.fc6 on my FC6 installation. I read that rpmdbCheckTerminate is new with that release. /usr/lib/python2.4/site-packages/rpm/_rpmmodule.so comes with rpm-python-4.4.2.1-2.fc6, and it looks like you are good to go there. Have you tried... rpm -Uvh --replacepkgs http://download.fedora.redhat.com/pu...fc6.noarch.rpm I'm assuming you are on an i386, if not, replace that part of the path with the correct architecture. Although it may not even matter in this particular case. If this doesn't work we can go through the list of dependencies for yum-3.0.6-1.fc6 and compare our systems. Also post any new and exciting errors you may receive. Bill |
All times are GMT -5. The time now is 06:24 PM. |