LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-01-2005, 08:20 PM   #1
happygiraffe98
LQ Newbie
 
Registered: Nov 2005
Location: Ohio
Distribution: Ubuntu Edgy
Posts: 14

Rep: Reputation: 0
Question Messed up Python Curses


I recently discovered that there was a curses library for Python

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? 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

Any help you be greatly appreciated.
 
Old 12-02-2005, 02:09 AM   #2
dogpatch
Member
 
Registered: Nov 2005
Location: Central America
Distribution: Mepis
Posts: 159
Blog Entries: 1

Rep: Reputation: 18
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.
 
Old 12-02-2005, 08:53 AM   #3
happygiraffe98
LQ Newbie
 
Registered: Nov 2005
Location: Ohio
Distribution: Ubuntu Edgy
Posts: 14

Original Poster
Rep: Reputation: 0
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 .

lol...that evil program has been deleted
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
do I need curses? jake_01 Programming 1 04-28-2005 06:24 AM
python - make curses play nice w/ os.system() datadriven Programming 0 02-17-2005 03:31 PM
curses and some terminals dimm_coder Programming 9 05-10-2004 11:04 AM
curses and iostream irfanhab Programming 3 05-10-2004 10:14 AM
Curses nitinkatageri Linux - General 2 08-18-2003 04:58 AM


All times are GMT -5. The time now is 11:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration