lp-shell ipython instance throws error when typing open parenthesis
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lptools |
Invalid
|
Undecided
|
Unassigned | ||
ipython (Debian) |
Fix Released
|
Unknown
|
|||
ipython (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
lptools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I ran the `lp-shell` tool shipped by the `lptools` package in mantic and whenever I type the open parenthesis character, say a statement like `lp.load(`, it shows an exception similar to the one quoted below. Pressing enter to continue drops me to the ipython prompt with just `lp.load` typed and typing `(` causes the issue again.
This issue happens in the version packaged in mantic and the upstream repository at lp:lptools. So this could be due to some change in the ipython3 version.
<snip>
❯ lp-shell
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.
Connected to LP service "production" with API version "devel":
Note: LP can be accessed through the "lp" object.
Unhandled exception in event loop:
File "/usr/lib/
self.
File "/usr/lib/
callback()
File "/usr/lib/
context.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
matches = self._get_
File "/usr/lib/
return [b for b in self._bindings.
File "/usr/lib/
return [b for b in self._bindings.
File "/usr/lib/
return all(f() for f in self.filters)
File "/usr/lib/
return all(f() for f in self.filters)
^^^
File "/usr/lib/
return self.func()
File "/usr/lib/
return shell.auto_match
Exception 'NoneType' object has no attribute 'auto_match'
Press ENTER to continue...
</snip>
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: lptools 0.2.0-7ubuntu2
ProcVersionSign
Uname: Linux 6.5.0-5-generic x86_64
ApportVersion: 2.27.0-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Mon Sep 25 18:00:03 2023
InstallationDate: Installed on 2023-09-09 (16 days ago)
InstallationMedia: Kubuntu 23.04 "Lunar Lobster" - Release amd64 (20230414.1)
PackageArchitec
SourcePackage: lptools
UpgradeStatus: Upgraded to mantic on 2023-09-25 (0 days ago)
tags: | added: patch |
Changed in ipython (Debian): | |
status: | Unknown → New |
Changed in ipython (Debian): | |
status: | New → Fix Released |
Changed in lptools (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in lptools: | |
status: | New → Invalid |
This issue appears to be caused by an IPython issue (https:/ /github. com/ipython/ ipython/ issues/ 14164) in versions >= 8.10. The fix for this issue has been merged upstream recently via https:/ /github. com/ipython/ ipython/ pull/14169 but hasn't been backported to the affected versions yet. Applying this patch to the IPython installation on mantic resolves this issue.