You are not logged in.
I'm trying to use glances, the system monitoring package written in Python:
https://www.archlinux.org/packages/comm … y/glances/
but when I run it, it gives me an error about curses:
$ glances
Traceback (most recent call last):
glances File "/usr/bin/glances", line 9, in <module>
load_entry_point('Glances==1.7.4', 'console_scripts', 'glances')()
File "/usr/lib/python2.7/site-packages/glances/glances.py", line 4858, in main
use_bold=use_bold)
File "/usr/lib/python2.7/site-packages/glances/glances.py", line 2072, in __init__
curses.use_default_colors()
_curses.error: use_default_colors() returned ERRSorry for the weird formatting but it it screws up my screen when this error happens.
Any ideas? Looks like a problem with the curses package, but I'm not sure. A missing dependency perhaps?
Last edited by jdarnold (2014-03-19 21:09:56)
Offline
I get this too. You should report it on the bug tracker.
Offline
Just installed to check it out for you. Same thing as wonderwoofy and OP. Bug confirmed.
Offline
Okay, I added a bug report:
Offline
It broke earlier for me.
$ glances -t 5
Traceback (most recent call last):
File "/usr/bin/glances", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2749, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 446, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 459, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 628, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: psutil>=0.5.1,<=1.2.1I've never used this tool before. What installed was
community/python2-psutil 2.0.0-1
community/glances 1.7.5-1Offline
The psutil error was fixed with the latest glances release. Now I'm back to the use_default_colors error ![]()
Offline
Never mind...
I had, for some unknown reason, a
TERM=vt100
in my .bashrc. And vt100 doesn't support colors. When I take that out, it gets set to xterm and all works well (this includes dstat, which I was also wondering why it wasn't showing up in color).
Doh!
That's what I get for carrying around a .bashrc for years and years without checking it out periodically.
Last edited by jdarnold (2014-03-19 21:10:22)
Offline