Bugzilla – Bug 1217693
ipython3 crashes on launch in PromptSession.prompt()
Last modified: 2024-02-08 18:47:28 UTC
When launching `ipython3` it exits immediately with the following error: Python 3.11.6 (main, Nov 15 2023, 09:22:27) [GCC] Type 'copyright', 'credits' or 'license' for more information IPython 8.18.0 -- An enhanced Interactive Python. Type '?' for help. Traceback (most recent call last): File "/usr/bin/ipython3-3.11", line 8, in <module> sys.exit(start_ipython()) ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/IPython/__init__.py", line 129, in start_ipython return launch_new_instance(argv=argv, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/traitlets/config/application.py", line 1053, in launch_instance app.start() File "/usr/lib/python3.11/site-packages/IPython/terminal/ipapp.py", line 317, in start self.shell.mainloop() File "/usr/lib/python3.11/site-packages/IPython/terminal/interactiveshell.py", line 887, in mainloop self.interact() File "/usr/lib/python3.11/site-packages/IPython/terminal/interactiveshell.py", line 872, in interact code = self.prompt_for_code() ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/IPython/terminal/interactiveshell.py", line 813, in prompt_for_code text = self.pt_app.prompt( ^^^^^^^^^^^^^^^^^^^ TypeError: PromptSession.prompt() got an unexpected keyword argument 'inputhook' If you suspect this is an IPython 8.18.0 bug, please report it at: https://github.com/ipython/ipython/issues or send an email to the mailing list at ipython-dev@python.org You can print a more detailed traceback right now with "%tb", or use "%debug" to interactively debug it. Extra-detailed tracebacks for bug-reporting purposes can be enabled via: %config Application.verbose_crash=True
Related to the package python-prompt_toolkit, that needs an update: https://github.com/ipython/ipython/issues/14255 I've just sent an update for Factory that should fix the issue: https://build.opensuse.org/request/show/1130986
This is fixed now in TW.