The Python interactive interpreter has no command history

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ThomasC

    The Python interactive interpreter has no command history

    Hello,

    How to configure Python2.5's interactive interpreter to get command
    history ?

    I always got ^[[A and ^[[B .

    Thank you !!

    Thomas#

  • Laurent Rahuel

    #2
    Re: The Python interactive interpreter has no command history

    Hi,

    You need to have readline installed.

    Laurent

    ThomasC wrote:
    Hello,
    >
    How to configure Python2.5's interactive interpreter to get command
    history ?
    >
    I always got ^[[A and ^[[B .
    >
    Thank you !!
    >
    Thomas#

    Comment

    • Eduardo \EdCrypt\ O. Padoan

      #3
      Re: The Python interactive interpreter has no command history

      Hello,
      >
      How to configure Python2.5's interactive interpreter to get command
      history ?
      >
      I always got ^[[A and ^[[B .
      >
      Are you using Ubuntu? The last comes with 2.4.x and 2.5. This only
      occurs on 2.5. This happens when you compile Python with libreadline
      installed, AFAIK.
      FIll a bug in the Ubuntu launchpad. You can install libreadline (and
      build-essential), download the 2.5 source and compile yourself.

      --
      EduardoOPadoan (eopadoan->altavix::com )
      Bookmarks: http://del.icio.us/edcrypt

      Comment

      • Alan Franzoni

        #4
        Re: The Python interactive interpreter has no command history

        Il Thu, 15 Feb 2007 15:14:00 -0200, Eduardo "EdCrypt" O. Padoan ha scritto:
        Are you using Ubuntu? The last comes with 2.4.x and 2.5. This only
        occurs on 2.5. This happens when you compile Python with libreadline
        installed, AFAIK.
        I'm on Edgy and command history works well both with 2.4 and 2.5 with my
        config. If it's really an Edgy glitch, it must be configuration-related!

        --
        Alan Franzoni <alan.franzoni. xyz@gmail.com>
        -
        Togli .xyz dalla mia email per contattarmi.
        Remove .xyz from my address in order to contact me.
        -
        GPG Key Fingerprint (Key ID = FE068F3E):
        5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E

        Comment

        • ThomasC

          #5
          Re: The Python interactive interpreter has no command history

          Thank you a lot!

          I will try add readline library in my system.
          Thank you.

          On 2¤ë16¤é, ¤W¤È1®É13¤À, Laurent Rahuel <lrahuel.notg.. ..@voila.frwrot e:
          Hi,
          >
          You need to have readline installed.
          >
          Laurent
          >
          ThomasCwrote:


          Comment

          • Paul Boddie

            #6
            Re: The Python interactive interpreter has no command history

            On 16 Feb, 11:40, Alan Franzoni
            <alan.franzoni_ inva...@geemail .invalidwrote:
            Il Thu, 15 Feb 2007 15:14:00 -0200, Eduardo "EdCrypt" O. Padoan ha scritto:
            >
            Are you using Ubuntu? The last comes with 2.4.x and 2.5. This only
            occurs on 2.5. This happens when you compile Python with libreadline
            installed, AFAIK.
            >
            I'm on Edgy and command history works well both with 2.4 and 2.5 with my
            config. If it's really an Edgy glitch, it must be configuration-related!
            I guess it depends on how one is building the software. According to
            the package information [1] libreadline5 is stated as a dependency, so
            if one uses the Debian tools to make a package from the sources (plus
            the diffs), one should get complaints about missing dependencies
            rather than inadvertently getting an installable version of Python
            with broken command history support.

            Paul

            [1] http://packages.ubuntu.com/edgy/python/python2.5

            Comment

            • skip@pobox.com

              #7
              Re: The Python interactive interpreter has no command history

              I will try add readline library in my system.
              Thomas,

              Once you have it installed here's an example of how to use it for command
              history:



              Skip

              Comment

              Working...