FS#39391 - [glances] 1.7.4-1 crash in curses.use_default_colors

Attached to Project: Community Packages
Opened by Jonathan Arnold (jdarnold) - Thursday, 13 March 2014, 20:23 GMT
Last edited by Sébastien Luttringer (seblu) - Wednesday, 19 March 2014, 21:28 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
I just installed the latest glances package and when I try to run it, the screen gets cleared and I get the following (skewed) error messages:

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


and nothing happens, besides the fact echo is turned off on my terminal and I have to exit it.

Additional info:
* package version(s)
1.7.4-1
* config and/or log files etc.


Steps to reproduce:

Install the latest version
type 'glances'

This task depends upon

Closed by  Sébastien Luttringer (seblu)
Wednesday, 19 March 2014, 21:28 GMT
Reason for closing:  Not a bug
Comment by Sébastien Luttringer (seblu) - Tuesday, 18 March 2014, 00:44 GMT
I'm not able to reproduce. Which term are you using?
Comment by Curtis Shimamoto (WonderWoofy) - Tuesday, 18 March 2014, 04:01 GMT
I get the following in both termite-git 1:7.36.g85f8a26-1 as well as in rxvt-unicode 9.19-1. I am not a regular user of this program, but I saw someone having issues on the forums, and installed to test.

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
Comment by Sébastien Luttringer (seblu) - Tuesday, 18 March 2014, 09:09 GMT
Curtis, this traceback should be fixed by 1.7.4-2. Jonathan traceback is different.
Comment by Jonathan Arnold (jdarnold) - Wednesday, 19 March 2014, 14:06 GMT
I've tried a bunch of terms, including lxterminal and urxvt, as well as swapping to a virtual terminal. They all do the same thing. And I just tried konsole. Ditto. I must be missing some kind of dependency.
Comment by Sébastien Luttringer (seblu) - Wednesday, 19 March 2014, 20:04 GMT
I tested with a clean chroot and works pretty well. Is your arch is up-to-date? Is your term support color?

I found this BR: https://github.com/nicolargo/glances/issues/247
Comment by Jonathan Arnold (jdarnold) - Wednesday, 19 March 2014, 21:07 GMT
Doh! I had a

TERM=vt100

in my .bashrc, which I guess doesn't support colors! Not sure how that got in there, but if I take it out and start a new shell, the TERM is xterm and it all works just fine...

Nevermind...

Loading...