Comments (16)
La version beta 5 devrait corriger le problème...
Tu peux refaire un test ?
from glances.
J'ai fait le test, les versions de pip et python sont toujours 1.0.2 et 3.2.2-2 ...
Sinon pareil, même message d'erreur mais déplacé à la ligne 54 :
File "./glances.py", line 54
print _('Textmode GUI initialization failed, Glances cannot start.')
SyntaxError: invalid syntax
from glances.
La bêta 6 devrait afficher un message d'erreur plus explicite...
from glances.
Toujours une SyntaxError:
File "./glances.py", line 39
print "Error during Python libraries import:", sys.exc_info()[1]
SyntaxError: invalid syntax
( Le curseur pointe sur le caractère en gras, le " près de import )
from glances.
Alors là je suis sec...
Last chance, essayer en ligne de commande:
python
import sys
import os
import platform
import getopt
import signal
import time
import datetime
import multiprocessing
import gettext
Et voir si il y a un message d'erreur qui s'affiche...
from glances.
Bon, bah mauvaise nouvelle, ça fonctionne parfaitement, pas d'erreur.
Ça ne vient pas des import...
from glances.
Je viens de faire un test, sous Python 3, print "Hello World" retourne une SyntaxError, il faut utiliser print("Hello World")
Je vais tester avec python 2.6
from glances.
Tu peux essayer:
2to3 glances.py
./glances.py
from glances.
J'ai pas tester avec 2to3, mais j'ai modifié la première ligne en !/usr/bin/python2
Voici le résultat:
./glances.py
PsUtil library initialization failed, Glances cannot start.
[...]
Sachant que psutil est installé :
pip install psutil
Requirement already satisfied (use --upgrade) [...]
Cleaning up...
J'ai refait une installation avec --upgrade, même message d'erreur que précédemment.
from glances.
Je pense que 'pip' a seulement installé la librairie psutil pour ta version 3 de Python...
from glances.
Bon, dans ce cas là avec 2to3, Voici les logs d'erreurs :
( Je suis obligé de lancer "reset" après, comme quand tu affiches un binaire avec la commande cat, ce sont les logs que j'arrive à voir, il manque peut être des informations...)
Traceback (most recent call last):
File "./glances.py", line 1366, in
main()
File "./glances.py", line 1349, in main
screen.update(stats)
File "./glances.py", line 901, in update
self.flush(stats)
File "./glances.py", line 895, in flush
self.display(stats)
File "./glances.py", line 872, in display
self.displayHost(stats.getHost())
File "./glances.py", line 925, in displayHost
self.term_window.addnstr(self.host_y, self.host_x+int(screen_x/2)-len(host_msg)/2, host_msg, 80, self.title_color if self.hascolors else 0)
TypeError: integer argument expected, got float
from glances.
Bien... Je pense que je vais me monter une VM avec du Python 3 pour debuguer tout ca...
from glances.
La dernière bếta (1.4b19) passe bien le process 2to3. Par contre je n'ai pas la librairie PsUtil de disponible en version Python 3 sur mon système (Ubuntu). Si qq peut faire le test sous Arch / Fedora ou PsUtil pour Python 3 est dispo, je suis preneur du résultat...
from glances.
Dès que j'ai l'occasion je vais tester sur Arch x86_64 et i686. Mais ce ne sera pas d'ici un petit moment.
from glances.
Ok, je laisse le ticket ouvert.
from glances.
A noter qu'un paquet existe et fonctionne (afaik) https://aur.archlinux.org/packages.php?ID=54666
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 HOT 1
- 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.