From: zaimzet@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Troubles with the python shell under windows
Date: Mon, 28 Apr 2014 01:49:31 -0700 (PDT) [thread overview]
Message-ID: <fffe35f9-1184-40df-834e-95404e31af99@googlegroups.com> (raw)
In-Reply-To: <72a74f19-f18c-4293-b817-d9d60337b30f@googlegroups.com>
On Monday, April 28, 2014 1:08:07 AM UTC-7, zai...@gmail.com wrote:
> For various reasons I'd like to develop python in Emacs under windows. Emacs works pretty well in windows, but there are some hiccups with inferior processes, like python.
>
>
>
> When I enter a statement into the Python prompt that causes an error, the error doesn't surface until after the next prompt is entered. I've invoked the debugger and done a side-by-side comparison with Emacs under GNU/Linux and the point of difference is during the call to process-send-string. In GNU/Linux, this results in the error immediately appearing. In windoze nothing shows up but another prompt.
>
>
>
> It got worse though. I then tried to use TAB to complete at point and Emacs completely freezes and I had to kill the process. I take this as a sign that something is dreadfully wrong (other than that I'm using windows). I'm guessing it sent its call to get the completions, and the response is AWOL.
>
>
>
> I was wondering if anyone could help me get to the bottom of this issue.
>
>
>
> Keep in mind that this is with native NTEmacs 24.3 and native Python 3. I tested it with Cygwin Python 2, and it seems to cooperate, Cygwin Python 3 does not. All of my pythons are 64-bit. So it seems there may be an issue with Python 3.
Aaaaand half an hour later I solve my own problem. I should be in bed right now...
Python is buffering its output when it should not be. For any future people grappling with this problem, try this:
1. Use M-x customize to set the Python Shell Interpreter Args to -i -u. The -u option forces Python to not buffer its output.
2. If you are wondering why completion still doesn't work, it's because you need an implementation of readline. Try installing this: https://pypi.python.org/pypi/pyreadline/2.0
Good luck.
prev parent reply other threads:[~2014-04-28 8:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-28 8:08 Troubles with the python shell under windows zaimzet
2014-04-28 8:49 ` zaimzet [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fffe35f9-1184-40df-834e-95404e31af99@googlegroups.com \
--to=zaimzet@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.