* emacs shell hangs on W32 with python
@ 2006-11-02 22:57 emin.shopper
0 siblings, 0 replies; 7+ messages in thread
From: emin.shopper @ 2006-11-02 22:57 UTC (permalink / raw)
Emacs seems to freeze when doing certain shell commands on Microsoft
Windows. The following is a simple example with Xemacs:
----------------------------------------------------------
[Xemacs version 21.4.19; January 2006]
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
h:\>c:\python25\python.exe -i
c:\python25\python.exe -i
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>>
>>>
>>> t = Tkinter.Tk()
>>> 2
2
2
-------------------------------------------
At this point, python no longer accepts input. This example works fine
when starting python through dos instead of emacs. Note, I am not using
python-mode.el so that is not the problem. I also reproduced the
problem with GNU Emacs (version "GNU Emacs 21.3.1
(i386-mingw-nt5.1.2600)
of 2004-03-10 on NYAUMO")
Is there any way to run python through emacs or xemacs without having
it hang or is shell support broken?
Thanks in advance,
-Emin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs shell hangs on W32 with python
[not found] <1162508249.399337.233170@m73g2000cwd.googlegroups.com>
@ 2006-11-03 7:03 ` Brian Elmegaard
[not found] ` <uu01hko4n.fsf@rkspeed-rugby.dk>
1 sibling, 0 replies; 7+ messages in thread
From: Brian Elmegaard @ 2006-11-03 7:03 UTC (permalink / raw)
emin.shopper@gmail.com writes:
> Is there any way to run python through emacs or xemacs without having
> it hang or is shell support broken?
Doing it from eshell gives the same problem :-(
--
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
Rugbyklubben Speed Scandinavian Open 7s Rugby http://www.rkspeed.dk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs shell hangs on W32 with python
[not found] ` <uu01hko4n.fsf@rkspeed-rugby.dk>
@ 2006-11-03 14:19 ` emin.shopper
[not found] ` <1162563579.312620.247480@b28g2000cwb.googlegroups.com>
1 sibling, 0 replies; 7+ messages in thread
From: emin.shopper @ 2006-11-03 14:19 UTC (permalink / raw)
Hmm, it doesn't even work if I run the cygwin version of GNU Emacs and
have it start the Windows version of python through python-mode or if I
start a shell in emacs and then start the Windows version of python
through the shell. Interestingly, however, things DO seem to work if I
use cygwin emacs with cygwin python (version 2.4.1).
I wonder if the windows version of Tkinter does something weird such as
implicitly calling Tk.mainloop()...
Any help would be much appreciated.
Brian Elmegaard wrote:
> emin.shopper@gmail.com writes:
>
> > Is there any way to run python through emacs or xemacs without having
> > it hang or is shell support broken?
>
> Doing it from eshell gives the same problem :-(
> --
> Brian (remove the sport for mail)
> http://www.et.web.mek.dtu.dk/Staff/be/be.html
> Rugbyklubben Speed Scandinavian Open 7s Rugby http://www.rkspeed.dk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs shell hangs on W32 with python
[not found] ` <1162563579.312620.247480@b28g2000cwb.googlegroups.com>
@ 2006-11-03 14:44 ` Lennart Borgman
[not found] ` <mailman.94.1162565107.2155.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 7+ messages in thread
From: Lennart Borgman @ 2006-11-03 14:44 UTC (permalink / raw)
Cc: help-gnu-emacs
Would it not be a good idea to try the CVS version of Emacs for this now
since the pretest will soon begin? Go here for precompiled versions:
http://www.emacswiki.org/cgi-bin/wiki/CategoryWThirtyTwo
emin.shopper@gmail.com wrote:
> Hmm, it doesn't even work if I run the cygwin version of GNU Emacs and
> have it start the Windows version of python through python-mode or if I
> start a shell in emacs and then start the Windows version of python
> through the shell. Interestingly, however, things DO seem to work if I
> use cygwin emacs with cygwin python (version 2.4.1).
>
> I wonder if the windows version of Tkinter does something weird such as
> implicitly calling Tk.mainloop()...
>
> Any help would be much appreciated.
>
> Brian Elmegaard wrote:
>
>> emin.shopper@gmail.com writes:
>>
>>
>>> Is there any way to run python through emacs or xemacs without having
>>> it hang or is shell support broken?
>>>
>> Doing it from eshell gives the same problem :-(
>> --
>> Brian (remove the sport for mail)
>> http://www.et.web.mek.dtu.dk/Staff/be/be.html
>> Rugbyklubben Speed Scandinavian Open 7s Rugby http://www.rkspeed.dk
>>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs shell hangs on W32 with python
[not found] ` <mailman.94.1162565107.2155.help-gnu-emacs@gnu.org>
@ 2006-11-03 15:17 ` emin.shopper
[not found] ` <1162567058.729292.316730@h54g2000cwb.googlegroups.com>
1 sibling, 0 replies; 7+ messages in thread
From: emin.shopper @ 2006-11-03 15:17 UTC (permalink / raw)
The same problems occur with the latest emacs binary from CVS
(emacs-version)
"GNU Emacs 23.0.0.1 (i386-mingw-nt5.1.2600) of 2006-10-16 on DTOP"
Lennart Borgman wrote:
> Would it not be a good idea to try the CVS version of Emacs for this now
> since the pretest will soon begin? Go here for precompiled versions:
>
> http://www.emacswiki.org/cgi-bin/wiki/CategoryWThirtyTwo
>
>
>
>
> emin.shopper@gmail.com wrote:
> > Hmm, it doesn't even work if I run the cygwin version of GNU Emacs and
> > have it start the Windows version of python through python-mode or if I
> > start a shell in emacs and then start the Windows version of python
> > through the shell. Interestingly, however, things DO seem to work if I
> > use cygwin emacs with cygwin python (version 2.4.1).
> >
> > I wonder if the windows version of Tkinter does something weird such as
> > implicitly calling Tk.mainloop()...
> >
> > Any help would be much appreciated.
> >
> > Brian Elmegaard wrote:
> >
> >> emin.shopper@gmail.com writes:
> >>
> >>
> >>> Is there any way to run python through emacs or xemacs without having
> >>> it hang or is shell support broken?
> >>>
> >> Doing it from eshell gives the same problem :-(
> >> --
> >> Brian (remove the sport for mail)
> >> http://www.et.web.mek.dtu.dk/Staff/be/be.html
> >> Rugbyklubben Speed Scandinavian Open 7s Rugby http://www.rkspeed.dk
> >>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs shell hangs on W32 with python
[not found] ` <1162567058.729292.316730@h54g2000cwb.googlegroups.com>
@ 2006-11-03 15:52 ` Lennart Borgman
[not found] ` <mailman.98.1162569138.2155.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 7+ messages in thread
From: Lennart Borgman @ 2006-11-03 15:52 UTC (permalink / raw)
Cc: help-gnu-emacs
Could you then please post a bug report? Just choose "Help - Send bug
report" from the menus.
If you are using the distribution with Emacs+EmacsW32 then please use
the unpatched version for bug reports.
emin.shopper@gmail.com wrote:
> The same problems occur with the latest emacs binary from CVS
> (emacs-version)
>
> "GNU Emacs 23.0.0.1 (i386-mingw-nt5.1.2600) of 2006-10-16 on DTOP"
>
> Lennart Borgman wrote:
>
>> Would it not be a good idea to try the CVS version of Emacs for this now
>> since the pretest will soon begin? Go here for precompiled versions:
>>
>> http://www.emacswiki.org/cgi-bin/wiki/CategoryWThirtyTwo
>>
>>
>>
>>
>> emin.shopper@gmail.com wrote:
>>
>>> Hmm, it doesn't even work if I run the cygwin version of GNU Emacs and
>>> have it start the Windows version of python through python-mode or if I
>>> start a shell in emacs and then start the Windows version of python
>>> through the shell. Interestingly, however, things DO seem to work if I
>>> use cygwin emacs with cygwin python (version 2.4.1).
>>>
>>> I wonder if the windows version of Tkinter does something weird such as
>>> implicitly calling Tk.mainloop()...
>>>
>>> Any help would be much appreciated.
>>>
>>> Brian Elmegaard wrote:
>>>
>>>
>>>> emin.shopper@gmail.com writes:
>>>>
>>>>
>>>>
>>>>> Is there any way to run python through emacs or xemacs without having
>>>>> it hang or is shell support broken?
>>>>>
>>>>>
>>>> Doing it from eshell gives the same problem :-(
>>>> --
>>>> Brian (remove the sport for mail)
>>>> http://www.et.web.mek.dtu.dk/Staff/be/be.html
>>>> Rugbyklubben Speed Scandinavian Open 7s Rugby http://www.rkspeed.dk
>>>>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs shell hangs on W32 with python
[not found] ` <mailman.98.1162569138.2155.help-gnu-emacs@gnu.org>
@ 2006-11-03 19:54 ` emin.shopper
0 siblings, 0 replies; 7+ messages in thread
From: emin.shopper @ 2006-11-03 19:54 UTC (permalink / raw)
Lennart Borgman wrote:
> Could you then please post a bug report? Just choose "Help - Send bug
> report" from the menus.
I sent a bug-report to the emacs list as requested and got an email
reply saying the message is being held for a moderator to look at.
Since the bug seems to be in the interaction of emacs with python, I'm
also cross-posting this to comp.lang.python in case anyone there can
help. (Note this bug shows up in all the versions of emacs that I have
tried including Xemacs and GNU Emacs 21).
The body of the bug-report is below:
I started emacs with -q did ESC-x shell and entered the following
----------------------------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
h:\projects\arcp_db\trunk\src\gui>c:\python25\python.exe -i
c:\python25\python.exe -i
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>> t = Tkinter.Tk()
>>> 2
----------------------------------------------------------------------
Note that after the call to Tkinter.Tk() my python window freezes and
no longer works. Killing the Tk window does not help. I realize that
this may seem like a bug in python and not emacs except that if I do
exactly the same thing through a dos shell I have no problems (i.e.,
python keeps accepting input). Consequently, it seems like emacs is
doing something funky when running the shell that interferes with
python in a way that running the shell without emacs would not do.
Sincerely,
-Emin Martinian
In GNU Emacs 23.0.0.1 (i386-mingw-nt5.1.2600)
of 2006-10-16 on DTOP
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.1) --cflags -O2 -g0
-march=i386 -mtune=i686 -pipe -IC:/gnuwin32/include_emacs
-IC:/gnuwin32/lib -IC:/gnuwin32/src --ldflags -s '
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: ENU
locale-coding-system: cp1252
default-enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
encoded-kbd-mode: t
tooltip-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-compression-mode: t
line-number-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<report-emacs-bug>
Recent messages:
(c:\Program Files\emacs-23\ntemacs23\bin\emacs.exe -q)
Loading encoded-kb...done
For information about the GNU Project and its goals, type C-h C-p. [2
times]
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-11-03 19:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-02 22:57 emacs shell hangs on W32 with python emin.shopper
[not found] <1162508249.399337.233170@m73g2000cwd.googlegroups.com>
2006-11-03 7:03 ` Brian Elmegaard
[not found] ` <uu01hko4n.fsf@rkspeed-rugby.dk>
2006-11-03 14:19 ` emin.shopper
[not found] ` <1162563579.312620.247480@b28g2000cwb.googlegroups.com>
2006-11-03 14:44 ` Lennart Borgman
[not found] ` <mailman.94.1162565107.2155.help-gnu-emacs@gnu.org>
2006-11-03 15:17 ` emin.shopper
[not found] ` <1162567058.729292.316730@h54g2000cwb.googlegroups.com>
2006-11-03 15:52 ` Lennart Borgman
[not found] ` <mailman.98.1162569138.2155.help-gnu-emacs@gnu.org>
2006-11-03 19:54 ` emin.shopper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).