GNU bug report logs - #37333
Org-mode python output not working

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: org-mode; Reported by: JohnMichaelWu@HIDDEN; dated Sat, 7 Sep 2019 17:22:02 UTC; Maintainer for org-mode is emacs-orgmode@HIDDEN.
bug reassigned from package 'emacs' to 'org-mode'. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Sep 2019 17:21:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 07 13:21:49 2019
Received: from localhost ([127.0.0.1]:38049 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i6ePE-0006hA-QE
	for submit <at> debbugs.gnu.org; Sat, 07 Sep 2019 13:21:49 -0400
Received: from lists.gnu.org ([209.51.188.17]:51286)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <john.michael.wu@HIDDEN>) id 1i6ePC-0006gz-Tm
 for submit <at> debbugs.gnu.org; Sat, 07 Sep 2019 13:21:47 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34812)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <john.michael.wu@HIDDEN>) id 1i6ePA-000597-CF
 for bug-gnu-emacs@HIDDEN; Sat, 07 Sep 2019 13:21:46 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: ****
X-Spam-Status: No, score=4.2 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 FREEMAIL_REPLYTO,HTML_MESSAGE,SPOOFED_FREEMAIL,SPOOFED_FREEM_REPTO
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <john.michael.wu@HIDDEN>) id 1i6eP8-00034b-Q3
 for bug-gnu-emacs@HIDDEN; Sat, 07 Sep 2019 13:21:44 -0400
Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]:41263)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <john.michael.wu@HIDDEN>)
 id 1i6eP7-00031t-Qp
 for bug-gnu-emacs@HIDDEN; Sat, 07 Sep 2019 13:21:42 -0400
Received: by mail-io1-xd34.google.com with SMTP id r26so19847584ioh.8
 for <bug-gnu-emacs@HIDDEN>; Sat, 07 Sep 2019 10:21:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:reply-to:from:date:message-id:subject:to;
 bh=lCeFVe4Buw1jlw4KxRp0GyLy4XsnwXO13u2HuAX5Oo8=;
 b=nzAlibwVAAcRXcpGIgZZk5DkaQ1PZWoKpydLfPpdFSNwIEQxVhdV05egsnzhJ4UaCd
 /rrI3L4KvzEEMY3ELmL2dVDjMN+GS39ekYV3PcpxIYOHToEfnb7Vw6HkQwxlxSy+ZFqd
 jeZ1H8tKiw2DKX0+xe+k1vcjZQIGS7cN0w/vH9i6WJuZgNbbwFCKr12G7Tmv7yjCynQO
 xTitEjJzi38XnUbVlMTUF8j5b+ZgOWQYRR3bZRd2zJtyq1wKE9wyioqjUkdXqgb3XnF0
 D97WaY2T6aHV2IRstiJNCBMqhjp6VpHNjnPnl56xWULH45xfnb2vaFwckQf5hXtrDu+h
 5Eaw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:reply-to:from:date:message-id
 :subject:to;
 bh=lCeFVe4Buw1jlw4KxRp0GyLy4XsnwXO13u2HuAX5Oo8=;
 b=DJVO+i7wzgcodatvq0h4QEbG6xeyCmGMLQ+RIu2YejDUhdu9JSxrzxSuM1CDkXoP/d
 9KY4VP1TP41AYm47vDOoJAFo2ZedCnwq/+3zOobSgh8p4vyilxi+0mInP1euVbSzqNnj
 jNP7R4GIta3JOWclw3jpH7tC8woCsGEbOODYzfyx/9/9mF50QY3SGHBlglsUXscNgQUK
 clcARuwJdHdv1PAld2gRe51FHpAB+BvdhF//CjcJlkwPhIKkiOPrcxymdWzJVT7VY1He
 W3wv9s/OihvVlp7TdTX5TUm/MdaIYg+SN98+QoJnEzzZD9caFg5UW5L32gJTS9quMGdf
 nu4Q==
X-Gm-Message-State: APjAAAXZqAqLX+nt/Eo/UdgBQB7GYFk05Bz2bWktSZu5G276cUbn5Ga+
 PHt9mOpQdK4TcemFd1Ixjj7kBVKDPTBu4hy+PkWOmKuC
X-Google-Smtp-Source: APXvYqxnM/Yx7JeTHGQUYhX7koP36SU4r9XMJeDD+Ldu4PzGYXiC6MV73yPTHZmYe76L12ZL36QieSVh094uKmWw9vY=
X-Received: by 2002:a5d:8d8b:: with SMTP id b11mr16462399ioj.90.1567876900483; 
 Sat, 07 Sep 2019 10:21:40 -0700 (PDT)
MIME-Version: 1.0
From: Michael Wu <john.michael.wu@HIDDEN>
Date: Sat, 7 Sep 2019 13:19:25 -0400
Message-ID: <CABuWmYN5rDLao3_xuNiNBH7An+4tJ6X-YfGiGEYQzaCsgc9Z_w@HIDDEN>
Subject: Org-mode python output not working
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000b478910591f9c9d5"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::d34
X-Spam-Score: 2.1 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  In the following block: #+BEGIN_SRC python :results value
 :session def f(): return 5 f() #+END_SRC It gives the message 
 Content analysis details:   (2.1 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (john.michael.wu[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
 medium trust [209.51.188.17 listed in list.dnswl.org]
 0.0 HTML_MESSAGE           BODY: HTML included in message
 1.0 FREEMAIL_REPLYTO       Reply-To/From or Reply-To/body contain
 different freemails
 0.0 SPOOFED_FREEMAIL       No description available.
 2.4 SPOOFED_FREEM_REPTO    Forged freemail sender with freemail
 reply-to
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: JohnMichaelWu@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--000000000000b478910591f9c9d5
Content-Type: text/plain; charset="UTF-8"

In the following block:

#+BEGIN_SRC python :results value :session
def f():
    return 5
f()
#+END_SRC

It gives the message

"Code block returned no value"

when trying to run it. This is clearly not intended behavior, as

#+BEGIN_SRC python :results value :session
def f():
    return 5
f()
10
#+END_SRC

#+RESULTS:
: 10

works perfectly fine. Does anyone else have this issue?

--000000000000b478910591f9c9d5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>In the following block:</div><div><br></div><div>#+BE=
GIN_SRC python :results value :session<br>def f():<br>=C2=A0 =C2=A0 return =
5<br>f()<br>#+END_SRC</div><div><br></div><div>It gives the message <br></d=
iv><div><br></div><div>&quot;Code block returned no value&quot;</div><div><=
br></div><div>when trying to run it. This is clearly not intended behavior,=
 as <br></div><div><br></div><div>#+BEGIN_SRC python :results value :sessio=
n<br>def f():<br>=C2=A0 =C2=A0 return 5<br>f()<br>10<br>#+END_SRC<br><br>#+=
RESULTS:<br>: 10</div><div><br></div><div>works perfectly fine. Does anyone=
 else have this issue?<br></div></div>

--000000000000b478910591f9c9d5--




Acknowledgement sent to JohnMichaelWu@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#37333; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 7 Sep 2019 19:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.