No module named _curses (RedHat 7)

D

Duane Voth

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top