Hi,

Recently I changed my OS from ubuntu to Kubuntu 12.04 LTS so I re-installed yt, and the old readline problem comes up again:

While I'm in the script environment of python that comes with yt, the readline service is not available.(That's why I pulled out this old message).

I followed all the suggestions from this email which helped me solved this problem previously, but it doesn't work this time:

First I followed Elizabeth and Casey's suggestion tried to pip install readline, but it keeps saying "libncurses.a: could not read symbols: Bad value" and then "error: gcc fails and exit with status 1". 

After searching for a quite a while without any luck on web, I tried to build readline directly in ~/yt-x86_64/lib/python2.7/site-packages, guessing that might work. But it turned out still not working.

Can anyone help me out with this?

Thanks a lot,

Chao

On Sat, Nov 5, 2011 at 9:57 PM, <yt-users-request@lists.spacepope.org> wrote:
Send yt-users mailing list submissions to
       yt-users@lists.spacepope.org

To subscribe or unsubscribe via the World Wide Web, visit
       http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
or, via email, send a message with subject or body 'help' to
       yt-users-request@lists.spacepope.org

You can reach the person managing the list at
       yt-users-owner@lists.spacepope.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of yt-users digest..."


Today's Topics:

  1. Readline service not available (Chao Shi)
  2. Re: Readline service not available (j s oishi)
  3. Re: Readline service not available (Elizabeth Tasker)
  4. Re: Readline service not available (Casey W. Stark)
  5. Fwd: Readline service not available (Chao Shi)
  6. Re: Fwd: Readline service not available (Casey W. Stark)


----------------------------------------------------------------------

Message: 1
Date: Sat, 5 Nov 2011 20:01:26 -0400
From: Chao Shi <shichao116@gmail.com>
To: yt-users@lists.spacepope.org
Subject: [yt-users] Readline service not available
Message-ID:
       <CA+P3+n-f-rMpGUs=h59LCS8o=Fbous_VypFBak+HxNAoE+7fNA@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello everyone,

I'm Chao, just started to learn how to use yt and python.

After I installed yt following the instruction in the main page, when I
invoke iyt
or ipython, waring of "Readline Services not available on this platform"
and "The
auto-indent feature requires the readline library' came out.

I'm using Ubuntu11.10 shipped with python2.7.2+ and when I run this
version, readline
is available. But I was installing yt, it seems that python2.7.1 was
installed along with yt,
and consequently ipython and iyt was built upon python2.7.1. I tried
python2.7.1 and
showed that the readline is not available, and so does iyt and ipython. I
don't know whether
multiple versions of python caused this problem and I don't know how to
solve it. Can
anyone give some guidance? I'm new to linux and I apologize if this problem
is
too obvious to experienced users. But I haven't found effective solution on
google.

Thanks,

Chao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20111105/ef5e70de/attachment-0001.htm>

------------------------------

Message: 2
Date: Sat, 5 Nov 2011 17:30:50 -0700
From: j s oishi <jsoishi@gmail.com>
To: Discussion of the yt analysis package
       <yt-users@lists.spacepope.org>
Subject: Re: [yt-users] Readline service not available
Message-ID:
       <CAAOZTN_taMC3+fxCgSHsAAiZpDm-SRJqV1h=Ld7PC9twt9AyXQ@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Chao,

Welcome to yt! My apologies for this. By using the install script, you
get a complete python environment that is completely isolated from
your system. This means that you can be assured if something goes
wrong with the yt install, you haven't touched your system python at
all. As it happens, we just fixed this problem a few days ago, and it
hasn't propagated to the stable branch yet. Could you try to install
from the development branch, by downloading the install script from

$ wget http://hg.yt-project.org/yt/raw/yt/doc/install_script.sh
$ bash install_script.sh

instead? This should fix your problem straight away. As it happens,
Python 2.7.1 won't work on Ubuntu 11.10 very well at all. In the mean
time, I will migrate the updated install script from the development
branch to the stable branch.

You can just delete the entire yt directory that you already
installed, and it will not interfere with anything.

Again, welcome to yt!

Jeff

On Sat, Nov 5, 2011 at 5:01 PM, Chao Shi <shichao116@gmail.com> wrote:
> Hello everyone,
> I'm Chao, just started to learn how to use yt and python.
> After I installed yt following the instruction in the main page, when I
> invoke iyt
> or ipython, waring of "Readline Services not available on this platform" and
> "The
> auto-indent feature requires the readline library' came out.
> I'm using Ubuntu11.10 shipped with python2.7.2+ and when I run this version,
> readline
> is available. But I was installing yt, it seems?that python2.7.1 was
> installed along with yt,
> and consequently ipython and iyt was built upon python2.7.1. I tried
> python2.7.1 and
> showed that the readline is not available, and so does iyt and ipython. I
> don't know whether
> multiple versions of python caused this problem and I don't know how to
> solve it. Can
> anyone give some guidance? I'm new to linux and I apologize if this problem
> is
> too obvious to experienced users. But I haven't found effective solution on
> google.
> Thanks,
> Chao
> _______________________________________________
> yt-users mailing list
> yt-users@lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>


------------------------------

Message: 3
Date: Sun, 6 Nov 2011 09:36:32 +0900
From: Elizabeth Tasker <tasker@astro1.sci.hokudai.ac.jp>
To: Discussion of the yt analysis package
       <yt-users@lists.spacepope.org>
Subject: Re: [yt-users] Readline service not available
Message-ID:
       <EFE4787E-6CE4-46A3-8610-F2B1DD0B8A29@astro1.sci.hokudai.ac.jp>
Content-Type: text/plain; charset=us-ascii

Hi Chao,

In case Jeff's solution doesn't work, try installing readline using "pip" which is part of the yt package:

~/yt/bin/pip  install readline

For some reason, I get similar problems with readline even though it's blatantly on the system already.

Elizabeth


On 2011-11-06, at 9:01 AM, Chao Shi wrote:

> Hello everyone,
>
> I'm Chao, just started to learn how to use yt and python.
>
> After I installed yt following the instruction in the main page, when I invoke iyt
> or ipython, waring of "Readline Services not available on this platform" and "The
> auto-indent feature requires the readline library' came out.
>
> I'm using Ubuntu11.10 shipped with python2.7.2+ and when I run this version, readline
> is available. But I was installing yt, it seems that python2.7.1 was installed along with yt,
> and consequently ipython and iyt was built upon python2.7.1. I tried python2.7.1 and
> showed that the readline is not available, and so does iyt and ipython. I don't know whether
> multiple versions of python caused this problem and I don't know how to solve it. Can
> anyone give some guidance? I'm new to linux and I apologize if this problem is
> too obvious to experienced users. But I haven't found effective solution on google.
>
> Thanks,
>
> Chao
> _______________________________________________
> yt-users mailing list
> yt-users@lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



------------------------------

Message: 4
Date: Sat, 5 Nov 2011 18:13:04 -0700
From: "Casey W. Stark" <caseywstark@gmail.com>
To: Discussion of the yt analysis package
       <yt-users@lists.spacepope.org>
Subject: Re: [yt-users] Readline service not available
Message-ID:
       <CAPQaySUX31N2ECLEwpa5_686dtkAtoC2oXCqV9+cFC5yeCg6fw@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi all.

Yeah, I've seen this a few times. GNU readline is installed by default on
Ubuntu, so you should be good there (you have to get it yourself on Macs).
The python package readline is the Python interface for GNU readline, see
http://docs.python.org/library/readline.html. So, even if you have python
readline installed on the default (system) python site-packages, you need
to install it again in your yt site-packages.

Best,
Casey


On Sat, Nov 5, 2011 at 5:36 PM, Elizabeth Tasker <
tasker@astro1.sci.hokudai.ac.jp> wrote:

> Hi Chao,
>
> In case Jeff's solution doesn't work, try installing readline using "pip"
> which is part of the yt package:
>
> ~/yt/bin/pip  install readline
>
> For some reason, I get similar problems with readline even though it's
> blatantly on the system already.
>
> Elizabeth
>
>
> On 2011-11-06, at 9:01 AM, Chao Shi wrote:
>
> > Hello everyone,
> >
> > I'm Chao, just started to learn how to use yt and python.
> >
> > After I installed yt following the instruction in the main page, when I
> invoke iyt
> > or ipython, waring of "Readline Services not available on this platform"
> and "The
> > auto-indent feature requires the readline library' came out.
> >
> > I'm using Ubuntu11.10 shipped with python2.7.2+ and when I run this
> version, readline
> > is available. But I was installing yt, it seems that python2.7.1 was
> installed along with yt,
> > and consequently ipython and iyt was built upon python2.7.1. I tried
> python2.7.1 and
> > showed that the readline is not available, and so does iyt and ipython.
> I don't know whether
> > multiple versions of python caused this problem and I don't know how to
> solve it. Can
> > anyone give some guidance? I'm new to linux and I apologize if this
> problem is
> > too obvious to experienced users. But I haven't found effective solution
> on google.
> >
> > Thanks,
> >
> > Chao
> > _______________________________________________
> > yt-users mailing list
> > yt-users@lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
> _______________________________________________
> yt-users mailing list
> yt-users@lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20111105/4e5b76b2/attachment-0001.htm>

------------------------------

Message: 5
Date: Sat, 5 Nov 2011 21:19:52 -0400
From: Chao Shi <shichao116@gmail.com>
To: yt-users@lists.spacepope.org
Subject: [yt-users] Fwd: Readline service not available
Message-ID:
       <CA+P3+n_G3OsY8waot575wsw2vTqbKNRekYX0sLT3z4n8OLwkUA@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

BTW, I already tried the method in the FAQ
http://yt-project.org/doc/faq.html#i-can-t-scroll-up-to-previous-commands-inside-iyt,
but it still dosen't work.

---------- Forwarded message ----------
From: Chao Shi <shichao116@gmail.com>
Date: Sat, Nov 5, 2011 at 8:01 PM
Subject: Readline service not available
To: yt-users@lists.spacepope.org


Hello everyone,

I'm Chao, just started to learn how to use yt and python.

After I installed yt following the instruction in the main page, when I
invoke iyt
or ipython, waring of "Readline Services not available on this platform"
and "The
auto-indent feature requires the readline library' came out.

I'm using Ubuntu11.10 shipped with python2.7.2+ and when I run this
version, readline
is available. But I was installing yt, it seems that python2.7.1 was
installed along with yt,
and consequently ipython and iyt was built upon python2.7.1. I tried
python2.7.1 and
showed that the readline is not available, and so does iyt and ipython. I
don't know whether
multiple versions of python caused this problem and I don't know how to
solve it. Can
anyone give some guidance? I'm new to linux and I apologize if this problem
is
too obvious to experienced users. But I haven't found effective solution on
google.

Thanks,

Chao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20111105/316b14c8/attachment-0001.htm>

------------------------------

Message: 6
Date: Sat, 5 Nov 2011 18:50:52 -0700
From: "Casey W. Stark" <caseywstark@gmail.com>
To: Discussion of the yt analysis package
       <yt-users@lists.spacepope.org>
Subject: Re: [yt-users] Fwd: Readline service not available
Message-ID:
       <CAPQaySV-T7CATUrvguubUCKd=7vxb_+=9fohy6HAWWsU6P0erg@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Chao.

Are you certain that this command installed readline to your yt python
environment? I'm not certain how pip determines which python site-packages
to install to, but I think it depends on PYTHONPATH/PYTHONHOME. Anyone know
about this?

I recommend...

$ source /path/to/yt/bin/activate
$ pip install readline

You can check that it installed to the right place by navigating to
/path/to/yt/lib/python2.7/site-packages/ and seeing if the readline package
is there. If it is there and still doesn't work, then this is really
weird...

Either way, we should fix this line of the docs because it assumes yt is
installed to ~/yt and it doesn't say anything about setting env vars or
using activate. Something like /path/to/yt?

Best,
Casey


On Sat, Nov 5, 2011 at 6:19 PM, Chao Shi <shichao116@gmail.com> wrote:

> BTW, I already tried the method in the FAQ
> http://yt-project.org/doc/faq.html#i-can-t-scroll-up-to-previous-commands-inside-iyt,
> but it still dosen't work.
>
>
> ---------- Forwarded message ----------
> From: Chao Shi <shichao116@gmail.com>
> Date: Sat, Nov 5, 2011 at 8:01 PM
> Subject: Readline service not available
> To: yt-users@lists.spacepope.org
>
>
> Hello everyone,
>
> I'm Chao, just started to learn how to use yt and python.
>
> After I installed yt following the instruction in the main page, when I
> invoke iyt
> or ipython, waring of "Readline Services not available on this platform"
> and "The
> auto-indent feature requires the readline library' came out.
>
> I'm using Ubuntu11.10 shipped with python2.7.2+ and when I run this
> version, readline
> is available. But I was installing yt, it seems that python2.7.1 was
> installed along with yt,
> and consequently ipython and iyt was built upon python2.7.1. I tried
> python2.7.1 and
> showed that the readline is not available, and so does iyt and ipython. I
> don't know whether
> multiple versions of python caused this problem and I don't know how to
> solve it. Can
> anyone give some guidance? I'm new to linux and I apologize if this
> problem is
> too obvious to experienced users. But I haven't found effective solution
> on google.
>
> Thanks,
>
> Chao
>
>
> _______________________________________________
> yt-users mailing list
> yt-users@lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20111105/c158c678/attachment.htm>

------------------------------

_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org


End of yt-users Digest, Vol 45, Issue 6
***************************************