Issue 31951: import curses is broken on windows (original) (raw)

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 "", line 1, in File "C:\Users\user name\AppData\Local\Programs\Python\Python36-32\lib\curses\__init__.py", line 13, in 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: and .
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:54 admin set github: 76132
2021-01-06 09:45:38 serhiy.storchaka set status: open -> closedsuperseder: curses for win32resolution: duplicatestage: resolved
2017-11-07 20:17:14 joe m2 set messages: +
2017-11-06 16:52:39 serhiy.storchaka set nosy: + serhiy.storchakamessages: +
2017-11-06 16:42:15 zach.ware set messages: +
2017-11-06 16:00:05 paul.moore set messages: +
2017-11-06 15:45:59 vstinner set nosy: + vstinnermessages: +
2017-11-05 22:55:53 joe m2 create