From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Otto Maddox" Newsgroups: gmane.emacs.bugs Subject: bug#359: Inferior Python hangs at startup Date: Sat, 07 Jun 2008 16:56:33 +0100 Message-ID: <1212854193.6734.1257265639@webmail.messagingengine.com> References: <1212588443.32247.1256719049@webmail.messagingengine.com> Reply-To: Otto Maddox , 359@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212855075 11200 80.91.229.12 (7 Jun 2008 16:11:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Jun 2008 16:11:15 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 359@emacsbugs.donarmstrong.com To: "Stefan Monnier" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 07 18:11:56 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K511G-0000O3-TL for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jun 2008 18:11:55 +0200 Original-Received: from localhost ([127.0.0.1]:54410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K510T-0005w4-Nd for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jun 2008 12:11:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K50wf-00041o-SO for bug-gnu-emacs@gnu.org; Sat, 07 Jun 2008 12:07:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K50we-00040A-S0 for bug-gnu-emacs@gnu.org; Sat, 07 Jun 2008 12:07:09 -0400 Original-Received: from [199.232.76.173] (port=32833 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K50we-0003zk-Ll for bug-gnu-emacs@gnu.org; Sat, 07 Jun 2008 12:07:08 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58092) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K50we-000672-2y for bug-gnu-emacs@gnu.org; Sat, 07 Jun 2008 12:07:08 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m57G75ed019289; Sat, 7 Jun 2008 09:07:06 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m57G576U018327; Sat, 7 Jun 2008 09:05:07 -0700 X-Loop: don@donarmstrong.com Resent-From: "Otto Maddox" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 07 Jun 2008 16:05:07 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 359 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 359-submit@emacsbugs.donarmstrong.com id=B359.121285419916216 (code B ref 359); Sat, 07 Jun 2008 16:05:07 +0000 Original-Received: (at 359) by emacsbugs.donarmstrong.com; 7 Jun 2008 15:56:39 +0000 Original-Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m57FuZJ0016209 for <359@emacsbugs.donarmstrong.com>; Sat, 7 Jun 2008 08:56:36 -0700 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id B7B1A1127F5; Sat, 7 Jun 2008 11:56:34 -0400 (EDT) Original-Received: from web5.messagingengine.com ([10.202.2.214]) by compute2.internal (MEProxy); Sat, 07 Jun 2008 11:56:34 -0400 Original-Received: by web5.messagingengine.com (Postfix, from userid 99) id 6F98C4CD0E; Sat, 7 Jun 2008 11:56:33 -0400 (EDT) X-Sasl-Enc: 2otqZX2FU76y0vzkfMxM8yMRGmQ04RMN6SbInAtU4Zgy 1212854193 Content-Disposition: inline X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sat, 07 Jun 2008 12:07:09 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18288 Archived-At: OK, so I just tried it with a locally built python instead of the Apple python, and it works. So the problem seems to be something to do with the combination of Emacs 22.2 on Mac OS X 10.5 and Apple's python. On Thu, 05 Jun 2008 10:21:22 -0400, "Stefan Monnier" said: > > M-x run-python RET > > Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) > > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > > Type "help", "copyright", "credits" or "license" for more information. > >>>> import emacs; print '_emacs_out () > > > and the inferior Python buffer hangs. > > I cannot reporduce it. I did: > > % emacs/22/src/emacs -Q > > then > > M-x run-python RET > > which resulted in a *Python* buffer containing just > > Python 2.5.2 (r252:60911, May 28 2008, 08:35:32) > [GCC 4.2.4 (Debian 4.2.4-1)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> > > I then typed something at that prompt and it worked fine. I even tried > to type "import emacs; print '_emacs_out ()" and it correctly signalled > an error: > > Python 2.5.2 (r252:60911, May 28 2008, 08:35:32) > [GCC 4.2.4 (Debian 4.2.4-1)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> print 1 > 1 > >>> import emacs; print '_emacs_out () > File "", line 1 > import emacs; print '_emacs_out () > ^ > SyntaxError: EOL while scanning single-quoted string > >>> print 1 > 1 > >>> > > Can you try and come up with a more precise recipe to reproduce > your problem? Or maybe it's specific to your build (I see you're > apparently running under macosx, is that an X11 build? A Carbon > build?). > > > Stefan -- Otto Maddox ottomaddox@fastmail.fm -- http://www.fastmail.fm - The way an email service should be