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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-07-2010, 05:00 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2010
Posts: 6
Rep:
|
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.
|
|
|
|
10-07-2010, 06:45 PM
|
#2
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
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.
|
|
|
|
10-07-2010, 07:22 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2010
Posts: 6
Original Poster
Rep:
|
the command i am running is
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
|
|
|
|
10-09-2010, 12:14 PM
|
#4
|
|
LQ Newbie
Registered: Oct 2010
Posts: 6
Original Poster
Rep:
|
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?
|
|
|
|
10-09-2010, 01:24 PM
|
#5
|
|
Member
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724
Rep:
|
Quote:
Originally Posted by Al-Kateb
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.
|
|
|
|
10-09-2010, 01:35 PM
|
#6
|
|
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,052
Rep: 
|
Quote:
Originally Posted by Al-Kateb
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:04 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|