LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-07-2010, 05:00 PM   #1
Al-Kateb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 0
problem with yum (missing python module)


Hello everybody, It's my first post in this forums. i visited this website a lot before finding answers for different questions but this time i got a question which i could not find a topic for not in this website nor in the others.

i have a testing server (Centos 5.4) with cpanel installed, once i ran a script which erases log files by using the find and rm command.

anyway looks like this script deleted one of the modules to python, the logging module. so python stopped working, i thought reinstalling it should solve the problem so i downloaded the tar ball and reinstalled python from source and it's all the same.

now yum command isn't working because it's giving me this error "no module named logging".

i decided to synchronize the whole python folder /usr/lib/python2.4/ from the live server using rsync and it did not help

i searched for the yum rpm package and i downloaded and installed yum-3.2.22-20.el5.centos.src.rpm using rpm and it did not help.


so i don't know how could i solve this problem? or what am i missing here?

thanks for your replies in advance

Last edited by Al-Kateb; 10-07-2010 at 05:01 PM.
 
Old 10-07-2010, 06:45 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
What is the exact command you are running and then actual, full error you are getting when you try to run yum? Use copy and paste.
 
Old 10-07-2010, 07:22 PM   #3
Al-Kateb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
the command i am running is

Code:
yum update
the error i am getting is

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

   No module named logging

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  3 2009, 15:37:37) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
 
Old 10-09-2010, 12:14 PM   #4
Al-Kateb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
btw i wanted to mention that i tried to install the logging module, so i downloaded it and tried to run the setup.py and it gave me syntax error!

any idea of how this could be solved?
 
Old 10-09-2010, 01:24 PM   #5
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by Al-Kateb View Post
btw i wanted to mention that i tried to install the logging module, so i downloaded it and tried to run the setup.py and it gave me syntax error!

any idea of how this could be solved?
Again, copy and paste the error here. Did you read the smart questions.
 
Old 10-09-2010, 01:35 PM   #6
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,221

Rep: Reputation: 251Reputation: 251Reputation: 251
Quote:
Originally Posted by Al-Kateb View Post
btw i wanted to mention that i tried to install the logging module, so i downloaded it and tried to run the setup.py and it gave me syntax error!

any idea of how this could be solved?
Why not just download the yum rpm from the appropriate repository and reinstall it, overwriting any old files? man rpm for details.
 
  


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 when run yum (No module named yum) ezak Linux - Distributions 4 10-16-2009 04:04 AM
Python YUM Module not found von_vea Linux - General 2 07-28-2009 08:42 PM
yum on redhat 5.3 not work python module problem cormanstnl Red Hat 1 04-10-2009 09:26 AM
problem with python and yum... please read?!!!!! negrito211 Linux - Software 2 02-17-2009 10:13 AM
Problem with Python? Yum? Daenris Linux - Software 1 04-08-2005 10:31 AM


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