LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   No module named rpm centos 4 yum (https://www.linuxquestions.org/questions/red-hat-31/no-module-named-rpm-centos-4-yum-699787/)

dutchy88 01-25-2009 11:15 AM

No module named rpm centos 4 yum
 
Hi all,

I have some problems with my server,

I treid to install bigbrotherbot for my gameservers, only i removed a the python package, what yum is using.

I have googled all the time but no solution found.
I get this error, while using the command yum :

Code:

No module named rpm
If i do the following command:

Code:

rpm -qR yum
Ill get the following output:

Code:

/usr/bin/python
config(yum) = 3.2.8-9.el5.centos.2.1
python >= 2.4
python(abi) = 2.4
python-elementtree
python-iniparse
python-sqlite
rpm >= 0:4.4.2
rpm-python
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
urlgrabber >= 3.1.0
yum-fastestmirror
yum-metadata-parser >= 1.1.0

Rpm is installed, this is what i can see.
I have searced over this forum, but all the topics about this wont help me.

In my /bin/ folder i have a RPM file, so its on the system.
And in my /usr/lib folder i have a RPM folder with the following in it:

Code:

athlon-linux    macros          rpmdb_checkpoint  rpmdb_upgrade  rpmrc
config.guess    mkinstalldirs  rpmdb_deadlock    rpmdb_verify  rpmu
config.sub      noarch-linux    rpmdb_dump        rpme          rpmv
convertrpmrc.sh  pentium3-linux  rpmdb_load        rpmfile        rpm.xinetd
freshen.sh      pentium4-linux  rpmdb_loadcvt    rpmi          tgpg
i386-linux      rpm2cpio.sh    rpmdb_printlog    rpmk
i486-linux      rpmd            rpmdb_recover    rpm.log
i586-linux      rpm.daily      rpmdb_stat        rpmpopt-4.4.2
i686-linux      rpmdb_archive  rpmdb_svc        rpmq

Whats wrong up here.
Its a damm problem up here, i can use rpm normal without errors.

Thanks already.

acid_kewpie 01-25-2009 12:00 PM

well that's a python error, so it's not rpm itself it's complaining about, but the python module for it, which comes form rpm-python. try forcing a reinstallation of that rpm.

dutchy88 01-25-2009 12:09 PM

Ill get the following.

Code:

[root@g15 ~]# rpm -Uvh rpm-python-4.4.2.4-1.src.rpm
warning: rpm-python-4.4.2.4-1.src.rpm: Header V3 DSA signature: NOKEY, key ID 4ad653e1
  1:rpm-python            warning: user jeff does not exist - using root
warning: group jeff does not exist - using root
warning: user jeff does not exist - using root95%)
warning: group jeff does not exist - using root
########################################### [100%]
[root@g15 ~]#

So i added user jeff, dunno why he needs it but ok.

The it seems he install:

Code:

[root@g15 ~]# rpm -Uvh rpm-python-4.4.2.4-1.src.rpm
warning: rpm-python-4.4.2.4-1.src.rpm: Header V3 DSA signature: NOKEY, key ID 4ad653e1
  1:rpm-python

And its still not working..

John VV 01-25-2009 01:09 PM

Quote:

rpm-python-4.4.2.4-1.src.rpm
that is THE SOURCE CODE ONLY
install rpm-python-4.4.2.4-1.rpm

dutchy88 01-25-2009 02:14 PM

I have that file downloaden and he tell me the following:

Code:

rpm -Uvh rpm-build-4.4.2-48.el5.i386.rpm
error: Failed dependencies:
elfutils is needed by rpm-build-4.4.2-48.el5.i386

Ok, lets download elfutils.

And then ill get the following error:

Quote:

rpm -Uvh elfutils-libs-0.139-1.fc11.i386.rpm
error: Failed dependencies:
elfutils-libelf-i386 = 0.139-1.fc11 is needed by elfutils-libs-0.139-1.fc11.i386
libc.so.6(GLIBC_2.8) is needed by elfutils-libs-0.139-1.fc11.i386
libelf.so.1(ELFUTILS_1.3) is needed by elfutils-libs-0.139-1.fc11.i386
libelf.so.1(ELFUTILS_1.4) is needed by elfutils-libs-0.139-1.fc11.i386
elfutils-libs > 0.125-3.el5 conflicts with elfutils-libelf-0.125-3.el5.i386
Is this a source problem, because i downloaded for fc11, or do i mis something more.

acid_kewpie 01-25-2009 03:12 PM

how is that the same file? you want rpm-python and you're trying to install rpm-build... huh?

John VV 01-25-2009 03:26 PM

also THAT FILE "elfutils-libs-0.139-1.fc11.i386.rpm" is for the TESTING/DEV fedora 11 .NOT for CentOS 5.2( current)

please install the 3d party centos repo files .and do not go blindly downloading incompatible rpm's
http://wiki.centos.org/TipsAndTricks/YumAndRPM
http://www.centos.org/
http://www.centos.org/docs/5/
http://wiki.centos.org/
---------
try this in the terminal run
Code:

su - ( or sudo -- if set-up)
yum search rpm-python
-- if it finds it then --
yum install rpm-python rpm-python-devel



All times are GMT -5. The time now is 02:35 AM.