GNU bug report logs - #25753
Python with libedit (macOS default) echoes input, breaks native completion

Previous Next

Package: emacs;

Reported by: charles <at> aurox.ch (Charles A. Roelli)

Date: Thu, 16 Feb 2017 16:09:02 UTC

Severity: normal

Merged with 21431, 22796, 26326

Found in versions 24.5, 25.1, 25.2, 26.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Johnny Zhao <dz357488639 <at> gmail.com>
Subject: bug#21431: closed (Re: bug#25753: 29.1; Python mode shell
 interaction not working 100%)
Date: Fri, 25 Aug 2023 06:32:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#25753: 24.5; Double outputs, weird elements while using python shell

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 21431 <at> debbugs.gnu.org.

-- 
25753: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25753
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Peter Mao <peter.mao <at> gmail.com>
Cc: 25753-done <at> debbugs.gnu.org
Subject: Re: bug#25753: 29.1; Python mode shell interaction not working 100%
Date: Fri, 25 Aug 2023 09:31:18 +0300
> From: Peter Mao <peter.mao <at> gmail.com>
> Date: Thu, 24 Aug 2023 22:32:20 -0700
> 
> At least my version of the problem can be traced to a bug in Org's ob-python.el.  I bisected the
> commit history, found the offending commit and reported it to the org mailing list.

Thanks, I'm therefore closing this bug.  Feel free to reopen if
something needs to be done on the Emacs core side.

[Message part 3 (message/rfc822, inline)]
From: Johnny Zhao <dz357488639 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; Double outputs, weird elements while using python shell
Date: Mon, 7 Sep 2015 23:42:02 -0400
[Message part 4 (text/plain, inline)]
Message-ID: <m2pp1tr3is.fsf <at> gmail.com>

--text follows this line--
This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU
bug tracker at debbugs.gnu.org. Please check that From: line contains a
valid email address. After a delay of up to one day, you should receive an
acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers usually do
not have translators for other languages.

Please describe exactly what actions triggered the bug, and the precise
symptoms of the bug. If you can, give a recipe starting from 'emacs -Q':

*Description:* I first started creating a python file, L2_1.py. And I wrote
two lines of code in that file:

num = raw_input("Enter a num? ")
print num

Then, I pressed C-c C-c to send the code to python shell. And pressed
C-c C-z to activate the interactive python shell itself. Then there is
an error appeared after >>>.

*Error: *>>>import codecs, os;__pyfile =
codecs.open('''/var/folders/pp/f3d79ck56qg0vr86723zymtw0000gn/Tpy10804Poh''',
encoding = '''utf-8''');__code =
__pyfile.read().encode('''utf-8''');__pyfile.close();os.remove('''/var/folders/pp/f3d79ck56qg0vr86723zymtw0000gn/T/py10804Poh''');exec(compile(__code,
'''/Users/dongzhao/Documents/pyEnv/6.00.1x/L2_1.py''', 'exec'));
Enter a num? 2
2
2
>>>




In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2015-04-10 on builder10-9.porkrind.org
Windowing system distributor `Apple', version 10.3.1348
Configured using:
 `configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  show-paren-mode: t
  pyvenv-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
[yas] Prepared just-in-time loading for
/Users/dongzhao/.emacs.d/elpa/elpy-1.9.0/snippets/
[yas] Prepared just-in-time loading for
/Users/dongzhao/.emacs.d/elpa/yasnippet-0.8.0/snippets
[yas] Check your `yas-snippet-dirs': ~/.emacs.d/snippets is not a directory
[yas] Reloaded everything (snippets will load just-in-time)... (some
errors, check *Messages*).
Loading
/Users/dongzhao/.emacs.d/el-get/color-theme/themes/color-theme-example.el
(source)...done
Loading
/Users/dongzhao/.emacs.d/el-get/color-theme/themes/color-theme-library.el
(source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils afternoon-theme autopair byte-opt paren
switch-window quail ido-hacks buffer-move windmove cl-macs color-theme
.loaddefs el-get el-get-autoloading el-get-list-packages
el-get-dependencies el-get-build el-get-status pp el-get-methods
el-get-fossil el-get-svn el-get-pacman el-get-github-zip
el-get-github-tar el-get-http-zip el-get-http-tar el-get-hg el-get-go
el-get-git-svn el-get-fink el-get-emacswiki el-get-http el-get-notify
el-get-emacsmirror el-get-github el-get-git el-get-elpa el-get-darcs
el-get-cvs el-get-bzr el-get-brew el-get-builtin el-get-apt-get
el-get-recipes el-get-byte-compile el-get-custom el-get-core autoload
lisp-mnt bytecomp byte-compile cconv dired cl-extra yasnippet advice
help-mode cl gv highlight-indentation flymake eldoc company edmacro
kmacro help-fns elpy pyvenv elpy-refactor python json ido grep compile
comint ansi-color files-x etags ring cus-edit easymenu cus-start
cus-load wid-edit cl-loaddefs cl-lib package epg-config time-date
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp
files text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
cocoa ns multi-tty emacs)

Memory information:
((conses 16 258336 8445)
 (symbols 48 27014 0)
 (miscs 40 40 203)
 (strings 32 46630 6814)
 (string-bytes 1 1106561)
 (vectors 16 18181)
 (vector-slots 8 458453 6340)
 (floats 8 201 204)
 (intervals 56 218 0)
 (buffers 960 11))
[Message part 5 (text/html, inline)]

This bug report was last modified 1 year and 270 days ago.

Previous Next


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