LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Yum broken Incorrect python version FC6 (https://www.linuxquestions.org/questions/fedora-35/yum-broken-incorrect-python-version-fc6-601986/)

zeromaster 11-23-2007 05:45 PM

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
required to run yum. The error leading to this problem was:

  /usr/lib/python2.4/site-packages/rpm/_rpmmodule.so: undefined symbol: rpmdbCheckTerminate

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.4.3 (#1, Oct 23 2006, 14:19:47)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)]

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

Anyone that can help me resolve this issue would be greatly apppreciated not having yum makes life miserable on the server

zeromaster 11-23-2007 06:20 PM

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
audit-libs-python-1.3-2.fc5
gnome-python2-2.12.4-1
gnome-python2-bonobo-2.12.4-1
mod_python-3.2.8-3
python-urlgrabber-2.9.8-2
python-elementtree-1.2.6-4.2.1
libxml2-python-2.6.29-1.fc6
rpm-python-4.4.2.1-1.fc6
python-sqlite-1.1.7-1.2
python-tools-2.4.3-9.FC5
python-docs-2.4.3-0.9.FC5
python-numeric-23.7-2.2.1
libselinux-python-1.33.4-2.fc6
python-ldap-2.0.6-5.2.1
python-2.4.3-9.FC5
gnome-python2-canvas-2.12.4-1
dbus-python-0.70-6
python-devel-2.4.3-9.FC5
gnome-python2-gnomevfs-2.12.4-1

obviously looks like theres some fc5 stuff that didnt update

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:
        libpython2.4.so.1.0 is needed by (installed) libsemanage-1.6.2-2.fc5.i386
        libpython2.4.so.1.0 is needed by (installed) mod_python-3.2.8-3.i386
        libpython2.4.so.1.0 is needed by (installed) gnome-python2-gnomevfs-2.12.4-1.i386
        python(abi) = 2.4 is needed by (installed) python-urlgrabber-2.9.8-2.noarch
        python(abi) = 2.4 is needed by (installed) cracklib-2.8.6-1.2.1.i386
        python(abi) = 2.4 is needed by (installed) pygtk2-2.8.6-1.fc5.i386
        python(abi) = 2.4 is needed by (installed) libselinux-python-1.33.4-2.fc6.i386
        python(abi) = 2.4 is needed by (installed) rhpl-0.185-1.i386
        python(abi) = 2.4 is needed by (installed) python-elementtree-1.2.6-4.2.1.i386
        python(abi) = 2.4 is needed by (installed) pycairo-1.0.2-1.2.1.i386
        python(abi) = 2.4 is needed by (installed) libsemanage-1.6.2-2.fc5.i386
        python(abi) = 2.4 is needed by (installed) pyxf86config-0.3.24-1.i386
        python(abi) = 2.4 is needed by (installed) pygtk2-libglade-2.8.6-1.fc5.i386
        python(abi) = 2.4 is needed by (installed) svnmailer-1.0.8-1.fc5.noarch
        python(abi) = 2.4 is needed by (installed) kudzu-1.2.34.5-1.i386
        python(abi) = 2.4 is needed by (installed) audit-libs-python-1.3-2.fc5.i386
        python(abi) = 2.4 is needed by (installed) libxml2-python-2.6.29-1.fc6.i386
        python(abi) = 2.4 is needed by (installed) policycoreutils-1.30.10-2.fc5.i386
        python(abi) = 2.4 is needed by (installed) newt-0.52.2-6.i386
        python(abi) = 2.4 is needed by (installed) authconfig-5.2.3-1.i386
        python(abi) = 2.4 is needed by (installed) subversion-1.4.3-2.fc6.i386
        python(abi) = 2.4 is needed by (installed) rpm-python-4.4.2.1-1.fc6.i386
        python(abi) = 2.4 is needed by (installed) libuser-0.54.5-1.i386
        python(abi) = 2.4 is needed by (installed) python-sqlite-1.1.7-1.2.i386
        python(abi) = 2.4 is needed by (installed) pirut-1.0.3-0.fc5.noarch
        python(abi) = 2.4 is needed by (installed) gnome-python2-2.12.4-1.i386
        python(abi) = 2.4 is needed by (installed) python-ldap-2.0.6-5.2.1.i386
        python(abi) = 2.4 is needed by (installed) tkinter-2.4.3-9.FC5.i386
        python(abi) = 2.4 is needed by (installed) python-tools-2.4.3-9.FC5.i386
        python(abi) = 2.4 is needed by (installed) gnome-python2-canvas-2.12.4-1.i386
        python(abi) = 2.4 is needed by (installed) python-numeric-23.7-2.2.1.i386
        python(abi) = 2.4 is needed by (installed) dbus-python-0.70-6.i386
        python(abi) = 2.4 is needed by (installed) gnome-python2-bonobo-2.12.4-1.i386
        python(abi) = 2.4 is needed by (installed) pyorbit-2.14.0-1.i386
        python(abi) = 2.4 is needed by (installed) vte-0.12.2-1.fc5.1.i386
        python(abi) = 2.4 is needed by (installed) python-devel-2.4.3-9.FC5.i386
        python(abi) = 2.4 is needed by (installed) mod_python-3.2.8-3.i386
        python(abi) = 2.4 is needed by (installed) yum-2.6.1-0.fc5.noarch
        python(abi) = 2.4 is needed by (installed) gnome-python2-gnomevfs-2.12.4-1.i386
        python-abi = 2.4 is needed by (installed) python-elementtree-1.2.6-4.2.1.i386
        python-abi = 2.4 is needed by (installed) pyxf86config-0.3.24-1.i386
        python-abi = 2.4 is needed by (installed) svnmailer-1.0.8-1.fc5.noarch
        python-abi = 2.4 is needed by (installed) gnome-python2-2.12.4-1.i386
        python-abi = 2.4 is needed by (installed) python-ldap-2.0.6-5.2.1.i386
        python-abi = 2.4 is needed by (installed) mod_python-3.2.8-3.i386
        python2 >= 2.3 is needed by (installed) pygtk2-2.8.6-1.fc5.i386
        python2 is needed by (installed) system-config-keyboard-1.2.7-1.1.noarch
        python2 is needed by (installed) system-config-users-1.2.47-1.fc5.noarch
        python2 is needed by (installed) system-config-soundcard-1.2.16-2.noarch
        python2 is needed by (installed) system-config-date-1.8.8-1.fc5.noarch
        python2 is needed by (installed) system-config-rootpassword-1.1.8-1.1.noarch
        python2 >= 2.3 is needed by (installed) pyorbit-2.14.0-1.i386
        python2 is needed by (installed) system-config-language-1.1.11-1.noarch
        python >= 2.4 is needed by (installed) rhpl-0.185-1.i386
        python >= 2.3 is needed by (installed) system-config-lvm-1.0.18-1.2.FC5.noarch
        python is needed by (installed) firstboot-tui-1.4.6-1.noarch
        python is needed by (installed) system-config-network-tui-1.3.30-2.1.noarch
        python >= 2.4 is needed by (installed) authconfig-5.2.3-1.i386
        python = 2.4.3-9.FC5 is needed by (installed) tkinter-2.4.3-9.FC5.i386
        python is needed by (installed) yum-updateonboot-0.6-3.fc5.noarch
        python = 2.4.3-9.FC5 is needed by (installed) python-tools-2.4.3-9.FC5.i386
        python = 2.4.3 is needed by (installed) python-docs-2.4.3-0.9.FC5.noarch
        python is needed by (installed) avahi-0.6.16-4.fc6.i386
        python = 2.4.3-9.FC5 is needed by (installed) python-devel-2.4.3-9.FC5.i386
        python is needed by (installed) yum-2.6.1-0.fc5.noarch
        /usr/bin/python is needed by (installed) python-urlgrabber-2.9.8-2.noarch
        /usr/bin/python is needed by (installed) gettext-0.14.5-3.i386
        /usr/bin/python is needed by (installed) pygtk2-2.8.6-1.fc5.i386
        /usr/bin/python is needed by (installed) rhpl-0.185-1.i386
        /usr/bin/python is needed by (installed) svnmailer-1.0.8-1.fc5.noarch
        /usr/bin/python is needed by (installed) system-config-network-tui-1.3.30-2.1.noarch
        /usr/bin/python is needed by (installed) kudzu-1.2.34.5-1.i386
        /usr/bin/python is needed by (installed) libxml2-python-2.6.29-1.fc6.i386
        /usr/bin/python is needed by (installed) policycoreutils-1.30.10-2.fc5.i386
        /usr/bin/python is needed by (installed) system-config-keyboard-1.2.7-1.1.noarch
        /usr/bin/python is needed by (installed) authconfig-5.2.3-1.i386
        /usr/bin/python is needed by (installed) subversion-1.4.3-2.fc6.i386
        /usr/bin/python is needed by (installed) authconfig-gtk-5.2.3-1.i386
        /usr/bin/python is needed by (installed) pirut-1.0.3-0.fc5.noarch
        /usr/bin/python is needed by (installed) python-tools-2.4.3-9.FC5.i386
        /usr/bin/python is needed by (installed) libxml2-devel-2.6.29-1.fc6.i386
        /usr/bin/python is needed by (installed) diskdumputils-1.2.8-4.i386
        /usr/bin/python is needed by (installed) smartmontools-5.36-fc5.1.i386
        /usr/bin/python is needed by (installed) system-config-language-1.1.11-1.noarch
        /usr/bin/python is needed by (installed) yum-2.6.1-0.fc5.noarch
        /usr/bin/python2 is needed by (installed) system-config-lvm-1.0.18-1.2.FC5.noarch
        /usr/bin/python2 is needed by (installed) firstboot-tui-1.4.6-1.noarch
        /usr/bin/python2 is needed by (installed) system-config-users-1.2.47-1.fc5.noarch
        /usr/bin/python2 is needed by (installed) system-config-soundcard-1.2.16-2.noarch
        /usr/bin/python2 is needed by (installed) system-config-date-1.8.8-1.fc5.noarch
        /usr/bin/python2 is needed by (installed) system-config-rootpassword-1.1.8-1.1.noarch


Any help would be appreciated how to get this running corectly again

reddazz 11-23-2007 06:22 PM

Can you enter the command
Code:

#rpm -qa  grep -i python
I suggest you try reinstalling rpm-python.

reddazz 11-23-2007 06:25 PM

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.

zeromaster 11-23-2007 09:13 PM

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
python-2.4.4-1.fc6
python-devel-2.4.4-1.fc6
gnome-python2-2.16.2-2.fc6
python-urlgrabber-2.9.8-2
python-elementtree-1.2.6-4.2.1
libxml2-python-2.6.29-1.fc6
rpm-python-4.4.2.1-1.fc6
python-sqlite-1.1.7-1.2
gnome-python2-bonobo-2.16.2-2.fc6
python-numeric-23.7-2.2.1
python-docs-2.4.4-1.fc6
gnome-python2-gconf-2.16.2-2.fc6
audit-libs-python-1.4.2-5.fc6
libselinux-python-1.33.4-2.fc6
python-ldap-2.0.6-5.2.1
dbus-python-0.70-6
python-tools-2.4.4-1.fc6
notify-python-0.1.0-3.fc6
gnome-python2-gnomevfs-2.16.2-2.fc6
gnome-python2-canvas-2.16.2-2.fc6


zeromaster 11-23-2007 09:16 PM

?
 
[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

zeromaster 11-24-2007 12:22 AM

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??

wmakowski 11-24-2007 08:54 AM

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.