-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Assertion failure on theme colour #14810
Copy link
Copy link
Closed
Milestone
Description
The iPython could not run on my PyCharm with the following error prompt:
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/pydevconsole.py", line 570, in <module>
pydevconsole.start_client(host, port)
File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/pydevconsole.py", line 484, in start_client
interpreter = InterpreterInterface(threading.current_thread(), rpc_client=client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_ipython_console.py", line 19, in __init__
self.interpreter = get_pydev_ipython_frontend(rpc_client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 472, in get_pydev_ipython_frontend
_PyDevFrontEndContainer._instance = _PyDevIPythonFrontEnd(is_jupyter_debugger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 293, in __init__
self.ipython = self._init_ipy_app(PyDevTerminalInteractiveShell).shell
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 300, in _init_ipy_app
application.initialize(shell_cls)
File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 258, in initialize
self.init_shell(shell_cls)
File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 263, in init_shell
self.shell = shell_cls.instance()
^^^^^^^^^^^^^^^^^^^^
File "***/.venv/lib/python3.12/site-packages/traitlets/config/configurable.py", line 583, in instance
inst = cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 122, in __init__
super(PyDevTerminalInteractiveShell, self).__init__(*args, **kwargs)
File "***/.venv/lib/python3.12/site-packages/IPython/terminal/interactiveshell.py", line 977, in __init__
super(TerminalInteractiveShell, self).__init__(*args, **kwargs)
File "***/.venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py", line 627, in __init__
self.init_syntax_highlighting()
File "***/.venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py", line 774, in init_syntax_highlighting
pyformat = PyColorize.Parser(theme_name=self.colors).format
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "***/.venv/lib/python3.12/site-packages/IPython/utils/PyColorize.py", line 364, in __init__
assert theme_name == theme_name.lower()
AssertionError
Couldn't connect to console process.
Process finished with exit code 1
This only happens with version 9.0.0. It works fine with previous versions like 8.31.0.
The reason it failed was the theme_name being NoColor which were not all lower cases. This assertion appears on multiple locations inside the package.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels