nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
26.25k stars 1.49k forks source link

Glances on Debian Squeeze #111

Closed nledez closed 11 years ago

nledez commented 11 years ago

Glances version:

$ ./glances.py -v
Glances version 1.5b

Debian version:

$ cat /etc/debian_version
6.0.5

First Glances launch:

$ ./glances.py
PsUtil module not found. Glances cannot start.
()
On Ubuntu 12.04 or higher:
$ sudo apt-get install python-psutil
()
To install PsUtil using pip (as root):
# pip install psutil
()

Install python-psutil:

$ sudo apt-get install python-psutil
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  python-psutil
0 upgraded, 1 newly installed, 0 to remove and 61 not upgraded.
Need to get 0 B/54.0 kB of archives.
After this operation, 180 kB of additional disk space will be used.
Selecting previously deselected package python-psutil.
(Reading database ... 71491 files and directories currently installed.)
Unpacking python-psutil (from .../python-psutil_0.1.3-1_all.deb) ...
Setting up python-psutil (0.1.3-1) ...
Processing triggers for python-support ...

Relaunch:

$ ./glances.py -h
Glances version 1.5b
Usage: glances [-f file] [-o output] [-t sec] [-h] [-v]

[...]

    -t sec      Set the refresh time in seconds (default: 2)
    -v      Display the version and exit
$ ./glances.py -v
Glances version 1.5b

But:

$ ./glances.py

Give:

Traceback (most recent call last):
                                    File "./glances.py", line 2597, in <module>
                                                                                   stats.update()
                   File "./glances.py", line 741, in update
                                                               self.__update__(input_stats)
             File "./glances.py", line 471, in __update__
                                                             self.percputime_old = psutil.cpu_times(percpu = True)
                                  TypeError: cpu_times() takes no arguments (1 given)
     $

Glances, work on my OSX. Server run as server on same Debian:

% ~/tmp/glances/glances.py -c 127.0.0.1 -p 61210                                                                         !540
Traceback (most recent call last):
                                    File "/Users/nico/tmp/glances/glances.py", line 2536, in <module>
                                                                                                         client = GlancesClient(server_ip, server_port)
                         File "/Users/nico/tmp/glances/glances.py", line 2209, in __init__
                                                                                              self.client = xmlrpclib.ServerProxy('http://%s:%d' % (server_address, server_port))
                                                 TypeError: %d format: a number is required, not str
                                                                                                    %
nicolargo commented 11 years ago

Glances needs PsUtil 0.4.1+.

As Glances asks, you need to install it through the Pipy packet manager:

# pip install psutil
nledez commented 11 years ago

It work's.

Can you add a more explicit dependency about version un first message ?

And can have a clean rescue ?

Thanks.