From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jaan Altosaar Newsgroups: gmane.emacs.bugs Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Date: Mon, 9 Jul 2018 08:59:13 -0400 Message-ID: References: <87zhz9l6p9.fsf@gmail.com> <87va9xkuyu.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009a315d057090943d" X-Trace: blaine.gmane.org 1531141091 4513 195.159.176.226 (9 Jul 2018 12:58:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2018 12:58:11 +0000 (UTC) Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 09 14:58:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcVjx-00011j-9K for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2018 14:58:05 +0200 Original-Received: from localhost ([::1]:41667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcVm4-0004iv-F1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2018 09:00:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcVlx-0004hJ-3E for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 09:00:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcVlr-0004KB-8Q for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 09:00:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43926) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcVlr-0004K0-4z for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 09:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fcVlq-0003Sh-PK for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 09:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jaan Altosaar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jul 2018 13:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32042 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.153114117113238 (code B ref 32042); Mon, 09 Jul 2018 13:00:02 +0000 Original-Received: (at 32042) by debbugs.gnu.org; 9 Jul 2018 12:59:31 +0000 Original-Received: from localhost ([127.0.0.1]:51823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcVlH-0003RO-5q for submit@debbugs.gnu.org; Mon, 09 Jul 2018 08:59:31 -0400 Original-Received: from ppa01.princeton.edu ([128.112.128.213]:50478 helo=Princeton.EDU) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcVlF-0003RC-Q7 for 32042@debbugs.gnu.org; Mon, 09 Jul 2018 08:59:26 -0400 Original-Received: from csgsmtp203l.Princeton.EDU (csgsmtp203l.Princeton.EDU [140.180.223.156]) by ppa01.princeton.edu (8.16.0.21/8.16.0.21) with ESMTPS id w69CxJ0F029728 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <32042@debbugs.gnu.org>; Mon, 9 Jul 2018 08:59:19 -0400 Original-Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) (authenticated authid=altosaar bits=0) by csgsmtp203l.Princeton.EDU (8.14.4/8.12.9) with ESMTP id w69CxErB002492 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for <32042@debbugs.gnu.org>; Mon, 9 Jul 2018 08:59:19 -0400 Original-Received: by mail-it0-f41.google.com with SMTP id p4-v6so25222918itf.2 for <32042@debbugs.gnu.org>; Mon, 09 Jul 2018 05:59:19 -0700 (PDT) X-Gm-Message-State: APt69E3Z3pf2tEKcLZmoz3SzIVkR2wUCA8F1DWdcxVlh+FWx43rzhG7n HXqNfAA1/xfEErI+tBHMBVrY6nxyFcaTJ42E5KU= X-Google-Smtp-Source: AAOMgpcjRbb5LAJCRGQRF9UKa9knnbLiALPInvTooFo00+2wxm8VEQTULQ3NKAvcVWCmo1YG/6yJN8pKWMlqqL+jPRY= X-Received: by 2002:a02:503:: with SMTP id e3-v6mr17619116jad.29.1531141154285; Mon, 09 Jul 2018 05:59:14 -0700 (PDT) Original-Received: by 2002:a6b:2301:0:0:0:0:0 with HTTP; Mon, 9 Jul 2018 05:59:13 -0700 (PDT) In-Reply-To: <87va9xkuyu.fsf@gmail.com> X-Gmail-Original-Message-ID: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-07-09_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=quarantine_notspam policy=quarantine score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807090149 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148374 Archived-At: --0000000000009a315d057090943d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable My bad! Reply alling to keep 32042@debbugs.gnu.org in cc. Hope this works= =E2=80=94 There was no change; I still see the broken output in the original post... ```File "", line 1, in import codecs, os;__pyfile =3D codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh'''= , encoding=3D'''utf-8''') ``` I tried: Disabling system integrity protection (booting into OS X High Sierra recovery mode and running `csrutil disable`), then ``` cd /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-= dynload sudo mv readline.so readline.so.bak ``` and the same for the anaconda readline: ``` cd /usr/local/anaconda3/lib/python3.6/lib-dynload mv readline.cpython-36m-darwin.so readline.cpython-36m-darwin.so.bak ``` And installing gnureadline. Still getting the same broken output. Any other ideas? On Monday, July 2, 2018, Noam Postavsky wrote: > Jaan Altosaar writes: > > > Thanks! > > > > I installed gnureadline. I could not rename the readline.so file as the > > file moved to the /System/Library path in Mac High Sierra. > > > > FWIW I am not using the system python, but Anaconda 3 python (ipython > > 6.4.0). > > > > Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 26 2018, 08:42:37= ). > > > > Is there anything else I should try? > > You mean there was no change? Perhaps instead of the /System/Library > path you need to find where the libedit readline is installed for > Anaconda. Although I'm not sure where that would be. > > --0000000000009a315d057090943d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable My bad! Reply alling to keep 32042= @debbugs.gnu.org in cc. Hope this works=E2=80=94

There was no change; I still see the broken output in the original post..= .=C2=A0

```File "<ipython-input-1-57ce0cd6= 00e5>", line 1, in <module>=C2=A0
=C2=A0 =C2=A0 imp= ort codecs, os;__pyfile =3D codecs.open('''/var/folders/qr/s_h2= rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh''', encoding=3D''= 'utf-8''')=C2=A0
```=C2=A0

I tried:=C2=A0

Disabling system integrity prote= ction (booting into OS X High Sierra recovery mode and running `csrutil dis= able`), then=C2=A0

```=C2=A0
cd /System/= Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload= =C2=A0
sudo mv readline.so readline.so.bak=C2=A0
```=C2= =A0

and the same for the anaconda readline:=C2=A0<= /div>

```=C2=A0
cd /usr/local/anaconda3/lib/py= thon3.6/lib-dynload=C2=A0
mv readline.cpython-36m-darwin.so readline.cpython-36m-darwi= n.so.bak=C2=A0
```=C2=A0

And installing = gnureadline.=C2=A0

Still getting the same broken o= utput.=C2=A0

Any other ideas?=C2=A0

On Mo= nday, July 2, 2018, Noam Postavsky <npostavs@gmail.com> wrote:
Jaan = Altosaar <altosaar@princeton.e= du> writes:

> Thanks!
>
> I installed gnureadline. I could not rename the readline.so file as th= e
> file moved to the /System/Library path in Mac High Sierra.
>
> FWIW I am not using the system python, but Anaconda 3 python (ipython<= br> > 6.4.0).
>
> Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 26 2018, 08:42:3= 7).
>
> Is there anything else I should try?

You mean there was no change?=C2=A0 Perhaps instead of the /System/Library<= br> path you need to find where the libedit readline is installed for
Anaconda.=C2=A0 Although I'm not sure where that would be.

--0000000000009a315d057090943d--