On 2/26/07, Peter Hodgson <peter.hodgson@...> wrote:
> Hi all,
> I'm trying to use the python bindings for ncurses by using the curses
> module, the problem is that when I try to import curses I get the
> >>>import curses
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.4/curses/__init__.py", line 15, in ?
> from _curses import *
> ImportError: No module named _curses
> I read in a forum (http://www.thescripts.com/forum/thread20697.html)
> that this was due to a missing symlink. After adding the missing symlink
> in /lib and /usr/lib and recompiling python I still get the same error
> message even though while pythons compiling it checks and finds the
> availability and usability and so on of ncurses.
> Does anyone have any suggestions for this, I've gone as far as I can
> myself (python/ncurses/linux newbie).
I haven't tried Python on the gumstix yet, but the _curses module is
usually located under /usr/lib/python2.4/lib-dynload/_curses.so. It's
a native code module (as opposed to a pure python module) so it needs
to be compiled and linked to libncurses for each platform.