summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xglances/glances.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/glances/glances.py b/glances/glances.py
index 74f14f14..db21095f 100755
--- a/glances/glances.py
+++ b/glances/glances.py
@@ -74,7 +74,20 @@ except ImportError:
print(_('# pip install psutil'))
print()
sys.exit(1)
-
+
+try:
+ psutil.disk_io_counters()
+except:
+ print(_('PsUtil > 0.4.0 is needed. Glances cannot start.'))
+ print()
+ print(_('On Ubuntu 12.04 or higher:'))
+ print(_('$ sudo apt-get install python-psutil'))
+ print()
+ print(_('To install PsUtil using pip (as root):'))
+ print(_('# pip install psutil'))
+ print()
+ sys.exit(1)
+
# International
#==============