bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58678: 28.2; :session in org-babel for python unexpected output


From: kobarity
Subject: bug#58678: 28.2; :session in org-babel for python unexpected output
Date: Fri, 03 May 2024 17:35:32 +0900
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Eli Zaretskii wrote:
> 
> > From: Ihor Radchenko <yantar92@posteo.net>
> > Cc: 58678@debbugs.gnu.org
> > Date: Thu, 02 May 2024 17:11:15 +0000
> > 
> > Ihor Radchenko <yantar92@posteo.net> writes:
> > 
> > >> 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=25753
> > >>
> > >> 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 ‘python-shell-interpreter’ doesn’t seem to 
> > >> support readline, yet ‘python-shell-completion-native-enable’ was t and 
> > >> "python3" is not part of the 
> > >> ‘python-shell-completion-native-disabled-interpreters’ list. Native 
> > >> completions have been disabled locally.
> > >> ```
> > >>
> > >> Setting ~python-shell-completion-native-enable~ to nil removes the 
> > >> warning but doesn't prevent freezing. This behaviour persists with 
> > >> minimal org 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.
> > 
> > CCing Eli.
> 
> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]