nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
26.32k stars 1.49k forks source link

Not sure where i went wrong #255

Closed q5sys closed 11 years ago

q5sys commented 11 years ago

I'm pretty sure this problem is on my end, but I'm having an idiot moment and cant for the life of me track down where my issue is. So I'm hoping you can point me in the right direction since I'm not seeing the resolution. My python skills are somewhat limited at this point, so I'm drawing a blank on how to fix my issue.

*I know glances needs psutil, so I install that, I run pip list to make sure its installed.

sh-4.1# pip list iotop (0.5) psutil (0.7.1) vboxapi (1.0) wsgiref (0.1.2) zenmap (6.01)

*I try to run glances

sh-4.1# glances Traceback (most recent call last): File "/usr/bin/glances", line 5, in from pkg_resources import load_entry_point ImportError: No module named pkg_resources

*I check my pyhon version

sh-4.1# python --version Python 2.7.3

*I see online that Ineed the setup tools package. so I go download that and install it.

sh-4.1# sh setuptools-0.6c11-py2.7.egg Processing setuptools-0.6c11-py2.7.egg Copying setuptools-0.6c11-py2.7.egg to /usr/lib64/python2.7/site-packages Adding setuptools 0.6c11 to easy-install.pth file Installing easy_install script to /usr/bin Installing easy_install-2.7 script to /usr/bin

Installed /usr/lib64/python2.7/site-packages/setuptools-0.6c11-py2.7.egg Processing dependencies for setuptools==0.6c11 Finished processing dependencies for setuptools==0.6c11

*I try to run glances again sh-4.1# glances

Traceback (most recent call last): File "/usr/bin/glances", line 5, in from pkg_resources import load_entry_point File "/usr/lib64/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2603, in File "/usr/lib64/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require File "/usr/lib64/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve pkg_resources.DistributionNotFound: Glances==1.6.1

*I search online and I see that some people had success with updating pip to resolve this DistrubitionNotFound issue.

sh-4.1# easy_install --upgrade pip Searching for pip Reading http://pypi.python.org/simple/pip/ Best match: pip 1.3.1 Downloading http://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#md5=cbb27a191cebc58997c4da8513863153 Processing pip-1.3.1.tar.gz Running pip-1.3.1/setup.py -q bdist_egg --dist-dir /tmp/easyinstall-1jN85V/pip-1.3.1/egg-dist-tmp-hwxAQR warning: no files found matching '.html' under directory 'docs' warning: no previously-included files matching '_.txt' found under directory 'docs/_build' no previously-included directories found matching 'docs/_build/_sources' Adding pip 1.3.1 to easy-install.pth file Installing pip script to /usr/bin Installing pip-2.7 script to /usr/bin

Installed /usr/lib64/python2.7/site-packages/pip-1.3.1-py2.7.egg Processing dependencies for pip Finished processing dependencies for pip

*I try to run glances again.

sh-4.1# glances Traceback (most recent call last): File "/usr/bin/glances", line 5, in from pkg_resources import load_entry_point File "/usr/lib64/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2603, in File "/usr/lib64/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require File "/usr/lib64/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve pkg_resources.DistributionNotFound: Glances==1.6.1 sh-4.1#

jrenner commented 11 years ago

How did you install glances? what OS are you using?

Did you try just "pip install glances"?

q5sys commented 11 years ago

I'm using a custom PuppyLinux version based on Slackware64 14.0.

I tried pip install glances, and it seemed to install fine, however upon running glances I get the following in the shell window: http://paste2.org/CmsPWFbP

I ran strace and got the following: http://slackbones.org/glances/glances-error.txt

My kernel is 3.7.10, so It should be new enough, so I'll have to go back and check my kernel .config and see if I dont have IO accounting implemented

But at least it installed well, wonder why I was having problems the other way.