From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: jaan.altosaar@gmail.com Newsgroups: gmane.emacs.bugs Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Date: Fri, 6 Jul 2018 12:21:52 -0700 (PDT) Message-ID: <291b6c7e-1e95-4ee1-bab7-4d8db52c0977@googlegroups.com> References: <87zhz9l6p9.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1530910877 618 195.159.176.226 (6 Jul 2018 21:01:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Jul 2018 21:01:17 +0000 (UTC) Injection-Date: Fri, 06 Jul 2018 19:21:53 +0000 User-Agent: G2/1.0 To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 06 23:01:13 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 1fbXqo-0008R8-Hl for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jul 2018 23:01:10 +0200 Original-Received: from localhost ([::1]:59640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbXsv-0003Fg-NY for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jul 2018 17:03:21 -0400 X-Received: by 2002:a0c:d7c5:: with SMTP id g5-v6mr1397727qvj.0.1530904913403; Fri, 06 Jul 2018 12:21:53 -0700 (PDT) X-Received: by 2002:a37:4993:: with SMTP id w141-v6mr859632qka.4.1530904912847; Fri, 06 Jul 2018 12:21:52 -0700 (PDT) Original-Path: usenet.stanford.edu!f6-v6no909236qth.0!news-out.google.com!a20-v6ni622qtj.1!nntp.google.com!f6-v6no909212qth.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.bug In-Reply-To: Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=216.165.95.135; posting-account=aWGmSAoAAADOGj_6AbEMVmIBltxx1HXU Original-NNTP-Posting-Host: 216.165.95.135 Original-Xref: usenet.stanford.edu gnu.emacs.bug:166451 X-Mailman-Approved-At: Fri, 06 Jul 2018 17:03:12 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list 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:148270 Archived-At: There was no change; I still see the broken output in the original post... ```File "", line 1, in import codecs, os;__pyfile = codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh''', encoding='''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 at 8:46:10 PM UTC-4, 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.