[IPython-user] IPython/wxPython crash on ppc Mac OS X 10.4.8
ellisonbg.net at gmail.com
Tue Oct 31 11:08:16 CST 2006
The problem is not with Apple's readline, because Apples readline
doesn't even exist as far as Python knows::
bgranger at pinch> python2.3
Python 2.3.5 (#1, Jan 13 2006, 20:13:11)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import readline
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named readline
The problem that I have observed is with the readline that is included
with the official Python for Mac binary at python.org. I see the
error in both ipython and python, so the bug is in readline. This
build includes its own version of readline and that version is the one
that has the problem. I have the 2.4.3 build from April 7. I haven't
tried the 2.5 build. Yet.
I agres with Fernando that we should not disable these lines in the
ipythonrc file - instead a few words about this on the wiki is
probably the best approach.
On 10/31/06, Fernando Perez <fperez.net at gmail.com> wrote:
> On 10/31/06, Michael Scarpa <m.scarpa at uva.nl> wrote:
> > I just tried this on my setup (the mentioned lines in ipythonrc are
> > active, I checked), and I could not get Python to crash. I believe
> > it comes from the fact that when installing Python through
> > DarwinPorts, readline gets installed as well (as a dependency),
> > meaning that the default readline from Apple is not used. This might
> > explain why this error does not occur. I recall that also Fink is
> > set up like this, so people who install Python using either will most
> > likely have their own readline, which (I presume) does not suffer
> > from above bug/problem.
> Yes, I think the bug only exists in apple's own library, and I don't
> know if it's there in all versions.
> > The question here would be, how to detect whether one is using Python/
> > readline from Apple or their own, but I guess you guys know more
> > about that than I do. Just being curious here.
> If a Mac user is interested in coming up with the patches, they'll be welcome :)
> But I think this is one of those high work/low reward things, and just
> having this thread in the archives with Brian's solution and the
> explanation may be enough for most. I've also added an entry to the
> Feel free to edit it with more details as needed.
> IPython-user mailing list
> IPython-user at scipy.org
More information about the IPython-user