LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-25-2009, 11:15 AM   #1
dutchy88
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Question 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.
 
Old 01-25-2009, 12:00 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 01-25-2009, 12:09 PM   #3
dutchy88
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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..
 
Old 01-25-2009, 01:09 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 01-25-2009, 02:14 PM   #5
dutchy88
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 01-25-2009, 03:12 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
how is that the same file? you want rpm-python and you're trying to install rpm-build... huh?
 
Old 01-25-2009, 03:26 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
  


Reply

Tags
centos, module, named, rpm, yum



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Installing Yum: "No module named yum" braclayrab Linux - Newbie 9 08-04-2009 06:57 PM
yum error: no module named rpm catbird Linux - Newbie 4 02-21-2008 09:55 AM
YUM no module named yum gimmee Fedora 7 12-06-2006 03:43 PM
broken yum - "No module named yum" shihab-alain Linux - Software 2 05-10-2006 05:09 AM
rpm and yum commands failing on CentOS 4.2 amussaw Linux - Newbie 1 03-21-2006 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration