CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - General Support
  yum complains about missing python modules

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  chu_bun
      chu_bun
Re: yum complains about missing python modules
#5
Peeking in the Member Window
Joined: 2009/6/22
From
Posts: 19
I suspected yum-updatesd may use sudo, and tried:

$> sudo yum <command>

and that worked.

But su to root then run yum won't go. I guess I'll use sudo from now on. It seems to be the preferred way anyway!
Posted on: 2012/2/27 21:14
Create PDF from Post Print
Top
  •  gerald_clark
      gerald_clark
Re: yum complains about missing python modules
#4
Professional Board Member
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 6261
Your first post clearly shows that yum update does indeed have a problem updating the packages.
The box is not functioning as normal.
Posted on: 2012/2/27 19:28
Create PDF from Post Print
Top
  •  chu_bun
      chu_bun
Re: yum complains about missing python modules
#3
Peeking in the Member Window
Joined: 2009/6/22
From
Posts: 19
This is a production server and the rebuild the box with all the apps will take time. Besides, the box is functioning as normal. yum-updates has no problem updating the packages. I don't really have a good reason to ask my manager for 1 day of work time for rebuilding it.

I guess I'll need to check how yum-updates does it compared to running from the command line.
Posted on: 2012/2/27 19:17
Create PDF from Post Print
Top
  •  milosb
      milosb
Re: yum complains about missing python modules
#2
Professional Board Member
Joined: 2009/1/18
From 44°49′14″N 20°27′44″E
Posts: 661
Quote:

chu_bun wrote:
... At one time, I compiled and installed python from the tar source over the rpm installation. This is probably the cause of the problem. I have tried to uninstall/reinstall yum, python, a few times, but problem persists.

In this case I recommend you save yourself the trouble and simply reinstall the system. It's just not worth trying to fix anything from this point.
_________________
Milos
Posted on: 2012/2/24 22:34
Create PDF from Post Print
Top
  •  chu_bun
      chu_bun
yum complains about missing python modules
#1
Peeking in the Member Window
Joined: 2009/6/22
From
Posts: 19
I got the output below when trying to start yum from the command line. At one time, I compiled and installed python from the tar source over the rpm installation. This is probably the cause of the problem. I have tried to uninstall/reinstall yum, python, a few times, but problem persists.

However, yum-updatesd seems to work fine. All packages are up to date and I received the notification when new packages are installed.

====
~> yum update
'import site' failed; use -v for traceback
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, Sep 21 2011, 20:06:00)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]

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

Current settings:
CentOS 5.7 Kernel 2.6.18-274.18.1.el5
(from rpm -aq)
yum-3.2.22-37.el5.centos
python-2.4.3-44.el5_7.1
Posted on: 2012/2/24 22:03
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com