From: Harry H. G. <hg...@in...> - 2000-05-03 07:43:02
|
On Tue, May 02, 2000 at 11:04:11PM -0700, Thomas Andrew Newman wrote: > On Tue, May 02, 2000 at 11:47:49PM -0400, Harry Henry Gebel wrote: > > 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 > Try running curses_example.py from inside the 'examples/' directory, or if you did not run `./setup.py install` from inside the 'build/lib.linux2-ppc' directory. If you run it from the top directory it will pick up the 'ncurses/' as module ncurses and will not be able to import _curses.so because that is in 'build/lib.linux2-ppc/ncurses' (or '/usr/lib/python15/site-packages/ncurses' if you ran `./setup.py install`. -- Harry Henry Gebel, Senior Developer, Landon House SBS West Dover Hundred, Delaware PyNcurses ncurses binding for Python: http://pyncurses.sourceforge.ne |