all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#359: Inferior Python hangs at startup
@ 2008-06-04 14:07 Otto Maddox
  2008-06-05 14:21 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Otto Maddox @ 2008-06-04 14:07 UTC (permalink / raw)
  To: bug-gnu-emacs

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@fastmail.fm

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








^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#359: Inferior Python hangs at startup
  2008-06-04 14:07 bug#359: Inferior Python hangs at startup Otto Maddox
@ 2008-06-05 14:21 ` Stefan Monnier
  2008-06-06  0:32   ` Otto Maddox
  2008-06-07 15:56   ` Otto Maddox
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Monnier @ 2008-06-05 14:21 UTC (permalink / raw)
  To: Otto Maddox; +Cc: bug-gnu-emacs, 359

> 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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#359: Inferior Python hangs at startup
  2008-06-05 14:21 ` Stefan Monnier
@ 2008-06-06  0:32   ` Otto Maddox
  2008-06-07 15:56   ` Otto Maddox
  1 sibling, 0 replies; 4+ messages in thread
From: Otto Maddox @ 2008-06-06  0:32 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: bug-gnu-emacs, 359

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@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@fastmail.fm

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







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#359: Inferior Python hangs at startup
  2008-06-05 14:21 ` Stefan Monnier
  2008-06-06  0:32   ` Otto Maddox
@ 2008-06-07 15:56   ` Otto Maddox
  1 sibling, 0 replies; 4+ messages in thread
From: Otto Maddox @ 2008-06-07 15:56 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: bug-gnu-emacs, 359

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@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@fastmail.fm

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







^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-07 15:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 14:07 bug#359: Inferior Python hangs at startup Otto Maddox
2008-06-05 14:21 ` Stefan Monnier
2008-06-06  0:32   ` Otto Maddox
2008-06-07 15:56   ` Otto Maddox

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.