Comments (10)
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.
Vu que je l'ai installé avec les sources, le dpkg ne me répond rien..
from glances.
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.
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.
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.
Ok :
/usr/bin/env python --version
Python 2.6.5
C'est bon, non ?
from glances.
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.
~ # /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.
Il ne reste plus qu'à gOOglelifier pour savoir comment installer cette librairie sur ton système...
from glances.
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)
- Crash when reading timezone for generating alert HOT 2
- pip glances export does't have docker resource HOT 1
- Refactor the QuickLook plugin to add Load HOT 1
- zsh: command not found: glances
- ModuleNotFoundError when using `--export influxdb2` in with latest-full docker image HOT 5
- On Linux OS, add guest CPU stat HOT 1
- Unable to Autostart glances using the systemd instructions [SOLVED] HOT 1
- ubuntu-latest-full with docker stat support
- If FastAPI server failed to start, Glances do not return a critical error
- Use glances network alias if available HOT 1
- url_prefix does not work on develop HOT 2
- Release 3.4.0.2's Alpine docker base out of date; Release 3.4.0.2 on newer Alpine 3.19.1 and 3.18.6 tags
- .gitignore in package HOT 1
- Ability to use glances --export influxdb in web interface mode HOT 1
- Glances silently fails on Windows 11 HOT 5
- Glances won't start on Windows 10 HOT 1
- NPU Monitoring HOT 1
- Custom system header information HOT 3
- Devel branch: Alpine Docker Image build failed on Alpine HOT 2
- [Documentation] Docker compose password unrecognized arguments when applying docs. HOT 2
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.