Giter Club home page Giter Club logo

Comments (8)

nicolargo avatar nicolargo commented on April 28, 2024

Hi, thanks for the feedback.

Can you try with the following archive: https://github.com/downloads/nicolargo/glances/glances-1.4.tar.gz

Nicolas

from glances.

nicolargo avatar nicolargo commented on April 28, 2024

For an easy installation, you can also try the official PPA:

https://launchpad.net/~arnaud-hartmann/+archive/glances-stable

from glances.

nicolargo avatar nicolargo commented on April 28, 2024

Same issue on my Debian server... :(

from glances.

nicolargo avatar nicolargo commented on April 28, 2024

A very dirty hack:

sudo rm /usr/local/bin/glances

sudo ln -s /usr/local/lib/python2.6/dist-packages/glances-1.4-py2.6.egg/glances/glances.py /usr/local/bin/glances

...

from glances.

MisterT2 avatar MisterT2 commented on April 28, 2024

The "dirty hack" works fine, that's all what I need for now...
I let this comment open, if you ever come to propose a "clean hack"... :-)

Thanks a lot Nico (for the tip and for the tool) !

from glances.

MisterT2 avatar MisterT2 commented on April 28, 2024

Oups....
I was a little bit too fast answering there...

I tried your hack, but I get:

/usr/local/bin/glances:617: DeprecationWarning: this property is deprecated; use Process.get_nice() method instead
procstat['nice'] = proc.nice
Traceback (most recent call last):
File "/usr/local/bin/glances", line 2064, in
main()
File "/usr/local/bin/glances", line 2037, in main
screen.update(stats)
File "/usr/local/bin/glances", line 1058, in update
self.flush(stats)
File "/usr/local/bin/glances", line 1054, in flush
self.display(stats)
File "/usr/local/bin/glances", line 1030, in display
self.displayLoad(stats.getLoad(), stats.getCore())
File "/usr/local/bin/glances", line 1152, in displayLoad
"{:.2f}".format(load['min1']), 8)
ValueError: zero length field name in format

(note that I had to slightly modify the link in the "hack":
sudo ln -sf /usr/local/lib/python2.6/dist-packages/Glances-1.4-py2.6.egg/glances/glances.py /usr/local/bin/glances
)

And when I try the PPA repository, I get version 1.3.7 installed (not 1.4.0 !)

from glances.

nicolargo avatar nicolargo commented on April 28, 2024

This issue (ValueError: zero length field name in format / #52) has been solved yesterday in the last build.

Download the last archive: https://github.com/downloads/nicolargo/glances/glances-1.4.tar.gz

Nicolas

from glances.

MisterT2 avatar MisterT2 commented on April 28, 2024

This latest version + the "horrible hack" => works fine !

Many thanks :-)

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.