Giter VIP home page Giter VIP logo

Comments (9)

nicolargo avatar nicolargo commented on May 5, 2024

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.

vanaalten avatar vanaalten commented on May 5, 2024

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.

nicolargo avatar nicolargo commented on May 5, 2024

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.

stombi avatar stombi commented on May 5, 2024

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.

vanaalten avatar vanaalten commented on May 5, 2024

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.

nicolargo avatar nicolargo commented on May 5, 2024

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.

vanaalten avatar vanaalten commented on May 5, 2024

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.

nicolargo avatar nicolargo commented on May 5, 2024

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.

vanaalten avatar vanaalten commented on May 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.