python -V shows
Python 2.6.2
Main Topics
Browse All TopicsHi
I need to try this software iotop.
I understand iotop need python 2.6 and kernel 2.6.20
and by default centos installed python Python 2.4.3
so i have installed the new kernel 2.6.30 and download python 2.6
and installed python from source code
so if i type this
whereis python :
python: /usr/bin/python2.4 /usr/bin/python /usr/lib/python2.4 /usr/local/bin/python2.6
Now problem is : if i type
[root@localhost /]# iotop
Traceback (most recent call last):
File "/usr/local/bin/iotop", line 4, in <module>
import pkg_resources
ImportError: No module named pkg_resources
and if i try from source :
[root@localhost iotop-0.3.1]# ./iotop.py
Traceback (most recent call last):
File "./iotop.py", line 8, in ?
from iotop.ui import main
File "/tmp/iotop-0.3.1/iotop/ui
from iotop.data import find_uids, TaskStatsNetlink, ProcessList
File "/tmp/iotop-0.3.1/iotop/da
from iotop import ioprio, vmstat
File "/tmp/iotop-0.3.1/iotop/io
import ctypes
ImportError: No module named ctypes
so i am little bit of confused, what to do ??
Need help from some one who has install iotop in Redhat or centos
thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Ok i think i know what causing the problem,
it was iotop.py it was set to old python.
after chaing that one to 2.6 , it not showing the error, but now its asking enable
Linux >= 2.6.20 with I/O accounting support (CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING)
!!!!!
so i will have to go back and try to recompile the kernel again!!
Business Accounts
Answer for Membership
by: medveddPosted on 2009-08-06 at 06:08:06ID: 25032798
What is your default python? What command 'python -V' says?
You don't need to install new kernel for new python. New python can be installed in separate directory and coexist with old python.