Code Monkey home page Code Monkey logo

Comments (16)

nicolargo avatar nicolargo commented on May 7, 2024

La version beta 5 devrait corriger le problème...

Tu peux refaire un test ?

from glances.

novln avatar novln commented on May 7, 2024

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.

nicolargo avatar nicolargo commented on May 7, 2024

La bêta 6 devrait afficher un message d'erreur plus explicite...

from glances.

novln avatar novln commented on May 7, 2024

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.

nicolargo avatar nicolargo commented on May 7, 2024

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.

novln avatar novln commented on May 7, 2024

Bon, bah mauvaise nouvelle, ça fonctionne parfaitement, pas d'erreur.

Ça ne vient pas des import...

from glances.

novln avatar novln commented on May 7, 2024

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.

nicolargo avatar nicolargo commented on May 7, 2024

Tu peux essayer:

2to3 glances.py

./glances.py

from glances.

novln avatar novln commented on May 7, 2024

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.

nicolargo avatar nicolargo commented on May 7, 2024

Je pense que 'pip' a seulement installé la librairie psutil pour ta version 3 de Python...

from glances.

novln avatar novln commented on May 7, 2024

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.

nicolargo avatar nicolargo commented on May 7, 2024

Bien... Je pense que je vais me monter une VM avec du Python 3 pour debuguer tout ca...

from glances.

nicolargo avatar nicolargo commented on May 7, 2024

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.

novln avatar novln commented on May 7, 2024

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.

nicolargo avatar nicolargo commented on May 7, 2024

Ok, je laisse le ticket ouvert.

from glances.

sciunto avatar sciunto commented on May 7, 2024

A noter qu'un paquet existe et fonctionne (afaik) https://aur.archlinux.org/packages.php?ID=54666

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.