From: Harry H. G. <hg...@in...> - 2000-05-03 03:56:38
|
On Tue, May 02, 2000 at 07:10:26PM -0700, Thomas Andrew Newman wrote: > I ran setup.py build and setup.py install. > I get this when I try any of the example scripts or even a > script that says nothing but 'import ncurses.curses': > > Traceback (innermost last): > File "curses_example.py", line 2, in ? > from ncurses.curses import * # import the curses module > File > "/usr/lib/python1.5/site-packages/ncurses/curses.py", line > 23, in ? > from ncurses import _curses # import curses interface > ImportError: > /usr/lib/python1.5/site-packages/ncurses/_curses.so: > undefined symbol: keybound > linux 2.2.15pre3 on a power mac (linuxppc distro) > ncurses 5.0 > python 1.5.2-7 > I've used ncurses successfully using the python module cursesmodule.1.5b2 > and using the perl module Curses. > Here's the sizes of the .so files. Do these look right? > > -rwxrwxr-x 1 root root 219780 May 2 18:52 _curses.so* > -rwxrwxr-x 1 root root 139581 May 2 18:52 _form.so* > -rwxrwxr-x 1 root root 107299 May 2 18:52 _menu.so* > -rwxrwxr-x 1 root root 56810 May 2 18:52 _panel.so* Tom, 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.) Try building again with line 243 missing from _curses.i , tell mo the result and we will work from there. -- Harry Henry Gebel, Senior Developer, Landon House SBS West Dover Hundred, Delaware PyNcurses ncurses binding for Python: http://pyncurses.sourceforge.ne |