GNU bug report logs - #359
Inferior Python hangs at startup

Previous Next

Package: emacs;

Reported by: "Otto Maddox" <ottomaddox <at> fastmail.fm>

Date: Wed, 4 Jun 2008 14:15:03 UTC

Severity: normal

Tags: moreinfo

Merged with 515

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 359 in the body.
You can then email your comments to 359 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#359; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Otto Maddox" <ottomaddox <at> fastmail.fm>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Otto Maddox" <ottomaddox <at> fastmail.fm>
To: bug-gnu-emacs <at> gnu.org
Subject: Inferior Python hangs at startup
Date: Wed, 04 Jun 2008 15:07:23 +0100
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.

In GNU Emacs 22.2.1 (i386-apple-darwin9.2.2, Carbon Version 1.6.0)
 of 2008-04-16

-- 
  Otto Maddox
  ottomaddox <at> fastmail.fm

-- 
http://www.fastmail.fm - Choose from over 50 domains or use your own






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#359; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 359 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Otto Maddox <ottomaddox <at> fastmail.fm>
Cc: 359 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#359: Inferior Python hangs at startup
Date: Thu, 05 Jun 2008 10:21:22 -0400
> 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 "<stdin>", 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




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#359; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#359; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Otto Maddox" <ottomaddox <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #20 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Otto Maddox" <ottomaddox <at> fastmail.fm>
To: "Stefan Monnier" <monnier <at> IRO.UMontreal.CA>
Cc: 359 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#359: Inferior Python hangs at startup
Date: Fri, 06 Jun 2008 01:32:59 +0100
The problem occurs for Emacs 22.2 on Mac OS X 10.5 (Leopard), whether compiled for Carbon or just for the console.  I haven't tried an X build.  Precisely, to reproduce:

$ emacs -Q -nw
M-x run-python RET

and that's it.

It doesn't happen for Emacs 22.2 on my Mac OS X 10.4 (Tiger) machine, which has a different Python build, btw:

Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

Any tips for debugging this problem?  I'm keen to see it fixed because it's a bit of a showstopper for me.


On Thu, 05 Jun 2008 10:21:22 -0400, "Stefan Monnier" <monnier <at> IRO.UMontreal.CA> 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 "<stdin>", 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 <at> fastmail.fm

-- 
http://www.fastmail.fm - I mean, what is it about a decent email service?






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#359; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Otto Maddox" <ottomaddox <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#359; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Otto Maddox" <ottomaddox <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #30 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Otto Maddox" <ottomaddox <at> fastmail.fm>
To: "Stefan Monnier" <monnier <at> IRO.UMontreal.CA>
Cc: 359 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#359: Inferior Python hangs at startup
Date: Sat, 07 Jun 2008 16:56:33 +0100
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" <monnier <at> IRO.UMontreal.CA> 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 "<stdin>", 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 <at> fastmail.fm

-- 
http://www.fastmail.fm - The way an email service should be






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#359; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Otto Maddox" <ottomaddox <at> fastmail.fm>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

bug reassigned from package `emacs' to `emacs,python'. Request was from Juanma Barranquero <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. (Sat, 24 Jan 2009 13:30:03 GMT) Full text and rfc822 format available.

bug reassigned from package 'emacs,python' to 'emacs'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 20 Jan 2010 22:05:02 GMT) Full text and rfc822 format available.

Merged 359 515. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 20 Jan 2010 22:05:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 359 <at> debbugs.gnu.org and "Otto Maddox" <ottomaddox <at> fastmail.fm> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 11 Sep 2011 05:36:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 09 Oct 2011 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 313 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.