all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Evgeniy Sharapov <evgeniy.sharapov@gmail.com>
To: npostavs@users.sourceforge.net
Cc: 28051@debbugs.gnu.org
Subject: bug#28051: 25.2; Multiline Statement Indentation Error in Inferior Python Mode
Date: Thu, 24 Aug 2017 22:50:28 -0400	[thread overview]
Message-ID: <CA+MgHoH9Kojhhfunod7uP18crwG7MhrymsK2XWieXncCgaa9Pw@mail.gmail.com> (raw)
In-Reply-To: <87o9rby5ty.fsf@users.sourceforge.net>

[-- Attachment #1: Type: text/plain, Size: 2556 bytes --]

I have pyreadline installed. It does help in a sense that completion works
then in the inferior python mode, although I get following *Warning* buffer

Warning (python): Python shell prompts cannot be detected.
If your emacs session hangs when starting python shells
recover with ‘keyboard-quit’ and then try fixing the
interactive flag for your interpreter by adjusting the
‘python-shell-interpreter-interactive-arg’ or add regexps
matching shell prompts in the directory-local friendly vars:
  + ‘python-shell-prompt-regexp’
  + ‘python-shell-prompt-block-regexp’
  + ‘python-shell-prompt-output-regexp’
Or alternatively in:
  + ‘python-shell-prompt-input-regexps’
  + ‘python-shell-prompt-output-regexps’
Warning (python): Your ‘python-shell-interpreter’ doesn’t seem to support
readline, yet ‘python-shell-completion-native-enable’ was t and "python" is
not part of the ‘python-shell-completion-native-disabled-interpreters’
list.  Native completions have been disabled locally.



But the *Python* buffer says everythng has been loaded ok


Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> python.el: native completion setup loaded
>>>




==========================================
  Evgeniy N. Sharapov
  Phone: (630) - 779 - 3208


On Sat, Aug 19, 2017 at 10:45 AM, <npostavs@users.sourceforge.net> wrote:

> evgeniy.sharapov@gmail.com writes:
>
> > leads to IndentationError once I try to enter multi-line statements in
> > the Inferior python mode.
> >
> > Steps:
> >
> > 1. Start Emacs
> > 2. M-x run-python
> > 3. try to enter something simple like
> >
> >    for x in range(10):<RET>
> >    <TAB>print x<RET>
> >
> > 4. The following error occurs:
> >
> > File "<stdin>", line 1
> >     print x
> >     ^
> > IndentationError: unexpected indent
>
> Does it help if you install pyreadline?  From comments in python.el:
>
>     ;; If your
>     ;; Python installation lacks readline (like CPython for Windows),
>     ;; installing pyreadline (URL `http://ipython.org/pyreadline.html')
>     ;; should suffice.  To troubleshoot why you are not getting any
>     ;; completions, you can try the following in your Python shell:
>
>     ;; >>> import readline, rlcompleter
>
>     ;; If you see an error, then you need to either install pyreadline or
>     ;; setup custom code that avoids that dependency.
>

[-- Attachment #2: Type: text/html, Size: 3670 bytes --]

  reply	other threads:[~2017-08-25  2:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-11 17:24 bug#28051: 25.2; Multiline Statement Indentation Error in Inferior Python Mode evgeniy.sharapov
2017-08-11 18:19 ` bug#28051: " Evgeniy Sharapov
2017-08-12 17:50   ` Glenn Morris
2017-08-14 23:59     ` npostavs
2017-08-21 12:17       ` npostavs
2017-08-22  1:36         ` npostavs
2017-08-27 16:42           ` Dmitry Gutov
2017-08-27 18:28             ` npostavs
2017-08-19 14:45 ` bug#28051: 25.2; " npostavs
2017-08-25  2:50   ` Evgeniy Sharapov [this message]
2017-08-25 12:20     ` npostavs

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=CA+MgHoH9Kojhhfunod7uP18crwG7MhrymsK2XWieXncCgaa9Pw@mail.gmail.com \
    --to=evgeniy.sharapov@gmail.com \
    --cc=28051@debbugs.gnu.org \
    --cc=npostavs@users.sourceforge.net \
    /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.