[MacPorts] #45301: spacebar not recognized in python macport version
MacPorts
noreply at macports.org
Fri Oct 17 15:24:20 PDT 2014
#45301: spacebar not recognized in python macport version
------------------------------------+--------------------------------
Reporter: manzotti.alessandro@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Resolution: | Keywords:
Port: |
------------------------------------+--------------------------------
Comment (by nad@…):
Ah, one last thought: make sure Python is really importing the right
`readline.so` and check the library dependencies on it with `otool -L`.
I forgot that `py27-readline` installs its own version of `readline.so`
(in `site-packages/readline`) and then does some fancy `sys.path`
manipulation at Python startup to ensure that its `readline.so` is found
before the standard library `readline.so` (linked with libedit).
{{{
>>> import readline
>>> readline.__file__
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/readline/readline.so'
$ otool -L
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/readline/readline.so'
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/readline/readline.so:
/opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0,
current version 5.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1213.0.0
}}}
Note that the `py27-readline` `readline.so` is statically linked with GNU
`readline`.
--
Ticket URL: <https://trac.macports.org/ticket/45301#comment:9>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list