Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Vincent Davis
On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl wrote:
 On 14-6-2010 1:19, Vincent Davis wrote:

 I just installed 2.6 and 3.1 from current maintenance source on Mac
 OSx. When I am running as an interactive terminal session the up arrow
 does not scroll thought the history of the py commands I have entered
 I just get ^[[A. When I install from a compiled source it works fine.
 Whats the fix for this?

 Thanks
 Vincent

 I'm guessing you don't have the readline module.

 Compile and install GNU Readline, then type 'make' again in your Python
 source tree. It should now no longer report a missing 'readline' module.

What exactly do you mean by 'make' again in your Python source tree.

Thanks
Vincent


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

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


Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Thomas Jollans
On 06/14/2010 02:37 PM, Vincent Davis wrote:
 On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl 
 wrote:
 On 14-6-2010 1:19, Vincent Davis wrote:

 I just installed 2.6 and 3.1 from current maintenance source on Mac
 OSx. When I am running as an interactive terminal session the up arrow
 does not scroll thought the history of the py commands I have entered
 I just get ^[[A. When I install from a compiled source it works fine.
 Whats the fix for this?

 Thanks
 Vincent

 I'm guessing you don't have the readline module.

 Compile and install GNU Readline, then type 'make' again in your Python
 source tree. It should now no longer report a missing 'readline' module.
 
 What exactly do you mean by 'make' again in your Python source tree.

You installed Python from source didn't you? At some point you'll have
to invoke make, unless some tool did that for you.

Anyway, make sure readline is installed, and then recompile Python.

 
 Thanks
 Vincent
 

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


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


Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Vincent Davis
On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans tho...@jollans.com wrote:
 On 06/14/2010 02:37 PM, Vincent Davis wrote:
 On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl 
 wrote:
 On 14-6-2010 1:19, Vincent Davis wrote:

 I just installed 2.6 and 3.1 from current maintenance source on Mac
 OSx. When I am running as an interactive terminal session the up arrow
 does not scroll thought the history of the py commands I have entered
 I just get ^[[A. When I install from a compiled source it works fine.
 Whats the fix for this?

 Thanks
 Vincent

 I'm guessing you don't have the readline module.

 Compile and install GNU Readline, then type 'make' again in your Python
 source tree. It should now no longer report a missing 'readline' module.

 What exactly do you mean by 'make' again in your Python source tree.

 You installed Python from source didn't you? At some point you'll have
 to invoke make, unless some tool did that for you.

 Anyway, make sure readline is installed, and then recompile Python.

So I should run
./configure
make install
again?
Will this overwrite other py packages I have installed?

Vincent





 Thanks
 Vincent


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


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

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


Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Benjamin Kaplan
On Mon, Jun 14, 2010 at 6:09 AM, Vincent Davis vinc...@vincentdavis.net wrote:
 On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans tho...@jollans.com wrote:
 On 06/14/2010 02:37 PM, Vincent Davis wrote:
 On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl 
 wrote:
 On 14-6-2010 1:19, Vincent Davis wrote:

 I just installed 2.6 and 3.1 from current maintenance source on Mac
 OSx. When I am running as an interactive terminal session the up arrow
 does not scroll thought the history of the py commands I have entered
 I just get ^[[A. When I install from a compiled source it works fine.
 Whats the fix for this?

 Thanks
 Vincent

 I'm guessing you don't have the readline module.

 Compile and install GNU Readline, then type 'make' again in your Python
 source tree. It should now no longer report a missing 'readline' module.

 What exactly do you mean by 'make' again in your Python source tree.

 You installed Python from source didn't you? At some point you'll have
 to invoke make, unless some tool did that for you.

 Anyway, make sure readline is installed, and then recompile Python.

 So I should run
 ./configure
 make install
 again?
 Will this overwrite other py packages I have installed?

 Vincent


That should be
./configure
make
make install

You missed a rather important step. I don't think it will overwrite
anything except for the files that are part of Python itself, but I'm
not completely sure.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Thomas Jollans
On 06/14/2010 03:09 PM, Vincent Davis wrote:
 On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans tho...@jollans.com wrote:
 On 06/14/2010 02:37 PM, Vincent Davis wrote:
 On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl 
 wrote:
 On 14-6-2010 1:19, Vincent Davis wrote:

 I just installed 2.6 and 3.1 from current maintenance source on Mac
 OSx. When I am running as an interactive terminal session the up arrow
 does not scroll thought the history of the py commands I have entered
 I just get ^[[A. When I install from a compiled source it works fine.
 Whats the fix for this?

 Thanks
 Vincent

 I'm guessing you don't have the readline module.

 Compile and install GNU Readline, then type 'make' again in your Python
 source tree. It should now no longer report a missing 'readline' module.

 What exactly do you mean by 'make' again in your Python source tree.

 You installed Python from source didn't you? At some point you'll have
 to invoke make, unless some tool did that for you.

 Anyway, make sure readline is installed, and then recompile Python.
 
 So I should run
 ./configure
 make install
 again?
 Will this overwrite other py packages I have installed?

It'll do exactly the same thing as it did the last time.
It won't overwrite anything not part of Python itself.

 
 Vincent
 
 
 


 Thanks
 Vincent


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


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


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


Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Thomas Jollans
 Anyway, make sure readline is installed, and then recompile Python.

 So I should run
 ./configure
 make install
 again?
 Will this overwrite other py packages I have installed?

 Vincent

 
 That should be
 ./configure
 make
 make install

 You missed a rather important step.


Makefiles being dependency based means that, strictly speaking, make
isn't necessary, as it's (almost always) implied by make install

However, you should usually work like this:

$ ./configure
$ make
$ sudo make install

run configure and make as user, and ONLY make install as root, as only
installing, not configuring and building, require administrative
privileges. I'm not sure OSX handles these things, but I doubt they'd
have removed the UNIX multi-user-ness.

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


Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Irmen de Jong

On 14-6-2010 15:09, Vincent Davis wrote:

Anyway, make sure readline is installed, and then recompile Python.


So I should run
./configure
make install
again?
Will this overwrite other py packages I have installed?

Vincent


Often there is no need to run the configure script again if you're just satisfying build 
prerequisites for extension modules. Python's build script is smart enough to discover 
the sudden availability of the readline library, and will happily build the readline 
module. Just typing 'make install' should be enough.


Irmen

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


getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Vincent Davis
I just installed 2.6 and 3.1 from current maintenance source on Mac
OSx. When I am running as an interactive terminal session the up arrow
does not scroll thought the history of the py commands I have entered
I just get ^[[A. When I install from a compiled source it works fine.
Whats the fix for this?

Thanks
Vincent
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Vincent Davis
On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno gr...@verizon.net wrote:
 sounds like your keymapping got messed with.

 you could just:
 set -o vi
 python
 ESC, Ctrl-j
 and now ESC-k and ESC-j will take you back and forth in history (std vi
 editing)

This is done within python? Let make sure I am clear. This is only an
issue within the interactive python for the python dist I have built
from source not other pythons or terminal in general. I look into the
commands you suggested more but ESC-k and ESC-j don't sound very
appealing to me.

Thanks
Vincent

 -Gerry



 Jun 13, 2010 07:22:40 PM, vinc...@vincentdavis.net wrote:

 I just installed 2.6 and 3.1 from current maintenance source on Mac
 OSx. When I am running as an interactive terminal session the up arrow
 does not scroll thought the history of the py commands I have entered
 I just get ^[[A. When I install from a compiled source it works fine.
 Whats the fix for this?

 Thanks
 Vincent
 --
 http://mail.python.org/mailman/listinfo/python-list

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


Re: Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Gerry Reno

These command just allow you to use 'vi editing mode' within python. If you've ever navigated a file with vi to go up and down the document you'll immediately know how it works.-GerryJun 13, 2010 07:39:35 PM, vinc...@vincentdavis.net wrote:On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno  wrote: sounds like your keymapping got messed with. you could just: set -o vi python ESC, Ctrl-j and now ESC-k and ESC-j will take you back and forth in history (std vi editing)This is done within python? Let make sure I am clear. This is only anissue within the interactive python for the python dist I have builtfrom source not other pythons or terminal in general. I look into thecommands you suggested more but ESC-k and ESC-j don't sound veryappealing to me.ThanksVincent -Gerry Jun 13, 2010 07:22:40 PM, vinc...@vincentdavis.net wrote: I just installed 2.6 and 3.1 from current maintenance source on Mac OSx. When I am running as an interactive terminal session the up arrow does not scroll thought the history of the py commands I have entered I just get ^[[A. When I install from a compiled source it works fine. Whats the fix for this? Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Sean DiZazzo
On Jun 13, 4:39 pm, Vincent Davis vinc...@vincentdavis.net wrote:
 On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno gr...@verizon.net wrote:
  sounds like your keymapping got messed with.

  you could just:
  set -o vi
  python
  ESC, Ctrl-j
  and now ESC-k and ESC-j will take you back and forth in history (std vi
  editing)

 This is done within python? Let make sure I am clear. This is only an
 issue within the interactive python for the python dist I have built
 from source not other pythons or terminal in general. I look into the
 commands you suggested more but ESC-k and ESC-j don't sound very
 appealing to me.

 Thanks
 Vincent



  -Gerry

  Jun 13, 2010 07:22:40 PM, vinc...@vincentdavis.net wrote:

  I just installed 2.6 and 3.1 from current maintenance source on Mac
  OSx. When I am running as an interactive terminal session the up arrow
  does not scroll thought the history of the py commands I have entered
  I just get ^[[A. When I install from a compiled source it works fine.
  Whats the fix for this?

  Thanks
  Vincent
  --
 http://mail.python.org/mailman/listinfo/python-list



There used to be a problem with readline support in Mac.  Not sure if
the problem still exists in Leopard/Snow Leopard.

Google for python mac readline and you will find some stuff.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Irmen de Jong

On 14-6-2010 1:19, Vincent Davis wrote:

I just installed 2.6 and 3.1 from current maintenance source on Mac
OSx. When I am running as an interactive terminal session the up arrow
does not scroll thought the history of the py commands I have entered
I just get ^[[A. When I install from a compiled source it works fine.
Whats the fix for this?

Thanks
Vincent


I'm guessing you don't have the readline module.

Compile and install GNU Readline, then type 'make' again in your Python 
source tree. It should now no longer report a missing 'readline' module.


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


Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Gerry Reno

sounds like your keymapping got messed with.you could just:set -o vipythonESC, Ctrl-jand now ESC-k and ESC-j will take you back and forth in history (std vi editing)-GerryJun 13, 2010 07:22:40 PM, vinc...@vincentdavis.net wrote:I just installed 2.6 and 3.1 from current maintenance source on MacOSx. When I am running as an interactive terminal session the up arrowdoes not scroll thought the history of the py commands I have enteredI just get ^[[A. When I install from a compiled source it works fine.Whats the fix for this?ThanksVincent-- http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list