Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian 5 - Textmode GUI initialization failed, Glances cannot start. #29

Closed
GeoHolz opened this issue Jan 19, 2012 · 10 comments
Closed
Labels

Comments

@GeoHolz
Copy link

GeoHolz commented Jan 19, 2012

11:31 root@XXXXXXXXXX ~ # glances.py
Textmode GUI initialization failed, Glances cannot start.

zsh: exit 1 glances.py
11:35 root@XXXXXXXXX ~ #
11:35 root@XXXXXXX ~ #

J'ai du installer Python 2.6 et python-statgrab à la main a partir des sources car je suis sur Debian 5

Merci d'avance,

NourSs

@nicolargo
Copy link
Owner

Il faut vérifier que la librairie Python Curses soit installée:

dpkg -L python2.6 | grep curses

/usr/lib/python2.6/lib-dynload/_curses.so
/usr/lib/python2.6/lib-dynload/_curses_panel.so
/usr/lib/python2.6/curses
/usr/lib/python2.6/curses/panel.py
/usr/lib/python2.6/curses/init.py
/usr/lib/python2.6/curses/has_key.py
/usr/lib/python2.6/curses/ascii.py
/usr/lib/python2.6/curses/wrapper.py
/usr/lib/python2.6/curses/textpad.py

Si ce n'est pas le cas:

apt-get install python-minimal

@GeoHolz
Copy link
Author

GeoHolz commented Jan 19, 2012

Vu que je l'ai installé avec les sources, le dpkg ne me répond rien..

@nicolargo
Copy link
Owner

Tu es sur que le script utilise bien la bonne version de Python (c'est à dire la 2.6) ? Car Curses est une librairie standard: http://docs.python.org/release/2.6/library/index.html

@GeoHolz
Copy link
Author

GeoHolz commented Jan 19, 2012

Ok je viens de faire a mise a jour de Debian 5 vers 6, du coup :

dpkg -L python2.6 | grep curses
/usr/lib/python2.6/lib-dynload/_curses.so
/usr/lib/python2.6/lib-dynload/_curses_panel.so
/usr/lib/python2.6/curses
/usr/lib/python2.6/curses/panel.py
/usr/lib/python2.6/curses/init.py
/usr/lib/python2.6/curses/has_key.py
/usr/lib/python2.6/curses/ascii.py
/usr/lib/python2.6/curses/wrapper.py
/usr/lib/python2.6/curses/textpad.py

Par contre, toujours la même erreur :

glances.py
Textmode GUI initialization failed, Glances cannot start.

@nicolargo
Copy link
Owner

Encore une fois, il faut vérifier que ton système utilise bien la version 2.6 (ou supérieure) de Python:

/usr/bin/env python --version

Python 2.6.6

@GeoHolz
Copy link
Author

GeoHolz commented Jan 19, 2012

Ok :

/usr/bin/env python --version
Python 2.6.5

C'est bon, non ?

@nicolargo
Copy link
Owner

Oui...

A essayer:

/usr/bin/env python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import curses

@GeoHolz
Copy link
Author

GeoHolz commented Jan 19, 2012

~ # /usr/bin/env python
Python 2.6.5 (r265:79063, Jan 19 2012, 16:03:15)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import curses
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.6/curses/init.py", line 15, in
from _curses import *
ImportError: No module named _curses

Effectivement.. :'(

@nicolargo
Copy link
Owner

Il ne reste plus qu'à gOOglelifier pour savoir comment installer cette librairie sur ton système...

@GeoHolz
Copy link
Author

GeoHolz commented Jan 20, 2012

J'ai finis par réussir à le faire fonctionner..

Installer python2.6 par les sources quand on est sous Debian 5 n'est pas une bonne idée

Mieux vaut upgrade son systéme en debian 6 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants