Your message dated Wed, 04 Oct 2023 23:49:15 +0000
with message-id <[email protected]>
and subject line Bug#1053223: fixed in ipython 8.14.0-2
has caused the Debian Bug report #1053223,
regarding python3-ipython: Interactive embedding of ipython using the
InteractiveShellEmbed method as documented, is broken
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1053223: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053223
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-ipython
Version: 8.14.0-1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
The IPython documentation has the following example on embedding it.
https://github.com/ipython/ipython/blob/8.14.0/examples/Embedding/embed_class_long.py
This example does not work with the python3-ipython package version 8.14.0-1 in
Debian unstable and throws an exception.
Here is a minimal example `ise.py` file which can reproduce this issue.
```
from IPython.terminal.embed import InteractiveShellEmbed
ipshell = InteractiveShellEmbed()
ipshell()
```
On running this script with `python3 ise.py`, it opens the IPython interactive
shell. Typing any statements and pressing enter to execute it, causes an
exception. Below is an instance of this error happening.
```
guruprasad@debian-sid:~$ python3 ise.py
Python 3.11.5 (main, Aug 29 2023, 15:31:31) [GCC 13.2.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.14.0 -- An enhanced Interactive Python. Type '?' for help.
Unhandled exception in event loop:
File "/usr/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/lib/python3/dist-packages/prompt_toolkit/input/vt100.py", line
162, in callback_wrapper
callback()
File
"/usr/lib/python3/dist-packages/prompt_toolkit/application/application.py",
line 712, in read_from_input_in_context
context.copy().run(read_from_input)
File
"/usr/lib/python3/dist-packages/prompt_toolkit/application/application.py",
line 692, in read_from_input
self.key_processor.process_keys()
File
"/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/key_processor.py",
line 272, in process_keys
self._process_coroutine.send(key_press)
File
"/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/key_processor.py",
line 187, in _process
self._call_handler(matches[-1], key_sequence=buffer[:])
File
"/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/key_processor.py",
line 322, in _call_handler
handler.call(event)
File
"/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/key_bindings.py",
line 124, in call
result = self.handler(event)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/IPython/terminal/shortcuts/__init__.py",
line 405, in handle_return_or_newline_or_execute
return newline_or_execute_outer(shell)(event)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/IPython/terminal/shortcuts/__init__.py",
line 428, in newline_or_execute
status, indent = shell.check_complete(check_text)
^^^^^^^^^^^^^^^^^^^^
Exception 'NoneType' object has no attribute 'check_complete'
Press ENTER to continue...
```
This breaks all the usages of the interactive shell embedding using the
documented method.
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.5.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_IN.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-ipython depends on:
ii python3 3.11.4-5+b1
ii python3-backcall 0.2.0-4
ii python3-decorator 5.1.1-5
ii python3-jedi 0.18.2-1
ii python3-matplotlib-inline 0.1.6-2
ii python3-pexpect 4.8.0-4
ii python3-pickleshare 0.7.5-5
ii python3-prompt-toolkit 3.0.39-2
ii python3-pygments 2.15.1+dfsg-1
ii python3-setuptools 68.1.2-1
ii python3-stack-data 0.6.2-3
ii python3-traitlets 5.5.0-2
python3-ipython recommends no packages.
Versions of packages python3-ipython suggests:
pn python-ipython-doc <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: ipython
Source-Version: 8.14.0-2
Done: Colin Watson <[email protected]>
We believe that the bug you reported is fixed in the latest version of
ipython, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Colin Watson <[email protected]> (supplier of updated ipython package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Thu, 05 Oct 2023 00:12:56 +0100
Source: ipython
Built-For-Profiles: noudeb
Architecture: source
Version: 8.14.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Colin Watson <[email protected]>
Closes: 1053223
Changes:
ipython (8.14.0-2) unstable; urgency=medium
.
* Team upload.
.
[ L. Guruprasad ]
* Add upstream patch to fix broken embedding when using
IPython.terminal.embed.InteractiveShellEmbed. (Closes: #1053223)
Checksums-Sha1:
77709c31ceed4e86f82ff193acaa81cceacbd585 2772 ipython_8.14.0-2.dsc
dafba4e9a942378b5f24186f2e3669392bc278eb 9148 ipython_8.14.0-2.debian.tar.xz
fb42a14ba4007eca36bb7970c400af8f42f10ca6 10494
ipython_8.14.0-2_source.buildinfo
Checksums-Sha256:
dbd4c669a298f951d5e0de0c95e166963a679f5ee1e69733dd3be53a632a60d8 2772
ipython_8.14.0-2.dsc
e39bb6eb539893523845882740f29ec1a986b2208b438a96213f5fdcdb5a1ae4 9148
ipython_8.14.0-2.debian.tar.xz
83c471dec1f5c58141d69ed7a05304ef9845a34a61e2fc328191b16a27a28b2f 10494
ipython_8.14.0-2_source.buildinfo
Files:
c5f64f4a68087c699ec361bdc3918f27 2772 python optional ipython_8.14.0-2.dsc
6cd5bf15a8b4947404ab80a1336c33af 9148 python optional
ipython_8.14.0-2.debian.tar.xz
165cd6bfce2236f2ae89aa9bfbe6c270 10494 python optional
ipython_8.14.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmUd9DcACgkQOTWH2X2G
UAsVtA//XyWLpKKIE5EXLVjl8Qf0K6pZw9h8WlwSGvrdPdlGBg1ahs2UZvx3aEoM
rSptePYZvhi5owzho6VJsDXgweJyRB9ddoiGjrDYz32gE1eqrMG4qJGIRTuWNi+b
ukXb6TXsyG6eqjC16sMRmd/RqlVhnaVuA2pfuDsHRTxN9IPxmht1R1ct1jePMBkw
Yv8DOHyyINQTdvATcXRAvQeWewvc1KSm8fAWeqOgj9rEoGTLNywh1aK+QJs6aWIN
2EyU6fJ6b8Vhg2LemuU85VYJSkpYV13DQ43/0jL/LgRgsmQvm1YIPSn78LufSEhI
TLAASQmr8MiWhdqYwlNC/amcp3Rg+bK/FYAvDxWUZ8cyXvQwSbDL23FRET6D1UBR
Igssq/JZuSIIP4NrCVoX17oMVuw8yzsMxJmQbsRSagLsibsrG3KhQs9cvTbYq53r
0hiWUjckMeQ08PgULmRRp1KsQjY9nCQUcwgFIKCAGR39bgkY1XOjrFNW/ae22fvt
rXgJ7Ht4/tRLi8gmTqxqil24ZvdxLF5Hb0u5AiuEDBYcmUGFapPuwVavToZ52eml
dX5ij572LNp4SS1kSs14CUVuq94a5crJveRp0vX3ZxL8s2S5vDnOH2BsAU6JIqhm
tbxHB++v1a3f2SbhrYhVXTSF2Fk8a2ycmkuqZoev/bsz0iRuibw=
=vgbn
-----END PGP SIGNATURE-----
--- End Message ---