472,348 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,348 software developers and data experts.

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

Jul 18 '05 #1
0 4165

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Carsten Gehling | last post by:
I've tried to install pso on my webserver and made the first test example. When trying to run it (eg. from the prompt), I get the following error:...
by: Carsten Gehling | last post by:
Figured out myself - I just removed the line with "from url import Url" -it doesn't seem to be used anywhere ;-) - Carsten > -----Oprindelig...
by: Rana | last post by:
hi! is there some dns module for RedHat? or some dns functions in an existing module? It seems to be some python-dns for Debian and Mandrake,...
by: Kenneth McDonald | last post by:
I'm working on the 0.8 release of my 'rex' module, and would appreciate feedback, suggestions, and criticism as I work towards finalizing the API...
by: Jim Rendant | last post by:
I tried to compile the GD module on REDHAT 9 and it fails to compile. It fails during the make process. I am hoping that there is already a...
by: skip | last post by:
I'm having no success building the curses module on Solaris 8 (yes, I know it's ancient - advancing the state-of-the-art is not yet an option) for...
by: kernel1983 | last post by:
when I type command below in windows python: import curses it gives the error msg! It can't find _curses.pyd Is this a bug?
by: alain MONTMORY | last post by:
Hello everybody, I am a newbie to python so I hope I am at the right place to expose my problem........
by: Shea Martin | last post by:
I just installed active python, and I get this error: % python ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on Python 2.4.3...
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.