Exception in Pycharm's console (debug mode)

已回答

"MultipleInstanceError: Multiple incompatible subclass instances of PyDevTerminalInteractiveShell are being created."

I'm getting this exception where Im trying to use commands inside the console while in debug mode.

I think it has soothing to do with a version of one of my packages but I can't remember which.

Is there a way to fix it once and for all?

 

Here is the full message:

Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1333, in do_it
result = pydevconsole.console_exec(self.thread_id, self.frame_id, self.expression)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevconsole.py", line 460, in console_exec
return exec_code(CodeFragment(expression), updated_globals, frame.f_locals)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevconsole.py", line 377, in exec_code
interpreterInterface = get_interpreter()
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevconsole.py", line 359, in get_interpreter
interpreterInterface = InterpreterInterface(None, None, threading.currentThread())
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console.py", line 26, in __init__
self.interpreter = get_pydev_frontend(host, client_port, show_banner=show_banner)
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 473, in get_pydev_frontend
_PyDevFrontEndContainer._instance = _PyDevFrontEnd(show_banner=show_banner)
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 303, in __init__
self.ipython = PyDevTerminalInteractiveShell.instance()
File "/Library/Python/2.7/site-packages/traitlets/config/configurable.py", line 423, in instance
'%s are being created.' % cls.__name__
MultipleInstanceError: Multiple incompatible subclass instances of PyDevTerminalInteractiveShell are being created.

0
正式评论

Hi Idan Fonea! It's known issue, you can follow it in issue tracker: https://youtrack.jetbrains.com/issue/PY-20531

请先登录再写评论。