From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#28051: 25.2; Multiline Statement Indentation Error in Inferior Python Mode Date: Sat, 19 Aug 2017 10:45:13 -0400 Message-ID: <87o9rby5ty.fsf@users.sourceforge.net> References: <56pwp6ayq3x.fsf@nn-esharapov-04.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503153857 10040 195.159.176.226 (19 Aug 2017 14:44:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 Aug 2017 14:44:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: 28051@debbugs.gnu.org To: evgeniy.sharapov@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 19 16:44:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dj4yr-0001uc-ON for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Aug 2017 16:44:05 +0200 Original-Received: from localhost ([::1]:57948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dj4yx-0006v2-Un for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Aug 2017 10:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dj4ys-0006uc-1v for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2017 10:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dj4yo-0000Xi-UV for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2017 10:44:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dj4yo-0000XU-Qa for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2017 10:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dj4yn-0003AU-Vq for bug-gnu-emacs@gnu.org; Sat, 19 Aug 2017 10:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Aug 2017 14:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 28051-submit@debbugs.gnu.org id=B28051.150315382712151 (code B ref 28051); Sat, 19 Aug 2017 14:44:01 +0000 Original-Received: (at 28051) by debbugs.gnu.org; 19 Aug 2017 14:43:47 +0000 Original-Received: from localhost ([127.0.0.1]:45730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dj4yY-00039v-Pp for submit@debbugs.gnu.org; Sat, 19 Aug 2017 10:43:46 -0400 Original-Received: from mail-it0-f50.google.com ([209.85.214.50]:33396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dj4yW-00039h-Ol for 28051@debbugs.gnu.org; Sat, 19 Aug 2017 10:43:45 -0400 Original-Received: by mail-it0-f50.google.com with SMTP id o72so4578791ita.0 for <28051@debbugs.gnu.org>; Sat, 19 Aug 2017 07:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=jJM0OUlLBHS95FGWGF76MlNa/l/Tg/3ZDDOScC5utMA=; b=h+bkq0ARQ59WtORleh2A8L9I9b0WXnxCHHfZQnOFaHowNPNrL2Tfi2AmGb2kFNSZDq dyYBn8N6xE1LZK+5QTgQ+ahen5aLYpYpbLCvJjs2OXrn6Jcr+xCFbOvEYlD4OOTqCp15 INZ35oyaTgWrBj1at35PQSrqiimWKcG53GBBTSc0pGpIbKC+MTMbSShodKZ2uuqgcU2e XDK8OYG3ErszgMcN55vYsOVLYBSyLuN9IO7+UqlzD3HjlxNmPqAUxcS5GOeBlkSZiQfP 2E/tpLRC85QkJzexEO1IksmySuwDwVSOurKEu/d4oyOIpp9Ax/Di1Z4Uxt3mWHHBzFDt zh4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=jJM0OUlLBHS95FGWGF76MlNa/l/Tg/3ZDDOScC5utMA=; b=bPSeUn+IxPSjpYnuVTjAkhQxbLdqWxtLxRxfrSM1KKeAbnYN8b+gKQionlYr0esZAE 8kYGeOe65lWfj4/DlCXCEiuElkYmo8OQ+TqVMdffjYmpTBcCRPAJm2KmxlZUWhvU+ZNT UDwQvuLvl7pC1Dau9tcER8FXRB1ykObegy96R+oyiGDTq77ma+5OWF45YgAy0OYfdVJT loeH0oNDAWHpXG/ZA/ghmDnzZj1S8//129uWkfcYovBXvQgeQkYpcsPAklQnf+iztrto wvvOC7cyF/9pwjyzhdEjhu3jRejNgc0/f0b1HRYD2PAHusCv7soIC9WL/5KbBsQhvFkp rwLg== X-Gm-Message-State: AHYfb5gFIIb4y34Vjcb3ggXT4oL/+4bsQoKDXcZicVUTT1u24jaE7vNc ABjZz0QhtEx6jyLQ X-Received: by 10.36.207.70 with SMTP id y67mr1328835itf.128.1503153818913; Sat, 19 Aug 2017 07:43:38 -0700 (PDT) Original-Received: from zony ([45.2.119.49]) by smtp.googlemail.com with ESMTPSA id g200sm123964itb.3.2017.08.19.07.43.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 Aug 2017 07:43:36 -0700 (PDT) In-Reply-To: <56pwp6ayq3x.fsf@nn-esharapov-04.i-did-not-set--mail-host-address--so-tickle-me> (evgeniy sharapov's message of "Fri, 11 Aug 2017 13:24:34 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135914 Archived-At: 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): > print x > > 4. The following error occurs: > > File "", 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.