LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 02-21-2008, 08:14 AM   #1
catbird
LQ Newbie
 
Registered: Oct 2006
Posts: 26

Rep: Reputation: 16
yum error: no module named rpm


I upgraded from fedora 6 to fedora 7. Now, add /remove software doesn't respond. There are no errors. I tried yum from command line with this response:

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.5 (r25:51908, Apr 10 2007, 10:29:13)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)]

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

I then found an rpm for yum that should be suitable:
yum-3.2.0-1.fc7.src.rpm

I then issued command:
rpmbuild --rebuild yum*.src.rpm

This seems to work. At least there were no error messages at the conclusion.

I just tried Add/Remove Programs icon again and again, "Starting Add/Remove" appears but then it closes without any indication.

I looked in /etc/yum.repos.d per a hit on LQ. Here is what I found:
fedora-development.repo fedora-updates.repo
fedora.repo fedora-updates-testing.repo

Should I move / delete any of the above in repos.d or should I take the message about gcc 4.1.2 seriously? the YUMFAQ seems to think this is *not* a valid message, but a little background may be in order:

This whole fiasco started when I tried to install PDFTK. PDFTK had a prereq for a different gcj which, in turn, needed a different gcc. I installed the gcc 4.1.2 on f6. Since PDFTK still didn't work, I decided to install f7 because another forum member suggested it and f7 had a readily available rpm for PDFTK that others seemed to have success. Did my installation of gcc4.1.2 cause a problem for f7's python?
How would I fix that?

Last edited by catbird; 02-21-2008 at 08:17 AM.
 
Old 02-21-2008, 08:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,518
Blog Entries: 51

Rep: Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598
Yum has some requirements. From `rpm -qR yum` see if you've got the following packages installed:
python-elementtree
python-sqlite
rpm-python
urlgrabber
yum-metadata-parser

I didn't say you should upgrade to F7.
I said "Please upgrade to F7 and *then* F8".
 
Old 02-21-2008, 09:11 AM   #3
catbird
LQ Newbie
 
Registered: Oct 2006
Posts: 26

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by unSpawn View Post
Yum has some requirements. From `rpm -qR yum` see if you've got the following packages installed:
python-elementtree
python-sqlite
rpm-python
urlgrabber
yum-metadata-parser

I didn't say you should upgrade to F7.
I said "Please upgrade to F7 and *then* F8".
I agree with being current on software.
 
Old 02-21-2008, 09:15 AM   #4
catbird
LQ Newbie
 
Registered: Oct 2006
Posts: 26

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by unSpawn View Post
Yum has some requirements. From `rpm -qR yum` see if you've got the following packages installed:
python-elementtree
python-sqlite
rpm-python
urlgrabber
yum-metadata-parser

I didn't say you should upgrade to F7.
I said "Please upgrade to F7 and *then* F8".
rpm -qR yum shows:

/usr/bin/python
config(yum) = 3.2.0-1.fc7
python >= 2.4
python(abi) = 2.5
python-sqlite
rpm >= 0:4.4.2
rpm-python
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
urlgrabber
yum-metadata-parser >= 1.1.0
 
Old 02-21-2008, 09:55 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,518
Blog Entries: 51

Rep: Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598
You should 'rpm -q python-elementtree python-sqlite rpm-python urlgrabber yum-metadata-parser' and it should not return "package whatever is not installed".
 
  


Reply

Tags
fedora, yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"no module named yum" problem ufmale Linux - Software 9 01-03-2008 03:54 PM
HAL error, ImportError: No module named gnome davidguygc Slackware 10 07-22-2007 05:52 PM
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
gnochm error - No module named gconf raghav Fedora 1 12-14-2005 09:26 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration