LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 10-14-2009, 06:56 AM   #1
ezak
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
problem when run yum (No module named yum)


I have problem while run yum

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

   No module named yum

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 14 2009, 01:52:50)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)]

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

Code:
# python
Python 2.4.3 (#1, Oct 14 2009, 01:52:50)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yum
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named yum
Code:
# rpm -qa | grep yum
yum-3.2.19-18.el5.centos
yum-fastestmirror-1.1.18-2.fc10
yum-metadata-parser-1.1.2-2.el5
Code:
# rpm -qa | grep python
python-numeric-23.7-2.2.2
python-docs-2.4.3-1.1
gnome-python2-applet-2.16.0-2.el5
libselinux-python-1.33.4-5.el5
gnome-python2-desktop-2.16.0-2.el5
gnome-python2-2.16.0-1.fc6
gnome-python2-gtksourceview-2.16.0-2.el5
gnome-python2-gconf-2.16.0-1.fc6
gamin-python-0.1.7-8.el5
gnome-python2-libegg-2.14.2-6.el5
gnome-python2-gnomevfs-2.16.0-1.fc6
python-elementtree-1.2.6-5
python-urlgrabber-3.1.0-5.el5
gnome-python2-gnomeprint-2.16.0-2.el5
python-2.4.3-21.el5
libxml2-python-2.6.26-2.1.2.7
python-sqlite-1.1.7-1.2.1
python-ldap-2.2.0-2.1
gnome-python2-bonobo-2.16.0-1.fc6
dbus-python-0.70-7.el5
gnome-python2-extras-2.14.2-6.el5
audit-libs-python-1.6.5-9.el5
python-iniparse-0.2.3-4.el5
rpm-python-4.4.2.3-9.el5
Code:
# ls /usr/local/bin/ | grep python
python*
python2.4*
don't know how to solve this problem
and thanks for advice
 
Old 10-14-2009, 07:46 PM   #2
flokip
LQ Newbie
 
Registered: Aug 2009
Posts: 19

Rep: Reputation: 0
I see that there are files from Fedora 6 which are no longer suported.
Are you using centos or fedora and which version.
 
Old 10-15-2009, 05:59 AM   #3
ezak
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by flokip View Post
I see that there are files from Fedora 6 which are no longer suported.
Are you using centos or fedora and which version.
Centos
 
Old 10-15-2009, 08:17 PM   #4
flokip
LQ Newbie
 
Registered: Aug 2009
Posts: 19

Rep: Reputation: 0
I have never used centos.
In fedora then as root
#yum update yum
updates yum
see http://www.fedorafaq.org/#installsoftware
Are you not using old software or from fedora 6 and fedora 5
 
Old 10-16-2009, 04:04 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,633

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
@ flokip : CentOS 5.x is based on Fedora 6,
thus containing a few packages marked 'fc6'

"No module named yum"
.. I do not know any module 'yum.py'.

If yum is trashed it may not be able to reinstall itself.

May be replace manually with the command # rpm -Uvh <package>

> > yum packages, example i386 address
http://mirror.centos.org/centos/5.3/os/i386/CentOS/
updates
http://mirror.centos.org/centos/5.3/updates/i386/RPMS/
.. but no 'update's for yum*
.....
 
  


Reply


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


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


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