From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Newsgroups: gmane.emacs.bugs Subject: bug#18052: 24.3; python.el and ipython shell Date: Sun, 20 Jul 2014 03:02:06 -0300 Message-ID: <878unoy3dt.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1405836200 26329 80.91.229.3 (20 Jul 2014 06:03:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jul 2014 06:03:20 +0000 (UTC) Cc: 18052-done@debbugs.gnu.org To: Federico Beffa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 20 08:03:13 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X8kDG-0006wr-1u for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jul 2014 08:03:10 +0200 Original-Received: from localhost ([::1]:56474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8kDF-0002bg-IZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jul 2014 02:03:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8kDB-0002bK-ON for bug-gnu-emacs@gnu.org; Sun, 20 Jul 2014 02:03:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8kD9-0003sY-Bd for bug-gnu-emacs@gnu.org; Sun, 20 Jul 2014 02:03:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8kD9-0003sU-9J for bug-gnu-emacs@gnu.org; Sun, 20 Jul 2014 02:03:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X8kD9-00081B-0i for bug-gnu-emacs@gnu.org; Sun, 20 Jul 2014 02:03:03 -0400 Resent-From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Jul 2014 06:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 18052 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Mail-Followup-To: 18052@debbugs.gnu.org, fgallina@gnu.org, beffa@ieee.org Original-Received: via spool by 18052-done@debbugs.gnu.org id=D18052.140583613030726 (code D ref 18052); Sun, 20 Jul 2014 06:03:02 +0000 Original-Received: (at 18052-done) by debbugs.gnu.org; 20 Jul 2014 06:02:10 +0000 Original-Received: from localhost ([127.0.0.1]:59923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8kCH-0007zV-W5 for submit@debbugs.gnu.org; Sun, 20 Jul 2014 02:02:10 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:43336 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8kCG-0007zO-47 for 18052-done@debbugs.gnu.org; Sun, 20 Jul 2014 02:02:09 -0400 Original-Received: from 222-99-245-190.fibertel.com.ar ([190.245.99.222]:50280 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1X8kCE-0005GE-W4; Sun, 20 Jul 2014 02:02:07 -0400 In-Reply-To: (Federico Beffa's message of "Sat, 19 Jul 2014 18:25:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91680 Archived-At: Federico Beffa writes: > Unfortunately it does not. I see the same intermittent problem as > without the "-u" option. > So I tracked down what's going on. Removing "console" from your `python-shell-interpreter-args' should do the trick. The "console" subcommand, starts an iPython server (AKA kernel) and then connects the client console to it (that's the reason you see two processes). Removing the "console" subcommand just starts a standalone iPython shell that doesn't suffer from this intermittent initialization problem. Now the reason why the console subcommand fails seems to be an iPython bug itself. What happens is that python.el shell setup codes are sent quickly as soon as the inferior process starts, but it seems that sometimes the iPython kernel startup doesn't expect that and fails to start properly, thus causing the resulting iPython shell to be non responsive. This is not particularly a problem of python.el, in fact the issue can be replicated in the commandline by spawning processes like so: echo "print ('yes')" | ipython console With that, I get the same intermittent behavior observed previously. So my suggestion is to report this bug upstream. In the meantime, I'll include some notes about this in the header of python.el. PS: As you may expect, when an iPython kernel is already started, using "console --existing" works reliably, this may be useful in case you really needed the client-server mode. Cheers, Fabi=C3=A1n