使用 Vpython 后,无法连接到 Pycharm 中的控制台进程

After using Vpython, couldn't connect to console process in Pycharm

我正在使用 Pycharm,它在几个月内运行良好。我最近使用 Vpython 制作动画,它会在活动 Chrome 视频(以 localhost:<port number> 作为地址)中打开一个新选项卡以在调用时 运行 动画。这一切都很顺利,但是在使用它之后,每当我尝试通过 pycharm 打开控制台时,它都无法正常工作,并出现以下错误。

C:\Users\abc\AppData\Local\Programs\Python\Python36-32\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.2\helpers\pydev\pydevconsole.py" 62780 62781
Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.2\helpers\pydev\pydevconsole.py", line 517, in <module>
    pydevconsole.start_server(host, int(port), int(client_port), client_host)
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.2\helpers\pydev\pydevconsole.py", line 338, in start_server
    interpreter = InterpreterInterface(client_host, client_port, threading.currentThread())
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.2\helpers\pydev\_pydev_bundle\pydev_ipython_console.py", line 24, in __init__
    self.interpreter = get_pydev_frontend(host, client_port)
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.2\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 494, in get_pydev_frontend
    _PyDevFrontEndContainer._instance = _PyDevFrontEnd()
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.2\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 326, in __init__
    self.ipython = PyDevTerminalInteractiveShell.instance()
  File "C:\Users\Thesatwik13\AppData\Local\Programs\Python\Python36-32\lib\site-packages\traitlets\config\configurable.py", line 412, in instance
    inst = cls(*args, **kwargs)
  File "C:\Users\Thesatwik13\AppData\Roaming\Python\Python36\site-packages\IPython\terminal\interactiveshell.py", line 430, in __init__
    super(TerminalInteractiveShell, self).__init__(*args, **kwargs)
  File "C:\Users\Thesatwik13\AppData\Roaming\Python\Python36\site-packages\IPython\core\interactiveshell.py", line 516, in __init__
    self.init_completer()
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.2\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 246, in init_completer
    self.Completer = self._new_completer_500()
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.2\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 208, in _new_completer_500
    parent=self
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.2\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 89, in __init__
    self.matchers.remove(self.python_matches)
ValueError: list.remove(x): x not in list
Process finished with exit code 1
Couldn't connect to console process.

我可以 运行 python 通过命令提示符和外部 Pycharm。 chrome 选项卡 Vpython 脚本 运行 非常好 still.I 尝试重新启动 pycharm 和计算机,但实际上我对这里的问题一无所知。我正在使用 Windows 10.

PS:在本网站上遇到了多个此类问题。但是没有 list.remove(x) x not in list 类型的问题。

问题是由 IPython 6.3.0 版本引起的(PyCharm 错误跟踪器中的票证:PY-29313)。更新 PyCharm 或 IPython(6.3.1 工作正常)。