From: Thomas A. N. <ta...@po...> - 2000-05-03 06:07:20
|
Harry, On Tue, May 02, 2000 at 11:47:49PM -0400, Harry Henry Gebel wrote: > Try removing _curses.i line 243, many functions in ncurses are really > macros, and macros do not get along with SWIG (at least not 1.1.5), for > whatever reason your version of ncurses may have keybound as a macro while > mine has it as a function (you could also look into curses.h, all the > definitions are commented in the prototype to show whether they are macros > or not.) Here's the only reference to keybound in curses.h: extern char *keybound (int, int); and keybound does not appear in the list of function prototypes in curses.h > Try building again with line 243 missing from _curses.i , tell mo > the result and we will work from there. When I do that, I no longer get the keybound error message, but now I get this: [tan@tan pyncurses-0.3]$ examples/curses_example.py Traceback (innermost last): File "examples/curses_example.py", line 2, in ? from ncurses.curses import * # import the curses module File "ncurses/curses.py", line 23, in ? from ncurses import _curses # import curses interface ImportError: cannot import name _curses Tom -- Tom Newman ta...@po... |