我正在使用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.
我可以通过命令提示符和Pycharm外部运行python。 Chrome选项卡Vpython脚本运行得非常好。我尝试重新启动pycharm和计算机,但我实际上对此问题没有任何线索。我正在使用 Windows 10 。
PS:在这个网站上经历了这种类型的多个问题。但是没有list.remove(x) x not in list
类型的问题。
答案 0 :(得分:1)
问题是由IPython 6.3.0版本引起的(PyCharm bug跟踪器中的票证:PY-29313)。更新PyCharm或IPython(6.3.1工作正常)。