473,471 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help with python shell

I just upgraded my Python install up to version 2.5.1 (from 2.4.x)
using source code and compiling.

Everything went fine until I enter the command line mode and press any
arrow keys.

When I press UP arrow, I was getting my previous command as always but
now I get: ^[[A

What can I do to fix this??

Thanks!

cbmeeks
Jan 16 '08 #1
4 1383
cbmeeks schrieb:
I just upgraded my Python install up to version 2.5.1 (from 2.4.x)
using source code and compiling.

Everything went fine until I enter the command line mode and press any
arrow keys.

When I press UP arrow, I was getting my previous command as always but
now I get: ^[[A

What can I do to fix this??
Compiling with readline support? I guess that's missing.

Diez
Jan 16 '08 #2
On Jan 16, 1:33 pm, "Diez B. Roggisch" <de...@nospam.web.dewrote:
cbmeeks schrieb:
I just upgraded my Python install up to version 2.5.1 (from 2.4.x)
using source code and compiling.
Everything went fine until I enter the command line mode and press any
arrow keys.
When I press UP arrow, I was getting my previous command as always but
now I get: ^[[A
What can I do to fix this??

Compiling with readline support? I guess that's missing.

Diez
I tried ./configure --enable-readline but that didn't do the trick.
ARG!! This is annoying.

Jan 16 '08 #3
cbmeeks schrieb:
On Jan 16, 1:33 pm, "Diez B. Roggisch" <de...@nospam.web.dewrote:
>cbmeeks schrieb:
>>I just upgraded my Python install up to version 2.5.1 (from 2.4.x)
using source code and compiling.
Everything went fine until I enter the command line mode and press any
arrow keys.
When I press UP arrow, I was getting my previous command as always but
now I get: ^[[A
What can I do to fix this??
Compiling with readline support? I guess that's missing.

Diez

I tried ./configure --enable-readline but that didn't do the trick.
ARG!! This is annoying.
You don't just need to enable it - the readline lib needs to be
installed, including the possible devel-package (If you are under linux)
for the headers.

Diez
Jan 16 '08 #4
On Jan 16, 2:35 pm, "Diez B. Roggisch" <de...@nospam.web.dewrote:
cbmeeks schrieb:
On Jan 16, 1:33 pm, "Diez B. Roggisch" <de...@nospam.web.dewrote:
cbmeeks schrieb:
>I just upgraded my Python install up to version 2.5.1 (from 2.4.x)
using source code and compiling.
Everything went fine until I enter the command line mode and press any
arrow keys.
When I press UP arrow, I was getting my previous command as always but
now I get: ^[[A
What can I do to fix this??
Compiling with readline support? I guess that's missing.
Diez
I tried ./configure --enable-readline but that didn't do the trick.
ARG!! This is annoying.

You don't just need to enable it - the readline lib needs to be
installed, including the possible devel-package (If you are under linux)
for the headers.

Diez
That worked!

I had to install readline-devel and rebuild with --enable-readline

Thanks!!!!!

cbmeeks
http://codershangout.com
Jan 16 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
20
by: Matthew Thorley | last post by:
My friend sent me an email asking this: > I'm attemtping to decide which scripting language I should master and > was wondering if it's possible to do > these unixy awkish commands in python:...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
16
by: John Salerno | last post by:
Hi all. I just installed Ubuntu and I'm learning how to use the bash shell. Aside from the normal commands you can use, I was wondering if it's possible to use Python from the terminal instead of...
9
by: Endless Story | last post by:
My last version of Python was 2.4, running smoothly on XP with path c: \Python24 - no need even to include this path in PATH; everything worked as it's supposed to at the command line. Just...
8
by: rdabane | last post by:
I'm trying to perform following type of operation from inside a python script. 1. Open an application shell (basically a tcl ) 2. Run some commands on that shell and get outputs from each command...
9
by: TP | last post by:
Hi everybody, I am new to Python, I try to understand how Python treats special characters. For example, if I execute the following line in a shell console, I obtain a colored string: $...
0
by: Cameron Simpson | last post by:
On 17Aug2008 21:25, John Nagle <nagle@animats.comwrote: Because $HOSTNAME is a bash specific variable, set by bash but NOT EXPORTED! Like $0 and a bunch of other "private" variables, subprocesses...
3
by: mmm | last post by:
I am looking for advice on Python Editors and IDEs I have read other posts and threads on the subject and my two questions at this time are mainly about the IDLE-like F5-run facilities. While I...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.