curses: AttributeError: initscr

Gerhard Häring gerhard.haering at gmx.de
Mon Sep 2 04:37:58 CEST 2002


* Cesar <g0w1s0 at yahoo.ca> [2002-09-01 22:22 -0400]:
> in the same directory where my script live, there was an old file named 
> curses.py. Then the instruction : "import curses" imported the bad one...

You're not the first one to have this kind of problem.

A way to debug such problems is to start Python with the option "-v" or
even "-vv", which helps you track down where modules are really loaded
from.

-- Gerhard




More information about the Python-list mailing list