Having trouble with python readline

Ryan Schmidt ryandesign at macports.org
Sat Feb 9 00:10:28 PST 2013


On Feb 9, 2013, at 01:17, Scott Webster wrote:

> I have python25 and py25-readline installed.  python25 is set to be default with port select.  But I can't import readline.  Am I missing something simple here?
> 
> Thanks for any advice!
> 
> 
> swim:~ swebster$ port installed python25 py25-readline
> The following ports are currently installed:
>   py25-readline @6.2.2_0 (active)
>   python25 @2.5.6_4 (active)
> swim:~ swebster$ port select --show python
> The currently selected version for 'python' is 'python25'.
> swim:~ swebster$ python
> Python 2.5.6 (r256:88840, Nov 18 2012, 05:37:10) 
> [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import readline
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named readline
> >>> 

Works fine for me. Are python25 and py25-readline installed for the same architecture(s)? What do you get for:

$ port -v installed python25 py25-readline
$ lipo -info /opt/local/bin/python2.5 /opt/local/lib/python2.5/site-packages/readline/readline.so






More information about the macports-users mailing list