all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jaan Altosaar <altosaar@princeton.edu>
To: Noam Postavsky <npostavs@gmail.com>
Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org>
Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output
Date: Mon, 2 Jul 2018 17:18:09 -0400	[thread overview]
Message-ID: <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@mail.gmail.com> (raw)
In-Reply-To: <87zhz9l6p9.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1858 bytes --]

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?

On Monday, July 2, 2018, Noam Postavsky <npostavs@gmail.com> wrote:

> merge 32042 25753
> quit
>
> Jaan Altosaar <altosaar@princeton.edu> writes:
>
> >   File "<ipython-input-1-57ce0cd600e5>", line 1, in <module>
> >     import codecs, os;__pyfile =
> > codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000g
> n/T/pyLbk6Vh''',
> > encoding='''utf-8''');__code =
> > __pyfile.read().encode('''utf-8''');__pyfile.close();os.remo
> ve('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/
> pyLbk6Vh''');exec(compile(__code,
> > '''/Users/jaan/tmp/test.py''', 'exec'));
>
> > Is there any way to clean up the output, especially the parts involving
> > `codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000
> gn/T/pyLbk6Vh'''`?
>
> Try installing gnureadline, as described in etc/PROBLEMS:
>
>     *** In Inferior Python mode, input is echoed and native completion
> doesn't work.
>     <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25753>
>
>     This happens when python uses a libedit based readline module, which
>     is the default on macOS.  This can be worked around by installing a
>     GNU readline based module instead, for example, using setuptools
>
>         sudo easy_install gnureadline
>
>     And then rename the system's readline so that it won't be loaded:
>
>         cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python
> 2.7/lib-dynload
>         mv readline.so readline.so.bak
>
>     See <https://pypi.python.org/pypi/gnureadline> for more details on
>     installation.
>
>
>

[-- Attachment #2: Type: text/html, Size: 2786 bytes --]

  reply	other threads:[~2018-07-02 21:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-02 20:13 bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Jaan Altosaar
2018-07-02 20:32 ` Noam Postavsky
2018-07-02 21:18   ` Jaan Altosaar [this message]
2018-07-03  0:45     ` Noam Postavsky
2018-07-09 12:59       ` Jaan Altosaar
2018-07-09 19:55         ` Noam Postavsky
     [not found]         ` <mailman.3332.1531166168.1292.bug-gnu-emacs@gnu.org>
2018-07-10 22:09           ` Jaan Altosaar
2018-07-10 22:36             ` Noam Postavsky
     [not found]             ` <mailman.3400.1531262228.1292.bug-gnu-emacs@gnu.org>
2018-07-10 22:51               ` Jaan Altosaar
2018-07-11  0:32                 ` Noam Postavsky
2021-09-05  7:42                   ` Lars Ingebrigtsen
2018-07-10 22:14           ` Jaan Altosaar
     [not found]     ` <mailman.2978.1530578768.1292.bug-gnu-emacs@gnu.org>
2018-07-06 19:21       ` jaan.altosaar
2018-07-07 14:43 ` Noam Postavsky
2018-07-07 16:42   ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@mail.gmail.com \
    --to=altosaar@princeton.edu \
    --cc=32042@debbugs.gnu.org \
    --cc=npostavs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.