I'm receiving the following error while attempting to debug/run a curses based Python script on OS X 10.8.2, IDEA Ultimate 11.1.3, Python plugin 2.9.2, and Python SDK 2.7.2. I can execute the script from a terminal session without any problem. Is there a workaround for this issue to allow debugging within IDEA?
pydev debugger: starting
Traceback (most recent call last):
File "/Users/jamesallman/Library/Application Support/IntelliJIdea11/python/helpers/pydev/pydevd.py", line 1401, in <module>
debugger.run(setup['file'], None, None)
File "/Users/jamesallman/Library/Application Support/IntelliJIdea11/python/helpers/pydev/pydevd.py", line 1055, in run
pydev_imports.execfile(file, globals, locals) #execute the script
File "/Users/jamesallman/IdeaProjects/python/menu/menu.py", line 36, in <module>
wrapper(main)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/wrapper.py", line 22, in wrapper
stdscr = curses.initscr()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/__init__.py", line 33, in initscr
fd=_sys.__stdout__.fileno())
_curses.error: setupterm: could not find terminfo database
Here is the basic code to cause the error:
import curses
from curses.wrapper import wrapper
def main(scr):
scr.box()
scr.refresh()
c = scr.getch()
wrapper(main)