LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 06-11-2010, 03:34 PM   #1
ice816
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
No module named rpm - Centos 4.5


Hello,

I have a server running centos 4.5 and am having some issues with yum and python. I think yum was partially installed and then there was an attempt to reinstall it.

I tried to execute the command "yum update" and received the following error:

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

No module named rpm

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.4 (#1, Dec 11 2007, 05:27:57)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)]

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

rpm -qa | grep yum yields:
yum-2.4.3-3.el4.centos
and

rpm -qa | grep python yields:
mod_python-3.1.3-5.1
libxml2-python-2.6.16-10.1
rpm-python-4.4.2.3-18.el5
python-2.3.4-14.4.el4_6.1
python-devel-2.3.4-14.4.el4_6.1
python-urlgrabber-2.9.8-2
python-sqlite-1.1.7-1.2.1
python-elementtree-1.2.6-5.el4.centos

Any help would be appreciated, thanks!
 
Old 06-11-2010, 08:03 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You need to reinstall rpm-python
http://www.linuxquestions.org/questi...-4-yum-699787/
 
Old 06-12-2010, 02:59 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
a question?
are you installing a cent 5 rpm on a cent 4 box ? "rpm-python-4.4.2.3-18.el5"
Quote:
mod_python-3.1.3-5.1
libxml2-python-2.6.16-10.1
rpm-python-4.4.2.3-18.el5
python-2.3.4-14.4.el4_6.1
python-devel-2.3.4-14.4.el4_6.1
if so you can not , it will not work
 
Old 06-12-2010, 08:45 PM   #4
ice816
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Original Poster
Rep: Reputation: 0
It wasn't our intention to install a version 5 rpm. Someone probably wasn't paying attention.
 
Old 06-12-2010, 08:51 PM   #5
ice816
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Just need to uninstall the current rpm-python and install the 4.5 version? Thanks for all the help, it is really appreciated!
 
Old 06-13-2010, 12:35 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Yep, that is probably all it is.

You'd normally not be able to install the el5 version without errors so you'd probably want to review internal procedures. There may be other such rpms installed in the wrong version creating odd little quirks, you may be well advised to audit the package list. Had software been installed by yum, this would not have happened.
 
  


Reply



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
adding a zone in named.conf in centos 5.2 /etc/named.conf coolhunkank Linux - Newbie 2 05-14-2009 08:45 AM
No module named rpm centos 4 yum dutchy88 Red Hat 6 01-25-2009 03:26 PM
yum error: no module named rpm catbird Linux - Newbie 4 02-21-2008 09:55 AM
centos 4.4 and bind named performance issues kbensch Linux - Networking 3 01-09-2007 10:31 PM
No module named wxPython.wx shents Linux - Newbie 3 01-30-2005 09:08 PM

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

All times are GMT -5. The time now is 02:32 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