[Pythonmac-SIG] enabling readline
Scott Frankel
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
readline
build went smoothly and without error; but importing readline in a
python
console spits:
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.
Dunno.
Thanks in advance for helping me get this running! Here are the
particulars:
MacOSX 10.2.4
readline-4.3
- 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
/usr/local/lib/
libreadline.4.3.dylib
libreadline.a
- install script ended by recommending that I run ldconfig. But
there's no
such tool present on my machine.
python from Apple Developer Tools install:
/usr/bin/python2.2
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
having that
path set. I even renamed one to "foo.pyc" and was able to import it in
a python
console.
Clearly, I'm at a loss as to which readline compile product (readline.o
or the
/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
like they
were intended for python.
Thanks again!
Scott
More information about the Pythonmac-SIG
mailing list