[Pythonmac-SIG] enabling readline
leknarf at pacbell.net
Sun Jun 1 23:08:05 EDT 2003
I'm attempting to enable the readline utility for my install of Python,
which I got with the Developers Tools install. Each step of the
build went smoothly and without error; but importing readline in a
ImportError: No module named readline
My guess (unless someone's got another idea) is that I'm got a bum path;
or some part of the readline install put a file where it didn't belong.
Thanks in advance for helping me get this running! Here are the
- unpacked from source
- edited readline/support/shobj-conf for ncurses:
SHLIB_LIBS='-lSystem -lncurses -lcc_dynamic'
- configure, make, install with no args
- this produced readline.o in /usr/src/readline-4.3
- also produced
- install script ended by recommending that I run ldconfig. But
such tool present on my machine.
python from Apple Developer Tools install:
I haven't set a PYTHONPATH env var yet. In fact, I don't know what to
set it to.
The modules in /usr/lib/python2.2 load without error in spite of not
path set. I even renamed one to "foo.pyc" and was able to import it in
Clearly, I'm at a loss as to which readline compile product (readline.o
/usr/local/lib/libreadline.* files, or other?) is supposed to by
called. And, can
python import a non-pyc object? None of the readline products looked
were intended for python.
More information about the Pythonmac-SIG