curses: AttributeError: initscr
Cesar
g0w1s0 at yahoo.ca
Sun Sep 1 22:22:00 EDT 2002
Cesar wrote:
>
>
> I'm running python 1.5/2.2.1 under redhat linux 7.2.
>
> I'm trying to use the curses module like this :
>
> 1: import curses
> 2:
> 3: screen = curses.initscr()
> 4:
>
> and I get this error msg:
>
> Traceback (innermost last):
> File "./curses_test.py", line 6, in ?
> screen = curses.initscr()
> AttributeError: initscr
>
> any idea ??
the problem was stupid !!!
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...
I'm new to python.. so..
More information about the Python-list
mailing list