gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 09:32:00 25 4
gpt4 key购买 nike

我正在使用 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类型问题。

最佳答案

该问题是由 IPython 6.3.0 版本引起的(PyCharm bug tracker 中的票证: PY-29313 )。更新 PyCharm 或 IPython(6.3.1 工作正常)。

关于python - 使用Vpython后,无法连接到Pycharm中的控制台进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49882078/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com