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

Probléme de psutil #125

Closed
GeoHolz opened this issue Nov 15, 2012 · 20 comments
Closed

Probléme de psutil #125

GeoHolz opened this issue Nov 15, 2012 · 20 comments
Labels

Comments

@GeoHolz
Copy link

GeoHolz commented Nov 15, 2012

Bonjour,

Voici le résultat sur ma debian 6 / x64 :

pip install psutil
Downloading/unpacking psutil
Downloading psutil-0.6.1.tar.gz (138Kb): 138Kb downloaded
Running setup.py egg_info for package psutil

Installing collected packages: psutil
Running setup.py install for psutil
building '_psutil_linux' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o -o build/lib.linux-x86_64-2.7/_psutil_linux.so
building '_psutil_posix' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o -o build/lib.linux-x86_64-2.7/_psutil_posix.so

Successfully installed psutil
Cleaning up...
11:32 root@simp # glances -v
PsUtil > 0.4.0 is needed. Glances cannot start.
()
On Ubuntu 12.04 or higher:
$ sudo apt-get install python-psutil
()
To install PsUtil using pip (as root):

pip install psutil

()
zsh: exit 1 glances -v

@nicolargo
Copy link
Owner

A essayer:

# apt-get remove python-psutil

@GeoHolz
Copy link
Author

GeoHolz commented Nov 15, 2012

Deja fait

@nicolargo
Copy link
Owner

Peux tu nous retourner le résultat des commandes suivantes:

apt-cache show python-psutil

glances -v

python -c "import psutil ; print psutil.__version__"

@nicolargo nicolargo reopened this Nov 15, 2012
@GeoHolz
Copy link
Author

GeoHolz commented Nov 15, 2012

apt-cache show python-psutil
Package: python-psutil
Priority: optional
Section: python
Installed-Size: 176
Maintainer: Debian Python Modules Team python-modules-team@lists.alioth.debian.org
Architecture: all
Version: 0.1.3-1
Depends: python (>= 2.4), python-support (>= 0.90.0)
Filename: pool/main/p/python-psutil/python-psutil_0.1.3-1_all.deb
Size: 53964
MD5sum: 06ee52e85a3e917a2bce67e7e8ecf570
SHA1: 8916c3eca60f14eb4818cc0c3a850b865e8f2775
SHA256: d8ac474fb748634b002ba994365a13ec287cba4b47e5c75e4196d05d064e18a5
Description-en: module providing convenience functions for managing processes
psutil is a module providing an interface for retrieving information on
running processes and system utilization (CPU, memory) in a portable way
by using Python, implementing many functionalities offered by tools like
ps, top and Windows task manager.
.
It currently supports Linux, OS X, FreeBSD and Windows.
Homepage: http://code.google.com/p/psutil/

Package: python-psutil
Version: 0.5.1-1
Installed-Size: 210
Maintainer: Debian Python Modules Team python-modules-team@lists.alioth.debian.org
Architecture: amd64
Depends: libc6 (>= 2.3.4), python (<< 2.8), python (>= 2.6), python-support (>= 0.90.0)
Description-en: module providing convenience functions for managing processes
psutil is a module providing an interface for retrieving information on
running processes and system utilization (CPU, memory) in a portable way
by using Python, implementing many functionalities offered by tools like
ps, top and Windows task manager.
.
It currently supports Linux, OS X, FreeBSD and Windows.
Homepage: http://code.google.com/p/psutil/
Description-md5: 005481275c8fc26b0d2a10ba28345971
Section: python
Priority: optional
Filename: pool/main/p/python-psutil/python-psutil_0.5.1-1_amd64.deb
Size: 55364
MD5sum: a9806f02bcb01ddad9e6bb8811d7cedf
SHA1: cf328cfba4babcebb98bf5a796b81ae57c9696b1
SHA256: 1e6b043a39b7d25c008e242f5f6f747b0dab02412a62d5b1c3b1167f4f30cb5c

glances -v
PsUtil > 0.4.0 is needed. Glances cannot start.
()
On Ubuntu 12.04 or higher:
$ sudo apt-get install python-psutil
()
To install PsUtil using pip (as root):

pip install psutil

()
zsh: exit 1 glances -v

python -c "import psutil ; print psutil.version"
0.6.1

@nicolargo
Copy link
Owner

Et:

ls -alF /usr/local/lib/python2.6/dist-packages/

@GeoHolz
Copy link
Author

GeoHolz commented Nov 15, 2012

Je ne connais pas trop github, quel est la syntaxe pour le code ?

ls -alF /usr/local/lib/python2.6/dist-packages/
total 8.0K
drwxrwsr-x 2 root staff 4.0K Nov 15 11:32 ./
drwxrwsr-x 4 root staff 4.0K Nov 15 11:16 ../

@nicolargo
Copy link
Owner

4 espaces devant les lignes de code.

tu peux nous renvoyer le ls -alF mais pour le chemin: /usr/local/lib/python2.7/dist-packages/ ?

@GeoHolz
Copy link
Author

GeoHolz commented Nov 15, 2012

 ls -alF /usr/local/lib/python2.7/dist-packages/
 total 80K
 drwxrwsr-x 6 root staff 4.0K Nov 15 11:32 ./
drwxrwsr-x 4 root staff 4.0K Nov  8 11:31 ../
drwxr-sr-x 5 root staff 4.0K Nov 15 11:00 glances/
drwxr-sr-x 2 root staff 4.0K Nov 15 11:00 Glances-1.5.1.egg-info/
drwxr-sr-x 2 root staff 4.0K Nov 15 11:32 psutil/
drwxr-sr-x 2 root staff 4.0K Nov 15 11:32 psutil-0.6.1.egg-info/
-rwxr-xr-x 1 root staff  33K Nov 15 11:32 _psutil_linux.so*
-rwxr-xr-x 1 root staff  20K Nov 15 11:32 _psutil_posix.so*

@nicolargo
Copy link
Owner

Je ne comprends pas pourquoi cela ne marche pas...

Peux tu poster le contenu du fichier: /usr/local/bin/glances

ainsi que le résultat de la commande:

python -v

@GeoHolz
Copy link
Author

GeoHolz commented Nov 15, 2012

 python -V
Python 2.7.3


#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Glances==1.5.1','console_scripts','glances'
__requires__ = 'Glances==1.5.1'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('Glances==1.5.1', 'console_scripts', 'glances')()
    )

@nicolargo
Copy link
Owner

J'ai exactement la même conf que toi et ca mache nickel sur ms deux machines...

Essaye ca:

pip uninstall glances
pip uninstall psutil
rm -f /usr/local/bin/glances
rm -rf /usr/local/lib/python2.7/dist-packages/glances*
rm -rf /usr/local/lib/python2.7/dist-packages/Glances*
rm -rf /usr/local/lib/python2.7/dist-packages/psutil*
rm -rf /usr/local/lib/python2.7/dist-packages/_psutil*
pip install glances

@GeoHolz
Copy link
Author

GeoHolz commented Nov 15, 2012

Je viens de tout désinstaller , pas encore fait ton pip install glances.

Je viens de tester au cas ou :

 find / -name glances
 /usr/local/doc/glances
 /usr/bin/build/glances
 /usr/bin/build/glances/build/lib.linux-x86_64-2.7/glances
 /usr/bin/build/glances/glances

Est ce normal ?

@nicolargo
Copy link
Owner

Tu es dans une VM ou sur une machine physique ?

@nicolargo
Copy link
Owner

Essaye avec la dernière version HEAD, cela corrigera peut être ton problème !

@GeoHolz
Copy link
Author

GeoHolz commented Nov 19, 2012

C'est une VM oui, tu ne m'as pas répondu au dessus, est ce normal ?

@nicolargo
Copy link
Owner

tu peux supprimer ces fichier et refaire une installation depuis le HEAD (je n'ai pas encore publié la version qui doit corriger ton bug).

@GeoHolz
Copy link
Author

GeoHolz commented Nov 19, 2012

Désolé mais je ne comprends pas ce que tu entends par "depuis le HEAD", c'est à dire avec les sources ?

@nicolargo
Copy link
Owner

Oui depuis les sources directement.


Avant donc que d'écrire, apprenez à penser.
-+- Nicolas Boileau, Art poétique -+-
*

2012/11/19 NourSs notifications@github.com

Désolé mais je ne comprends pas ce que tu entends par "depuis le HEAD",
c'est à dire avec les sources ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/125#issuecomment-10506213.

@GeoHolz
Copy link
Author

GeoHolz commented Nov 19, 2012

Ouaip, ça a fonctionné !

@nicolargo
Copy link
Owner

Cool :)

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