473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

No more command history with cursor keys

Since I've installed (from sources) Python 2.3.4 on SuSE 8.2 the command
history is not working anymore. When I press the cursor keys I get ^[[A or
^[[B ....
I also tried to install IPython but the same problem is there.

What's wrong?

Chris
Jul 18 '05 #1
4 1910
Chris <ch*********@spam.com> wrote:
Since I've installed (from sources) Python 2.3.4 on SuSE 8.2 the command
history is not working anymore. When I press the cursor keys I get ^[[A or
^[[B ....
I also tried to install IPython but the same problem is there.

What's wrong?


You appear to be missing some parts of the 'readline' library --
probably the 'devel' half of it; or, if you have it installed, it's
somewhere the build process for Python and IPython can't find.
Alex
Jul 18 '05 #2
Indeed, readline.so exists in my Python2.2 install (part of SuSE 8.2) but
not in the Python 2.3.4 install that I built. I tried to copy the file but
there's a mismatch.
But I don't understand what went wrong: configure / make / make install all
finished successfully.
How can I get that readline.so file?

Chris

"Alex Martelli" <al*****@yahoo.com> a écrit dans le message de news:
1gkz5o9.1yipm4e1bewl8jN%al*****@yahoo.com...
Chris <ch*********@spam.com> wrote:
Since I've installed (from sources) Python 2.3.4 on SuSE 8.2 the command
history is not working anymore. When I press the cursor keys I get ^[[A or ^[[B ....
I also tried to install IPython but the same problem is there.

What's wrong?


You appear to be missing some parts of the 'readline' library --
probably the 'devel' half of it; or, if you have it installed, it's
somewhere the build process for Python and IPython can't find.
Alex

Jul 18 '05 #3
Chris wrote:
Indeed, readline.so exists in my Python2.2 install (part of SuSE 8.2) but
not in the Python 2.3.4 install that I built. I tried to copy the file but
there's a mismatch.
But I don't understand what went wrong: configure / make / make install
all finished successfully.
How can I get that readline.so file?

Chris

"Alex Martelli" <al*****@yahoo.com> a écrit dans le message de news:
1gkz5o9.1yipm4e1bewl8jN%al*****@yahoo.com...
Chris <ch*********@spam.com> wrote:
> Since I've installed (from sources) Python 2.3.4 on SuSE 8.2 the
> command history is not working anymore. When I press the cursor keys I
> get ^[[A or > ^[[B ....
> I also tried to install IPython but the same problem is there.
>
> What's wrong?


You appear to be missing some parts of the 'readline' library --
probably the 'devel' half of it; or, if you have it installed, it's
somewhere the build process for Python and IPython can't find.
Alex


You probably forgot to install the libreadline or the libreadline-devel
package on your system before you did the ./configure
Jul 18 '05 #4
Chris <ch*********@spam.com> wrote:
Indeed, readline.so exists in my Python2.2 install (part of SuSE 8.2) but
not in the Python 2.3.4 install that I built. I tried to copy the file but
there's a mismatch.
Yep, it needs to get rebuilt for the specific Python version.
But I don't understand what went wrong: configure / make / make install all
finished successfully.
Lack of optional components (of which readline is one) is not an error
in the Python build, so it will finish successfully anyway.
How can I get that readline.so file?


Have you installed all readline-related RPMs (Suse's an RPM distro,
right?), including the -devel if any? If not try doing so and retry the
make, it should build the missing readline.so. Otherwise we'll have to
figure out where the readline pieces are and where the Python build is
looking for them instead.

Note that there are other optional components that you may not be
building if you don't have the related -devel RPMs installed. You can
look for all the .so that come with your suse-built Python 2.2 and see
which ones are missing in the 2.3 you built (not sure if some were just
dropped in the 2.2 -> 2.3 transition, but I don't think so...).
Alex
Jul 18 '05 #5

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

Similar topics

8
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland...
3
by: inevercheckthisaddress | last post by:
I'm writing some stuff where I wish to allow the cursor keys to control elements in a page. This has not been a problem except with Safari which appears to duplicate the keydown and keyup events...
0
by: M | last post by:
Hi, I got a C# project which uses a "CORE" originally written in SDK. If I triger an event which bring up a Modeless dialog created using either old SDK C++ code or MFC/C++ code, the cursor keys...
7
by: Seash | last post by:
Hi friends , here is the sample code private void txtbox_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if(e.KeyChar == 13) //enter { txtbox2.Focus(); }
2
by: Rader | last post by:
As the textbox is focused,if I press the keys up/down arrow instead of other keys like a,b,c...... the input cursor moves left and right.Now its the problem,I want the cursor stay where it...
4
by: parcour | last post by:
Hi. I wonder if anyone could point me to a simple key mapping example for a command-line application. I would like to map the up and down arrow keys in my application to a couple of command...
2
by: Sagaert Johan | last post by:
Hi I have a usercontrol , the keypress and keyup/down events do not seem to work on the cursor keys . How can i capture the cursor keys when my control has the focus ? Johan
1
by: Stefan Bellon | last post by:
Hi all! I'm embedding Python in my own C (or rather Ada, but via the C interface) program. Everything runs fine. But I have a small question regarding command history. Let's take the simplest...
5
by: cantrell78 | last post by:
I'm dynamically building a list of divs that a user can click and sets off an action. I was hoping to build into it a way to use the up and down arrow keys to navigate the list and the enter key to...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
0
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...

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.