From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: kobarity Newsgroups: gmane.emacs.bugs Subject: bug#58678: 28.2; :session in org-babel for python unexpected output Date: Fri, 03 May 2024 17:35:32 +0900 Message-ID: References: <87zgdo1jsc.fsf@localhost> <05d53841TFY_y3sPHPfKe88XSEzzLagSxlSsb5CN-2ph0LpnlsSPXRZzjZivgR2RLz0PPM457qIDR46q9NDcJCPnScKQaWFE_B3Ujo8dwlc=@proton.me> <87tu3stonb.fsf@localhost> <8734r09m18.fsf@localhost> <86wmocjcp4.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6986"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: Ihor Radchenko , 58678@debbugs.gnu.org To: srg.koshelev@proton.me, Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 03 10:37:05 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 1s2oPg-0001Uc-KA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 May 2024 10:37:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2oPM-000431-1x; Fri, 03 May 2024 04:36:44 -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 1s2oPI-00042I-KS for bug-gnu-emacs@gnu.org; Fri, 03 May 2024 04:36:41 -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 1s2oPI-0005Mh-BU for bug-gnu-emacs@gnu.org; Fri, 03 May 2024 04:36:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2oPe-0003pb-Ef for bug-gnu-emacs@gnu.org; Fri, 03 May 2024 04:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: kobarity Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 May 2024 08:37: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.171472539414721 (code B ref 58678); Fri, 03 May 2024 08:37:02 +0000 Original-Received: (at 58678) by debbugs.gnu.org; 3 May 2024 08:36:34 +0000 Original-Received: from localhost ([127.0.0.1]:46236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2oP9-0003pN-Vg for submit@debbugs.gnu.org; Fri, 03 May 2024 04:36:34 -0400 Original-Received: from mail-oo1-xc32.google.com ([2607:f8b0:4864:20::c32]:53548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2oP4-0003pH-Tv for 58678@debbugs.gnu.org; Fri, 03 May 2024 04:36:30 -0400 Original-Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-5ac90ad396dso4777324eaf.3 for <58678@debbugs.gnu.org>; Fri, 03 May 2024 01:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714725359; x=1715330159; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=ZlpKcKBF/Yox4vdjGrAE2XKxpGX82K3iVM5GCQiHRXw=; b=QhoNzZF2V2PeJLKqq5fwJWjMLDmz+b9BCPF7HGy+wj/JAg4mW4MGuHCLZgs561FkHS kxPOkEj625MBnLjzZOysUYcmYh30D0YEE6PihKNDNla7BJmvHf1fRBpsGOopQ8XF0Kie 1KUXXikWLf5wSABqu2/cK6YkUVvk2M4tk315Rf3jG7Ip2F1gIU0f4Q1iamD/DM+7LERn QcaUs8jWCkIbOgSZKFjvhndm/KtSv8zJgkelKFV8idaVxUzhujkVRuGx84yJVJOzNrSN 7uVyFjCEvg5sSRRj5SOZn+66hoK80RKCZComAX0b8xnq+kAMs+M5wvy/moojYH5t4sFE Sx0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714725359; x=1715330159; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZlpKcKBF/Yox4vdjGrAE2XKxpGX82K3iVM5GCQiHRXw=; b=e+VzWP4aJfIq8HChBzQ7nxUi+GC4umRVH1Y/XDLOrKAJUiCeemmY2Gd8jIykyXFlQD nrZFyK7ddkXdX603W+W1Qxum2Tztbk8SRtEYk7lVqkATTH5cLoiHM0BP/PuYzcjDfJTB ufAVjXkIk9/8a/2dg8cwMaprnJEbi95rOiFoHUnFyj+uUoU+3AKMvKUwE8f6rs8p5XVA aR4hDkPoLPdqC9ljKf/TjwCCbd8/Njr5ZEubphANO8Q2WuhxkSLBP3gVs+55uaJpRkAE D3Lh6zxMZbfJg4FwqsuyzHmDHIql9ZZhh6x+vyAZrZbm7wQrseU+E4Lg98fBtWBgFTBq h0fw== X-Forwarded-Encrypted: i=1; AJvYcCVZfreKf1dnpX2mjr+W9xFFWN5pJE0372B0fTZJQZ3fzwU4I0eRCkwUqHZhfgPLDDl9t6R7WURepLWC29/C3Mlt+6Rkbqs= X-Gm-Message-State: AOJu0YzfvnYksBgJkHuEb2Od6CYPz1xCEXLe6l93GFwecP4jN7K+y7Mb hXTsVh9VMYpWf1VLoWurCcLSB6lqlDdrVWTiorI6RvnFL9l/rzJo X-Google-Smtp-Source: AGHT+IFUdw6F5E+4nVSEOSrwIMjivttyA64Q6SwpTGJnEOT/37mDw9awd6xvw2560WdDnju8SntQdg== X-Received: by 2002:a05:6358:3127:b0:18d:9e17:455f with SMTP id c39-20020a056358312700b0018d9e17455fmr2131867rwe.12.1714725358807; Fri, 03 May 2024 01:35:58 -0700 (PDT) Original-Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id j190-20020a6380c7000000b0061b9d60740bsm1532833pgd.93.2024.05.03.01.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 01:35:58 -0700 (PDT) In-Reply-To: <86wmocjcp4.fsf@gnu.org> 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:284372 Archived-At: Eli Zaretskii wrote: >=20 > > From: Ihor Radchenko > > Cc: 58678@debbugs.gnu.org > > Date: Thu, 02 May 2024 17:11:15 +0000 > >=20 > > Ihor Radchenko writes: > >=20 > > >> I have traced this to org-bable issue with MacOS python readline and= native completion. Similar issues discussed in=20 > > >> https://github.com/jorgenschaefer/elpy/issues/887 > > >> and=20 > > >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25753 > > >> > > >> The solution proposed in those threads, i.e., installing python from= homebrew, which has gnureadline, helps for emacs 27 but causes freezing in= emacs 28 after displaying following message: > > >> ``` > > >> Warning (python): Your =A1python-shell-interpreter=A2 doesn=A2t seem= to support readline, yet =A1python-shell-completion-native-enable=A2 was t= and "python3" is not part of the =A1python-shell-completion-native-disable= d-interpreters=A2 list. Native completions have been disabled locally. > > >> ``` > > >> > > >> Setting ~python-shell-completion-native-enable~ to nil removes the w= arning but doesn't prevent freezing. This behaviour persists with minimal o= rg setup as well (although, I believe my emacs comes with org pre-packaged). > > > > > > 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. 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. Sergey, could you try one of the following? 1. With Emacs 29, apply the changes of python.el in the commit d5757178464ca51f79c7fc1ab199a1582e92ab32. 2. Build Emacs on master branch.