469,331 Members | 6,245 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

No module named _curses (RedHat 7)

In January someone had this problem on Windows, but I saw it
on a RedHat 7.1 system today.

[]$ python life.py
Traceback (most recent call last):
File "life.py", line 21, in ?
import curses
File "/usr/local/lib/python2.2/curses/__init__.py", line 15, in ?
from _curses import *
ImportError: No module named _curses
[]$

Turns out my installtion did not have a symlink for libncurses:

# cd /usr/lib
# ls -l libncurses*
lrwxrwxrwx 1 root root 17 Apr 27 08:33 libncurses.so.5 -> libncurses.so.5.2
-rwxr-xr-x 1 root root 257524 Mar 6 2001 libncurses.so.5.2
# ln -s libncurses.so.5.2 libncurses.so

Then, go back to your Python sourse directory and do make and make install.

--
Duane Voth
du****@io.com
--
dj*@djv.net

Jul 18 '05 #1
0 3853

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Carsten Gehling | last post: by
reply views Thread by Carsten Gehling | last post: by
reply views Thread by Rana | last post: by
reply views Thread by Jim Rendant | last post: by
3 posts views Thread by kernel1983 | last post: by
1 post views Thread by alain MONTMORY | last post: by
1 post views Thread by Shea Martin | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.