FAQ
I updated Python to 3.1.3 on Mac OSX. Now suddenly in the Interactive
interpreter I get all this instead of scrolling the history:
^[[A^[[A^[[A
What's wrong and how to fix it?

-- Gnarlie
http://Gnarlodious.com

Search Discussions

  • Chris Rebert at Jun 1, 2011 at 4:55 pm

    On Wed, Jun 1, 2011 at 7:37 AM, Gnarlodious wrote:
    I updated Python to 3.1.3 on Mac OSX. Now suddenly in the Interactive
    interpreter I get all this instead of scrolling the history:
    ^[[A^[[A^[[A
    What's wrong and how to fix it?
    Looks like GNU readline support wasn't enabled in the build you
    installed. How did you install your Python?

    Cheers,
    Chris
  • Gnarlodious at Jun 1, 2011 at 4:59 pm
    Like so:

    ./configure MACOSX_DEPLOYMENT_TARGET.6 \
    --enable-framework=/usr/local/python-3.1/frameworks \
    --prefix=/usr/local/python-3.1 \
    --enable-universalsdk=/ \
    --with-universal-archs=intel

    Is there some directive to enable Readline?

    -- Gnarlie
    http://Gnarlodious.com
  • Ned Deily at Jun 1, 2011 at 8:56 pm
    In article
    <6dc00d94-2776-47c1-8ad6-d7e608c6e403 at n11g2000yqf.googlegroups.com>,
    Gnarlodious wrote:
    Like so:

    ./configure MACOSX_DEPLOYMENT_TARGET.6 \
    --enable-framework=/usr/local/python-3.1/frameworks \
    --prefix=/usr/local/python-3.1 \
    --enable-universalsdk=/ \
    --with-universal-archs=intel

    Is there some directive to enable Readline?
    You need to supply your own copy of GNU readline; Apple does not ship
    it. You can use one from MacPorts or other 3rd-party distributor.
    Python 2.7 and 3.2 have a feature to use the readline compatibility
    interface of BSD editline (libedit) which Apple does ship but that
    feature was not backported to Python 3.1. The python.org 3.1.x
    installers are built with GNU readline (and there is one for 3.1.4rc1).

    --
    Ned Deily,
    nad at acm.org
  • Gnarlodious at Jun 3, 2011 at 2:40 am
    After copious headscratching I took Ned's advice and went for 3.2
    which includes built-in interactive arrow key support. To any Mac OSX
    readers, save yourself the trouble and don't even try Python 3.1.3.

    -- Gnarlie
    http://Gnarlodious.com
  • Ned Deily at Jun 3, 2011 at 8:08 am
    In article
    <730fedb4-a3ad-46df-ad66-2376d0af4d4d at p13g2000yqh.googlegroups.com>,
    Gnarlodious wrote:
    After copious headscratching I took Ned's advice and went for 3.2
    which includes built-in interactive arrow key support. To any Mac OSX
    readers, save yourself the trouble and don't even try Python 3.1.3.
    Or use a binary installer (like those provided by python.org) or a
    third-party package distributor (like MacPorts or Homebrew) that has
    done the hard work for you. That said, you should find many
    improvements in 3.2.x over 3.1.x. 3.2.1rc1 ("rc" == "release
    candidate") is available now and an rc2 should be available in the very
    near future. If you have to stick with 3.1 for some reason, there's
    also a 3.1.4rc1 available now. And a 2.7.2rc1. All available with
    source, Windows installers, and Mac OS X installers.

    http://www.python.org/download/releases/3.2.1/
    http://www.python.org/download/releases/3.1.4/
    http://www.python.org/download/releases/2.7.2/

    --
    Ned Deily,
    nad at acm.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJun 1, '11 at 2:37p
activeJun 3, '11 at 8:08a
posts6
users3
websitepython.org

People

Translate

site design / logo © 2022 Grokbase