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

Broken on python 2.7.6 (works on 2.7.5) #35

Closed
alonisser opened this issue Apr 15, 2014 · 1 comment
Closed

Broken on python 2.7.6 (works on 2.7.5) #35

alonisser opened this issue Apr 15, 2014 · 1 comment

Comments

@alonisser
Copy link

I checked (with pyenv):
works perfectly with python 2.7.5
when changing to python 2.7.6 broke with this error:

Traceback (most recent call last):
File "/home/alon/.pyenv/versions/2.7.6/bin/ngxtop", line 9, in
load_entry_point('ngxtop==0.0.2', 'console_scripts', 'ngxtop')()
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 348, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2311, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2025, in load
File "/home/alon/.pyenv/versions/2.7.6/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 61, in
import curses
File "/home/alon/.pyenv/versions/2.7.6/lib/python2.7/curses/init.py", line 15, in
from _curses import *
ImportError: No module named _curses

BESIDES: great tool! love to use it

@alonisser
Copy link
Author

Sorry, my bad. Seems my python 2.7.6 installation (with pyenv) was without the _curses lib. so python installs but skips the _curses module.

If anyone else bumps into this on ubunto with pyenv install python 2.7.6

sudo apt-get install libreadline6-dev # for readline,  _curses,  _curses_panel
sudo apt-get install ncurses-dev

and then reinstall (or recompile) python 2.7.6.

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

No branches or pull requests

1 participant