From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sergey via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58678: 28.2; :session in org-babel for python unexpected output Date: Thu, 09 May 2024 22:28:05 +0000 Message-ID: <0xTUdZQpMAfVigYb8cpsS3R2m2d32_HKb4jq9YP-NCOYwBejOD3uZjZ1MpAzB7MxU8YH8ACVw8fWSGBP6Yca8BS6ubmeN-Fn-29lWbEmfNU=@proton.me> References: <87zgdo1jsc.fsf@localhost> <05d53841TFY_y3sPHPfKe88XSEzzLagSxlSsb5CN-2ph0LpnlsSPXRZzjZivgR2RLz0PPM457qIDR46q9NDcJCPnScKQaWFE_B3Ujo8dwlc=@proton.me> <87tu3stonb.fsf@localhost> <8734r09m18.fsf@localhost> <86wmocjcp4.fsf@gnu.org> Reply-To: Sergey Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34293"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Ihor Radchenko , 58678@debbugs.gnu.org To: kobarity Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 10 00:29:25 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s5CGS-0008gT-Nm for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 May 2024 00:29:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5CGA-0004cX-Jc; Thu, 09 May 2024 18:29:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5CG8-0004cK-Gl for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 18:29:05 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5CG8-0007fd-8h for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 18:29:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s5CG6-0002Dn-IT for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 18:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sergey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 May 2024 22:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58678 X-GNU-PR-Package: emacs Original-Received: via spool by 58678-submit@debbugs.gnu.org id=B58678.17152936978502 (code B ref 58678); Thu, 09 May 2024 22:29:02 +0000 Original-Received: (at 58678) by debbugs.gnu.org; 9 May 2024 22:28:17 +0000 Original-Received: from localhost ([127.0.0.1]:40986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5CFM-0002D4-S3 for submit@debbugs.gnu.org; Thu, 09 May 2024 18:28:17 -0400 Original-Received: from mail-40130.protonmail.ch ([185.70.40.130]:40357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5CFJ-0002Cx-M8 for 58678@debbugs.gnu.org; Thu, 09 May 2024 18:28:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1715293689; x=1715552889; bh=2wLuJdZo2oGC5gkWPSabrphn2of7eRv6IJ7zZazyFNw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=EdZK+EjsafXlVA/oMnV1tGTyDfj/67g1CsIxcAQMhiPR6Ufbapa7ucgWT2LvOy5QX olf0CcemwaTLblkTUG80foIaNJTuXz/OdhE1cW7ruC24hiRnYfSEn4L60XXlMdU5Mr vWtJsyaYNtJsRIpDFdsBnvhGrOS1kTaxwkIlN540hxj6rTaiBSloWi3qBnIo7zuy7D SSQQE9UkDqWBV3LKKE/7yhBA7Uuo4IJX8IU6HuqhUe4L7wCiBbRyIu0x0bXe19Cpzz 1ZR1Pqlb4HQWPa4sbbeW/xsvBvXnizSROav0TDZfp0bN4UPk1Ql82svd0kX9InOmQe xPvMiPzyLh4cQ== In-Reply-To: Feedback-ID: 45233733:user:proton X-Pm-Message-ID: 479d667a918bc5ba74bdf38a176d4008e01920f2 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284780 Archived-At: Hey Eli! Thank you for reaching out! I have Emacs 29.1 installed on my Macbook with Spacemacs config. I am not s= ure what commit python.el is on in Spacemacs but the python code works with= :session.=20 Sent with Proton Mail secure email. On Friday, May 3rd, 2024 at 3:35 AM, kobarity wrote: > Eli Zaretskii wrote: >=20 > > > From: Ihor Radchenko yantar92@posteo.net > > > Cc: 58678@debbugs.gnu.org > > > Date: Thu, 02 May 2024 17:11:15 +0000 > > >=20 > > > Ihor Radchenko yantar92@posteo.net writes: > > >=20 > > > > > I have traced this to org-bable issue with MacOS python readline = and native completion. Similar issues discussed in > > > > > https://github.com/jorgenschaefer/elpy/issues/887 > > > > > and > > > > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25753 > > > > >=20 > > > > > The solution proposed in those threads, i.e., installing python f= rom homebrew, which has gnureadline, helps for emacs 27 but causes freezing= in emacs 28 after displaying following message: > > > > > `Warning (python): Your =E2=80=98python-shell-interpreter= =E2=80=99 doesn=E2=80=99t seem to support readline, yet =E2=80=98python-she= ll-completion-native-enable=E2=80=99 was t and "python3" is not part of the= =E2=80=98python-shell-completion-native-disabled-interpreters=E2=80=99 lis= t. Native completions have been disabled locally.` > > > > >=20 > > > > > Setting ~python-shell-completion-native-enable~ to nil removes th= e warning but doesn't prevent freezing. This behaviour persists with minima= l org setup as well (although, I believe my emacs comes with org pre-packag= ed). > > > >=20 > > > > So, it looks like Emacs bug then. > > > > Let us see what Emacs devs can suggest. > > >=20 > > > CCing Eli. > >=20 > > I have no idea what happens here, so I added kobarity in the hope that > > he would know. >=20 >=20 > As far as I have tried on my son's MacBook, this problem was > reproduced with 29.3 but not with the latest python.el. It was fixed > by the commit d5757178464ca51f79c7fc1ab199a1582e92ab32. >=20 > Sergey, could you try one of the following? >=20 > 1. With Emacs 29, apply the changes of python.el in the commit > d5757178464ca51f79c7fc1ab199a1582e92ab32. > 2. Build Emacs on master branch.