Giter Club home page Giter Club logo

Comments (10)

nicolargo avatar nicolargo commented on April 28, 2024

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

from glances.

GeoHolz avatar GeoHolz commented on April 28, 2024

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

from glances.

nicolargo avatar nicolargo commented on April 28, 2024

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

from glances.

GeoHolz avatar GeoHolz commented on April 28, 2024

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.

from glances.

nicolargo avatar nicolargo commented on April 28, 2024

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

from glances.

GeoHolz avatar GeoHolz commented on April 28, 2024

Ok :

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

C'est bon, non ?

from glances.

nicolargo avatar nicolargo commented on April 28, 2024

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

from glances.

GeoHolz avatar GeoHolz commented on April 28, 2024

~ # /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.. :'(

from glances.

nicolargo avatar nicolargo commented on April 28, 2024

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

from glances.

GeoHolz avatar GeoHolz commented on April 28, 2024

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 :)

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.