Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
On Wed, 2009-02-25 at 22:23 -0700, Eric Dorsey wrote: > Thanks for all your continued insights on this. I'm going to > investigate the .configure log, as well as look around at other > readline packages.. But, noob question, did you just go into something > like synaptic to find out what readline type packages are installed? > (Sorry if this is annoying anyone on the list, but its all in the name > of getting the Python inerpreter to be happy !) Or did you do some > kind of command line aptitude "list out readine stuff"? Yeah, you can go to synaptic and and do a search. Alternatively, you type "aptitude search readline" on the terminal (no need for sudo/root access for search). If you found what you want to install, you can use "sudo apt-get install " or "sudo aptitude install ". Synaptic is fine too, but not the "Add/Remove Application", the "Add/Remove Application" allows you to install applications not single packages. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
Thanks for all your continued insights on this. I'm going to investigate the .configure log, as well as look around at other readline packages.. But, noob question, did you just go into something like synaptic to find out what readline type packages are installed? (Sorry if this is annoying anyone on the list, but its all in the name of getting the Python inerpreter to be happy !) Or did you do some kind of command line aptitude "list out readine stuff"? On Wed, Feb 25, 2009 at 10:01 PM, Lie Ryan wrote: > On Thu, 19 Feb 2009 09:27:34 +0300, زÙاد ب٠عبداÙعزÙز اÙباتÙÙ wrote: > > > On Wed, 18 Feb 2009 20:19:56 -0700 > > Eric Dorsey wrote: > >> I did an aptitute install of ibreadline5-dev and then did ./configure > >> and make again, and still don't have any functionality to be able to > >> hit up-arrow and get a command repeated while inside the interpreter. > >> Any ideas? > >> > >> > > I don't know what's wrong, Python should pickup "libreadline" and use it > > automatically if it was installed. > > > > Try passing "--with-readline" to the "configure" script. > > > > If that doesn't help, then I'm sorry, I'm out of ideas. > > > > Try installing other readline modules that looks suspicious. In my Ubuntu > machine (these are all readline-related modules in my machine, not only > the ones that is needed for python), I have these packages installed: > v lib32readline-dev- > v libghc6-readline-dev - > v libghc6-readline-doc - > v libghc6-readline-prof- > v libreadline-dbg - > v libreadline-dev - > i libreadline5 - GNU readline and history libraries, run-ti > i A libreadline5-dev - GNU readline and history libraries, develo > i readline-common - GNU readline and history libraries, common > > try matching that and ./configure then make. > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
On Thu, 19 Feb 2009 09:27:34 +0300, زÙاد ب٠عبداÙعزÙز اÙباتÙÙ wrote: > On Wed, 18 Feb 2009 20:19:56 -0700 > Eric Dorsey wrote: >> I did an aptitute install of ibreadline5-dev and then did ./configure >> and make again, and still don't have any functionality to be able to >> hit up-arrow and get a command repeated while inside the interpreter. >> Any ideas? >> >> > I don't know what's wrong, Python should pickup "libreadline" and use it > automatically if it was installed. > > Try passing "--with-readline" to the "configure" script. > > If that doesn't help, then I'm sorry, I'm out of ideas. > Try installing other readline modules that looks suspicious. In my Ubuntu machine (these are all readline-related modules in my machine, not only the ones that is needed for python), I have these packages installed: v lib32readline-dev- v libghc6-readline-dev - v libghc6-readline-doc - v libghc6-readline-prof- v libreadline-dbg - v libreadline-dev - i libreadline5 - GNU readline and history libraries, run-ti i A libreadline5-dev - GNU readline and history libraries, develo i readline-common - GNU readline and history libraries, common try matching that and ./configure then make. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
* Eric Dorsey (Thu, 19 Feb 2009 12:24:07 -0700) > Still doesnt work.. I just get this when I hit the up arrow:>>> ^[[A > > Bah. It works in the 2.5 version that came packaged with it. Thanks for > trying :) There's a log for the ./configure. See if the configure script can find readline. Thorsten ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
Robert Berman schreef: > Eric, > > I am running under Ubuntu 8.10. > > If I use IDLE the up arrow key gives me nothing at all. It does work > using iPython which for most testing of ideas and code snippets has > replaced IDLE. FYI, in Idle the keys for going back and forth in the history are Alt-P (previous) and Alt-N (next). -- The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom. -- Isaac Asimov Roel Schroeven ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
Eric, I am running under Ubuntu 8.10. If I use IDLE the up arrow key gives me nothing at all. It does work using iPython which for most testing of ideas and code snippets has replaced IDLE. My GUI of choice is WING-personal which cost $30.00 and is by far the best investment I have made for a very high powered python developing environment and yes of course the open arrow works in that environment also. Consider, at the least, using iPython. Good luck, Robert Berman Eric Dorsey wrote: Still doesnt work.. I just get this when I hit the up arrow: >>> ^[[A Bah. It works in the 2.5 version that came packaged with it. Thanks for trying :) On Wed, Feb 18, 2009 at 11:27 PM, زÙاد ب٠عبداÙعزÙز اÙباتÙÙwrote: On Wed, 18 Feb 2009 20:19:56 -0700 Eric Dorsey wrote: > I did an aptitute install of  ibreadline5-dev and then > did ./configure and make again, and still don't have any > functionality to be able to hit up-arrow and get a command repeated > while inside the interpreter. Any ideas? > > I don't know what's wrong, Python should pickup "libreadline" and use it automatically if it was installed. Try passing "--with-readline" to the "configure" script. If that doesn't help, then I'm sorry, I'm out of ideas. Hope that help. Ziyad. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
Still doesnt work.. I just get this when I hit the up arrow:>>> ^[[A Bah. It works in the 2.5 version that came packaged with it. Thanks for trying :) On Wed, Feb 18, 2009 at 11:27 PM, زÙاد ب٠عبداÙعزÙز اÙباتÙÙ < ziyad.alba...@gmail.com> wrote: > On Wed, 18 Feb 2009 20:19:56 -0700 > Eric Dorsey wrote: > > I did an aptitute install of ibreadline5-dev and then > > did ./configure and make again, and still don't have any > > functionality to be able to hit up-arrow and get a command repeated > > while inside the interpreter. Any ideas? > > > > > I don't know what's wrong, Python should pickup "libreadline" and use > it automatically if it was installed. > > Try passing "--with-readline" to the "configure" script. > > If that doesn't help, then I'm sorry, I'm out of ideas. > > Hope that help. > Ziyad. > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
Bonjour, Je suis absente jusqu'au 22/02/09 inclus. Cordialement. Geneviève ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
On Wed, 18 Feb 2009 20:19:56 -0700 Eric Dorsey wrote: > I did an aptitute install of ibreadline5-dev and then > did ./configure and make again, and still don't have any > functionality to be able to hit up-arrow and get a command repeated > while inside the interpreter. Any ideas? > > I don't know what's wrong, Python should pickup "libreadline" and use it automatically if it was installed. Try passing "--with-readline" to the "configure" script. If that doesn't help, then I'm sorry, I'm out of ideas. Hope that help. Ziyad. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
I did an aptitute install of ibreadline5-dev and then did ./configure and make again, and still don't have any functionality to be able to hit up-arrow and get a command repeated while inside the interpreter. Any ideas? On Tue, Feb 17, 2009 at 7:24 PM, Lie Ryan wrote: > On Mon, 16 Feb 2009 22:34:23 -0700, Eric Dorsey wrote: > > > Greetings Tutor: > > I've managed to install Python 2.6 on my Ubuntu VM from source, however, > > it looks as though I missed something important along the way. My 2.6 > > interpreter does not have readline support (example: I cant hit up arrow > > to repeat the last command) Is there a way to add this functionality > > now? > > WORKSFORME > I have Ubuntu and python2.6 and the up arrow history works fine. > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
On Mon, 16 Feb 2009 22:34:23 -0700, Eric Dorsey wrote: > Greetings Tutor: > I've managed to install Python 2.6 on my Ubuntu VM from source, however, > it looks as though I missed something important along the way. My 2.6 > interpreter does not have readline support (example: I cant hit up arrow > to repeat the last command) Is there a way to add this functionality > now? WORKSFORME I have Ubuntu and python2.6 and the up arrow history works fine. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
Bonjour, Je suis absente jusqu'au 22/02/09 inclus. Cordialement. Geneviève ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
On Mon, 16 Feb 2009 22:34:23 -0700 Eric Dorsey wrote: > Greetings Tutor: > I've managed to install Python 2.6 on my Ubuntu VM from source, > however, it looks as though I missed something important along the > way. My 2.6 interpreter does not have readline support (example: I > cant hit up arrow to repeat the last command) Is there a way to add > this functionality now? > > Or alternative, if I just rebuild it, does anyone know the flag or > verbage to get readline support in? I think you need to recompile it again, this time make sure that "libreadline5-dev" package is installed. Hope that help. Ziyad. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Add readline capabilities to a Python build 2.6 on Ubuntu
Le Mon, 16 Feb 2009 22:34:23 -0700, Eric Dorsey a écrit : > Greetings Tutor: > I've managed to install Python 2.6 on my Ubuntu VM from source, however, it > looks as though I missed something important along the way. My 2.6 > interpreter does not have readline support (example: I cant hit up arrow to > repeat the last command) Is there a way to add this functionality now? > > Or alternative, if I just rebuild it, does anyone know the flag or verbage > to get readline support in? As far as I know, it's built-in by default. But I have 2.5.2, not 2.6. Have you tried to import it, just to check? s...@o:~/prog/io$ python Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import readline >>> readline denis -- la vida e estranya ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor