AttributeError: module 'builtins' console reports failure after any input

I've read previous posts about this issue, which I suspect is a configuration error of some kind.

I installed python 3.13 with a venv, works fine running from python

I can also run from within PyCharm (latest rev 2024.3.1.1 (Professional Edition))

If I set a breakpoint and then attempt to interact with the interpreter, I get the following output (some suppressed, shown as ellipsis)

Traceback (most recent call last):
 File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_console_integration.py", line 85, in get_code_executor
   code_executor = getattr(__builtin__, 'interpreter')
AttributeError: module 'builtins' has no attribute 'interpreter'

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
 File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1856, in do_it
   result, exception_occurred = pydevd_console_integration.console_exec(self.thread_id, self.frame_id, self.expression, dbg)
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_console_integration.py", line 198, in console_exec
   need_more, exception_occurred = ipython_exec_code(CodeFragment(expression), updated_globals, updated_globals, dbg)

. . . . 

File "/Users/baden/.venv/3.13_env/lib/python3.13/site-packages/IPython/utils/PyColorize.py", line 364, in __init__
   assert theme_name == theme_name.lower()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

0

Hello, Baden ,

Could you please check if the IPython package is installed and provide a screenshot from the PyCharm Python Packages tool window?

0

ipython v9.01 is installed

 

0

I have the same issue. ipython 9.0.1 also installed

0

I have the issue as well.  Rolling ipython back to version 8.33.0 resolves the issue

0

Rolling back to 8.33.0 resolves the issue for me, too

 

0

Hello!

We have registered a bug regarding the reported behavior in our tracking system PY-79553. Please vote for the issue to receive updates on its status. To learn more about using YouTrack, please refer to this article.

1

I’m the new time I can live with the workaround 

0

请先登录再写评论。