Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1000187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:28:24+00:00 2026-05-16T07:28:24+00:00

I was wondering if anyone can explain why all of a sudden in Python

  • 0

I was wondering if anyone can explain why all of a sudden in Python interactive mode all arrow keys are failing?

When I press up button for example to go through command history I get “^[[A”. Same with any other arrow keys.

I have no idea why this happened and it was working before (on OS X Snow Leopard). Does anyone know a way to fix this?

Many thanks,

G

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:28:25+00:00Added an answer on May 16, 2026 at 7:28 am

    You don’t say which Python you are using but the symptoms you mention are indeed usually caused by Python not being built with readline support. These days Python on OS X can be built to use either the GNU readline library or the Apple-supplied editline library (AKA libedit). You can use the following two commands to show exactly which Python you are using. If that does not help you figure out what is going on, edit your question to show the output from those commands.

    Here’s an example that shows a recent MacPorts Python 2.6 on OS X 10.6:

    $ python -c 'import sys;print(sys.version);print(sys.executable)'
    2.6.5 (r265:79063, Jul 15 2010, 01:53:46) 
    [GCC 4.2.1 (Apple Inc. build 5659)]
    /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
    
    $ otool -L $(python -c 'import readline; print(readline.__file__)')
    /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/readline.so:
        /opt/local/lib/libreadline.6.1.dylib (compatibility version 6.0.0, current version 6.1.0)
        /opt/local/lib/libncursesw.5.dylib (compatibility version 5.0.0, current version 5.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
    

    The path prefix /opt/local/ is the default location for MacPorts-installed software and the output from otool indicates that this Python’s readline module is dynamically linked to the MacPorts-installed GNU readline library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if anyone can post an example of how to get a
I just wondering if anyone can explain to me how I would go about
I've just stumbled on a weird scenario and am wondering if anyone can explain
This is very odd, and I'm just wondering if anyone can explain this to
Wondering if anyone can suggest a good file replication tool that will replicate across
Was wondering if anyone can point me to an open source java quant library
I was wondering if anyone can point me in the right direction. I have
I am wondering if anyone can suggest solutions for adding together datetimes in mysql?
I am wondering if anyone can point me in the direction of learning how
I'm new to Oracle and I'm wondering if anyone can tell me what is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.