LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Messed up Python Curses (https://www.linuxquestions.org/questions/programming-9/messed-up-python-curses-388464/)

happygiraffe98 12-01-2005 08:20 PM

Messed up Python Curses
 
I recently discovered that there was a curses library for Python :D

Overjoyed, I immediately set to programming.

Unfortunately, I tried to execute a simple command and got the following:
>>>import curses
>>>curses.initscr()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'initscr'
>>>

Eh? :confused: The same command worked just moments ago...what happened? I did some internet searching, and I believe the problem is occuring because I didn't properly end a curses session with curses.endwin(). I tired that command too, but got a similar error as above. Unfortunately, I couldn't find a solution to the problem :mad:

Any help you be greatly appreciated.

dogpatch 12-02-2005 02:09 AM

I think you can simply logout and log back in, or switch to a different terminal session. (And correct your code, too)
Quote:

The day after tomorrow is the third day of the rest of your life.

happygiraffe98 12-02-2005 08:53 AM

Quote:

Originally posted by dogpatch
I think you can simply logout and log back in, or switch to a different terminal session. (And correct your code, too)
Yeah, I've used different sessions and rebooted, but no to avail :mad: .

lol...that evil program has been deleted ;)


All times are GMT -5. The time now is 04:16 PM.