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.

classification
Title: import curses is broken on windows
Type: Stage: resolved
Components: Windows Versions: Python 3.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: curses for win32
View: 1005895
Assigned To: Nosy List: joe m2, paul.moore, serhiy.storchaka, steve.dower, tim.golden, vstinner, zach.ware
Priority: normal Keywords:

Created on 2017-11-05 22:55 by joe m2, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (6)
msg305610 - (view) Author: joe m (joe m2) Date: 2017-11-05 22:55
Importing curses on Windows install calls the following:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\user name\AppData\Local\Programs\Python\Python36-32\lib\curses\__init__.py", line 13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'

Importing curses as "_curses" does the same thing. I have tried the "repair" function and it has not worked.
msg305647 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-11-06 15:45
The curses module is not supported on Windows.
msg305648 - (view) Author: Paul Moore (paul.moore) * (Python committer) Date: 2017-11-06 16:00
The docs for the curses module say "While curses is most widely used in the Unix environment, versions are available for Windows, DOS, and possibly other systems as well." This is the only mention of platform support I can see.

It might be worth making the platform support explicit in the docs.
msg305654 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2017-11-06 16:42
Curses is available for Windows from Christopher Gohlke's site: https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses

We should clean up this situation, though, either by making the state of Windows curses support explicit in the docs or by actually adding support for it in the default distribution.
msg305656 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-11-06 16:52
There are two open issues for adding support of the curses module on Windows: issue1005895 and issue2889.
msg305790 - (view) Author: joe m (joe m2) Date: 2017-11-07 20:17
I would much prefer the curses module to be supported in newer versions  since I believe that curses is installed as a built in module (not sure about that).

Anyhow, thank you for your help but I have found a replacement module called "asciimatics" which for fills all the functions that I really need.
History
Date User Action Args
2022-04-11 14:58:54adminsetgithub: 76132
2021-01-06 09:45:38serhiy.storchakasetstatus: open -> closed
superseder: curses for win32
resolution: duplicate
stage: resolved
2017-11-07 20:17:14joe m2setmessages: + msg305790
2017-11-06 16:52:39serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg305656
2017-11-06 16:42:15zach.waresetmessages: + msg305654
2017-11-06 16:00:05paul.mooresetmessages: + msg305648
2017-11-06 15:45:59vstinnersetnosy: + vstinner
messages: + msg305647
2017-11-05 22:55:53joe m2create