You are not logged in.

#1 2014-03-13 15:27:07

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

[Solved] Problem with glances

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 ERR

Sorry 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

#2 2014-03-13 15:35:16

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Problem with glances

I get this too.   You should report it on the bug tracker.

Offline

#3 2014-03-13 15:48:34

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,219

Re: [Solved] Problem with glances

Just installed to check it out for you.  Same thing as wonderwoofy and OP.  Bug confirmed.

Offline

#4 2014-03-13 20:24:00

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: [Solved] Problem with glances

Okay, I added a bug report:

https://bugs.archlinux.org/task/39391

Offline

#5 2014-03-16 09:12:13

DaveCode
Member
Registered: 2008-08-15
Posts: 103

Re: [Solved] Problem with glances

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.1

I've never used this tool before. What installed was

community/python2-psutil  2.0.0-1
community/glances         1.7.5-1

Offline

#6 2014-03-19 14:09:37

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: [Solved] Problem with glances

The psutil error was fixed with the latest glances release. Now I'm back to the use_default_colors error sad

Offline

#7 2014-03-19 21:09:40

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: [Solved] Problem with glances

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

Board footer

Powered by FluxBB