Menu

PyDev + Eclipse + ncurses can't find te...

crsn
2011-09-29
2013-03-15
  • crsn

    crsn - 2011-09-29

    Hi,

    I'm writing an ncurses application using pydev under linux.

    When I try to run the program, the eclipse console says

        self.stdscr = curses.initscr()
      File "/usr/lib/python2.6/curses/__init__.py", line 33, in initscr
        fd=_sys.__stdout__.fileno())
    _curses.error: setupterm: could not find terminal
    

    I suppose the problem is clearly that (eclipse?) cannot find a right terminal in order to use properly the ncurses.

    how can I say to ncurses what terminal to use?
    do I haveto change it via the eclipse IDE? how?

    the program runs fine outside eclipse

    thanks!

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-09-29

    Unfortunately, Eclipse launches the program without allocating a real terminal, so, ncurses applications aren't really able to be run inside Eclipse (I think there's an issue already open in Eclipse for that). Not sure it's something that can be solved in the PyDev side, but still, please create a bug-report for that (other than that, maybe you could create a shell that spawns a terminal and then runs your program - you'd still have it outside of Eclipse, but at least you can run it with the Eclipse shortcuts).

    Cheers,

    Fabio

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.