This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: import curses fails
Type: Stage:
Components: Windows Versions: Python 2.5
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, thorvinrhuebarb
Priority: normal Keywords:

Created on 2006-11-17 13:40 by thorvinrhuebarb, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg30578 - (view) Author: thorvinrhuebarb (thorvinrhuebarb) Date: 2006-11-17 13:40
I am new to python and teaching myself.

I downloaded and installed python 2.5 for windows from the main page, accepting all defaults. 

python is installed in c:\Python25

I am able to import everything else I have tried sucessfully. "sys", "os", self written code.

There is a "curses" subfolder in the c:\Python25\Lib folder it contains
.py versions of all of the following files

The documentation includes curses in the "Generic Operating System Services"

From what I have read this should indicate that  can uses curses in windows (even though this was not the case in previous versions of python).

When I attempt to "import curses" I get the following result.

>>> import curses

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import curses
  File "C:\Python25\Lib\curses\", line 15, in <module>
    from _curses import *
ImportError: No module named _curses

I am unsure if this is an error in documentation and curses does not in fact work with windows or if there is an error in the default windows installation.

msg30579 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-11-17 13:45
The C curses library is not available for Windows.  (Ports are available, but I've never seen anyone build Python with them and make the resulting binary available.)

The 'curses' directory is present, but using it relies on an underlying C extension for Python called '_curses'; it's _curses that can't be built for Windows.
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44245
2006-11-17 13:40:34thorvinrhuebarbcreate