Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problem with keyboard up/down arrows in Python 2.4 interpreter

Reply
Thread Tools

Problem with keyboard up/down arrows in Python 2.4 interpreter

 
 
Julien
Guest
Posts: n/a
 
      03-22-2011
Hi,

I'm having problems when typing the up/down arrows in the Python 2.4
interpreter (exact version: Python 2.4.6 (#1, Mar 3 2011, 15:45:53)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin).

When I press the up arrow it outputs "^[[A" and when I press the down
arrow it outputs "^[[B".

I've google it and it looks like it might be an issue with the
readline not being installed or configured properly. Is that correct?
If so, how can I fix this issue?

Many thanks.

Kind regards,

Julien
 
Reply With Quote
 
 
 
 
Benjamin Kaplan
Guest
Posts: n/a
 
      03-22-2011
On Tue, Mar 22, 2011 at 2:27 AM, Julien <> wrote:
> Hi,
>
> I'm having problems when typing the up/down arrows in the Python 2.4
> interpreter (exact version: Python 2.4.6 (#1, Mar *3 2011, 15:45:53)
> [GCC 4.2.1 (Apple Inc. build 5664)] on darwin).
>
> When I press the up arrow it outputs "^[[A" and when I press the down
> arrow it outputs "^[[B".
>
> I've google it and it looks like it might be an issue with the
> readline not being installed or configured properly. Is that correct?
> If so, how can I fix this issue?
>
> Many thanks.
>
> Kind regards,
>
> Julien
> --


How did you install Python? If you used Macports, it looks like
readline support is a separate port for 2.4. Try installing
py-readline.

> http://mail.python.org/mailman/listinfo/python-list
>

 
Reply With Quote
 
 
 
 
Julien
Guest
Posts: n/a
 
      03-25-2011
On Mar 22, 5:37*pm, Benjamin Kaplan <benjamin.kap...@case.edu> wrote:
> On Tue, Mar 22, 2011 at 2:27 AM, Julien <jpha...@gmail.com> wrote:
> > Hi,

>
> > I'm having problems when typing the up/down arrows in the Python 2.4
> > interpreter (exact version: Python 2.4.6 (#1, Mar *3 2011, 15:45:53)
> > [GCC 4.2.1 (Apple Inc. build 5664)] on darwin).

>
> > When I press the up arrow it outputs "^[[A" and when I press the down
> > arrow it outputs "^[[B".

>
> > I've google it and it looks like it might be an issue with the
> > readline not being installed or configured properly. Is that correct?
> > If so, how can I fix this issue?

>
> > Many thanks.

>
> > Kind regards,

>
> > Julien
> > --

>
> How did you install Python? If you used Macports, it looks like
> readline support is a separate port for 2.4. Try installing
> py-readline.
>
>
>
>
>
>
>
> >http://mail.python.org/mailman/listinfo/python-list


Hi,

Which readline package should I install? I've tried with 'pip install
py-readline' but that package doesn't seem to exist. I've tried with
'pyreadline' (without the dash) but that didn't fix the issue.

Many thanks,

Julien
 
Reply With Quote
 
Benjamin Kaplan
Guest
Posts: n/a
 
      03-25-2011
On Fri, Mar 25, 2011 at 2:25 AM, Julien <> wrote:
> On Mar 22, 5:37*pm, Benjamin Kaplan <benjamin.kap...@case.edu> wrote:
>> On Tue, Mar 22, 2011 at 2:27 AM, Julien <jpha...@gmail.com> wrote:
>> > Hi,

>>
>> > I'm having problems when typing the up/down arrows in the Python 2.4
>> > interpreter (exact version: Python 2.4.6 (#1, Mar *3 2011, 15:45:53)
>> > [GCC 4.2.1 (Apple Inc. build 5664)] on darwin).

>>
>> > When I press the up arrow it outputs "^[[A" and when I press the down
>> > arrow it outputs "^[[B".

>>
>> > I've google it and it looks like it might be an issue with the
>> > readline not being installed or configured properly. Is that correct?
>> > If so, how can I fix this issue?

>>
>> > Many thanks.

>>
>> > Kind regards,

>>
>> > Julien
>> > --

>>
>> How did you install Python? If you used Macports, it looks like
>> readline support is a separate port for 2.4. Try installing
>> py-readline.
>>
>>
>>
>>
>>
>>
>>
>> >http://mail.python.org/mailman/listinfo/python-list

>
> Hi,
>
> Which readline package should I install? I've tried with 'pip install
> py-readline' but that package doesn't seem to exist. I've tried with
> 'pyreadline' (without the dash) but that didn't fix the issue.
>
> Many thanks,
>
> Julien


As I stated above, py-readline is for if you're using Macports, which
is a package manager for Mac OS X. If you installed Python through
some other means, I'm not sure why you don't have readline installed
already, because it should be built with the rest of the Python
modules.


> http://mail.python.org/mailman/listinfo/python-list
>

 
Reply With Quote
 
Ned Deily
Guest
Posts: n/a
 
      03-25-2011
In article
<AANLkTimrz_=6qGHQDQK3Rh7HOGOCjJxZkGy4DcjF45Xi@mai l.gmail.com>,
Benjamin Kaplan <> wrote:
> As I stated above, py-readline is for if you're using Macports, which
> is a package manager for Mac OS X.


.... in which case you probably want:

sudo port install py-readline

> If you installed Python through
> some other means, I'm not sure why you don't have readline installed
> already, because it should be built with the rest of the Python
> modules.


For releases prior to Python 2.6 and Python 3.2, to build the Python
readline module, you need to have installed a local version of the GNU
readline library, a library which is not included in Mac OS X. Starting
with Python 2.6 and with a deployment target of Mac OS X 10.5 or higher,
the Python readline module will be automatically linked with the
Apple-supplied BSD editline (libedit) library.

P.S to Julien: Python 2.4 is *really* old now and is no longer supported
by the Python developers. It probably won't build correctly on current
OS X 10.6 without some help. Python 2.7.1 and Python 3.2 are the
current releases.

--
Ned Deily,


 
Reply With Quote
 
Julien
Guest
Posts: n/a
 
      03-26-2011
On Mar 25, 6:35*pm, Ned Deily <n...@acm.org> wrote:
> In article
> <AANLkTimrz_=6qGHQDQK3Rh7HOGOCjJxZkGy4DcjF4...@mai l.gmail.com>,
> *Benjamin Kaplan <benjamin.kap...@case.edu> wrote:
>
> > As I stated above, py-readline is for if you're using Macports, which
> > is a package manager for Mac OS X.

>
> ... in which case you probably want:
>
> * *sudo port install py-readline
>
> > If you installed Python through
> > some other means, I'm not sure why you don't have readline installed
> > already, because it should be built with the rest of the Python
> > modules.

>
> For releases prior to Python 2.6 and Python 3.2, to build the Python
> readline module, you need to have installed a local version of the GNU
> readline library, a library which is not included in Mac OS X. *Starting
> with Python 2.6 and with a deployment target of Mac OS X 10.5 or higher,
> the Python readline module will be automatically linked with the
> Apple-supplied BSD editline (libedit) library.
>
> P.S to Julien: Python 2.4 is *really* old now and is no longer supported
> by the Python developers. *It probably won't build correctly on current
> OS X 10.6 without some help. *Python 2.7.1 and Python 3.2 are the
> current releases.
>
> --
> *Ned Deily,
> *n...@acm.org


Thank you Ned and Benjamin, and sorry for the confusion

I did install python2.4 using Mac Ports, and as you've suggested I've
just installed py-readlines using Mac Ports as well, and it now works!

Many thanks!

Julien
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python embedded interpreter: how to initialize the interpreter ? ycollet@freesurf.fr Python 3 01-03-2007 01:00 AM
JScrollPane arrows don't update Simon Andrews Java 0 06-01-2006 11:12 AM
blue arrows on left side of agent in message group Jimmy Computer Support 3 05-29-2005 01:46 AM
Arrows On Desktop Shortcuts Si Computer Support 12 08-08-2004 04:22 PM
Remove red arrows in Sygate system tray Martin C.E. Computer Security 1 11-06-2003 06:32 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57