Having trouble with python readline
Scott Webster
sewebster at gmail.com
Sat Feb 9 00:15:12 PST 2013
swim:~ swebster$ port -v installed python25 py25-readline
The following ports are currently installed:
py25-readline @6.2.2_0 (active) platform='darwin 12' archs='x86_64'
python25 @2.5.6_4 (active) platform='darwin 12' archs='x86_64'
swim:~ swebster$ lipo -info /opt/local/bin/python2.5
/opt/local/lib/python2.5/site-packages/readline/readline.so
Non-fat file: /opt/local/bin/python2.5 is architecture: x86_64
Non-fat file: /opt/local/lib/python2.5/site-packages/readline/readline.so
is architecture: x86_64
On Sat, Feb 9, 2013 at 12:10 AM, Ryan Schmidt <ryandesign at macports.org>wrote:
>
> 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
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20130209/38d12568/attachment.html>
More information about the macports-users
mailing list