Comments (9)
Thx for the feedback.
Is it possible for you to try to run Glances from a Linux terminal, just to be sure that the isue is not PuTTY dependant.
Nicolas
from glances.
Not PuTTY dependant, I just took the machine out of the closet, connected keyboard/monitor to it and logged in on a normal terminal. I got exactly the same error message.
As this might be curses related: my version of curses is 5.7+20100313-5.
from glances.
No curses dependant, i use exaclty the same version of Curses on my Debian 6 server...
I just include the init instruction inside a 'try', can you try to download and test the HEAD version: https://github.com/nicolargo/glances/tarball/master
Thx
from glances.
I see that the error mentions glances-1.3.5 , maybe you could try 1.3.6
I'v just installed succesfully glances-1.3.6 on a Debian Squeeze armv5tel (I just followed the README.md instructions)
my env is :
Python 2.6.6
curses 5.7.20100313
pystatgrab 0.5
from glances.
1.3.5 and 1.3.6 give exactly the same error message.
I have the same Python and curses; just to be sure I downloaded and installed pystatgrab 0.5 again, according to README.md instructions.
As for the HEAD version you asked me to test:
Be aware that I'm a newbee, no experience with Python and very limited experience with compiling stuff on Linux. The tarbal I downloaded did not have the configure stuff in it, so:
I unpacked 1.3.6 to a clean directory; then unpacked the tarbal and copied everything from that tarbal into the "1.3.6" directory - all so that I could use the configure script. Hope this way of working is OK for you.
Anyway, I configured and installed according to README.md and tested:
Warning: Can not set the cursor color appearance.s.py
Traceback (most recent call last):
File "/usr/local/bin/glances.py", line 941, in <module> main()
File "/usr/local/bin/glances.py", line 925, in main screen.update(stats)
File "/usr/local/bin/glances.py", line 544, in update self.flush(stats)
File "/usr/local/bin/glances.py", line 538, in flush self.display(stats)
File "/usr/local/bin/glances.py", line 523, in display self.displayCaption()
File "/usr/local/bin/glances.py", line 832, in displayCaption self.term_window.addnstr(max(self.caption_y, screen_y-1), self.caption_x, _(" OK "), 8, self.default_color)
AttributeError: glancesScreen instance has no attribute 'default_color'
As I wrote, I have no experience with Python, but:
Original error message was about use_default_colors() giving an ERR;
New error message is about a missing attribute 'default_color'. Seems to be related... ;-)
from glances.
Interesting... It's look like Glances did not find a console compatible with colors...
I need to modifie the program to manage this configuration.
The strange think is that you did not have a colored console/terminal...
from glances.
Regarding the last comment:
Both with PuTTY and direct on the machine itself, I have a text based terminal with colors. For example, an 'ls -l' gives me a colorized directory listing.
from glances.
I just upload a new release in the HEAD. Can you test it ? It should displayed a B&W Glances version.
Netherthless id did not understand why Glances did not recognize your screen as color compliant...
from glances.
Checked, and exactly the same error as in my opening post (use_default_colors() returned ERR). Only the line numbers differ.
(and to be sure: I modified the version number in the src/glances.py file and checked after installation that I was indeed running the new release)
(also: a B&W version is a good workaround, but since I do have colors in my terminal, I prefer a full-colored glances...)
from glances.
Related Issues (20)
- Union filesystem (mergerfs) read as individual drives HOT 1
- OpenBSD crash on start without a swap file/partition HOT 2
- Allow containers columns to be selected in config file
- glances: command not found
- Windows Install Issues HOT 3
- Change Renovate config HOT 1
- Add documentation for contributors
- [IP plugin] Make the public ip information more configurable (not only from the Censys service) HOT 1
- Newline in container command corrupts display / hides container HOT 1
- The cpulist of the percpu parameter cannot be fully displayed due to too many cores. HOT 7
- Alpine Docker image build error on ARM HOT 4
- 【macOS] Using Glances to obtain the cpu utilization of a specified process in macOS is inaccurate HOT 1
- Python3 related issues installing glances on Ubuntu 24.04 HOT 1
- V3.6.1.2 Docker Hub Image HOT 1
- GlancesAutoInstall claims to be incompliant with (Rpm-based) Rosa HOT 1
- Switch to forks of pysnmp as it is unmaintained HOT 2
- What should I do if the hard disk temperature is not displayed
- Expose stats from container engines over API
- Improve Github action unit test on BSD systems
- Allow for diskio alias by UUID
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glances.