curses: AttributeError: initscr

Cesar g0w1s0 at yahoo.ca
Mon Sep 2 09:01:13 EDT 2002


Dennis Lee Bieber wrote:

>> 
>> 
>> I'm running python 1.5/2.2.1 under redhat linux 7.2.
>> 
>         So which is it when you get the error?

both

> 
>         I could be wrong (I've not kept track of when certain changes took
> effect) but does 1.5 understand library directories? On this system
> (Mandrake) curses is a directory with an __init__.py file.
> 
>         What does (from python) dir(curses) return?
> 
>>> dir(curses)
['__builtins__', '__doc__', '__file__', '__name__', 'sys']

the file curses.py was in the same directory where my script was.

this file contained only some testing instructions.

when I removed the curses.py file, all remains ok.

thanks



More information about the Python-list mailing list