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: Empty curses module is loaded in win32
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: anadelonbrin, tebeka
Priority: normal Keywords:

Created on 2004-07-12 11:00 by tebeka, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg21521 - (view) Author: Miki Tebeka (tebeka) * Date: 2004-07-12 11:00
When doing "import curses" an empty curses module is
loaded.
I think that since curses is not supported in win32
that an ImportError should be raised (like in 2.3)
msg21522 - (view) Author: Tony Meyer (anadelonbrin) Date: 2005-01-31 00:25
Logged In: YES 
user_id=552329

I do not get this behaviour (I get the expected ImportError):

C:\>c:\python22\python
Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import curses
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named curses

C:\>c:\python23\python
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import curses
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named curses

C:\>c:\python24\python
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import curses
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "c:\python24\lib\curses\__init__.py", line 15, in ?
    from _curses import *
ImportError: No module named _curses

What version of Python is this with?  Do you possibly have a
curses.pyc that shouldn't be there?
msg21523 - (view) Author: Miki Tebeka (tebeka) * Date: 2005-01-31 07:13
Logged In: YES 
user_id=358087

Currently I have 2.4 installed and I also get an ImportError.
Looks likes something went wrong with my 2.3 installation.

Closing the bug.
History
Date User Action Args
2022-04-11 14:56:05adminsetgithub: 40546
2004-07-12 11:00:17tebekacreate