getting up arrow in terminal to scroll thought history of pythoncommands

V

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
 
I

Irmen de Jong

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
 
V

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

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
 
T

Thomas Jollans

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.
 
V

Vincent Davis

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
 
B

Benjamin Kaplan

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.
 
T

Thomas Jollans

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.
 
T

Thomas Jollans

Anyway, make sure readline is installed, and then recompile Python.
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.
 
I

Irmen de Jong

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top