Couldn't connect to console process. Process finished with exit code 1

Python console does not work, but running code from a script works

C:\Users\idali\csc411\venv\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.2\helpers\pydev\pydevconsole.py" 54664 54665
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\idali\AppData\Local\Programs\Python\Python36\lib\site-packages\traitlets\config\configurable.py", line 412, in instance
inst = cls(*args, **kwargs)
File "C:\Users\idali\AppData\Local\Programs\Python\Python36\lib\site-packages\IPython\terminal\interactiveshell.py", line 455, in __init__
super(TerminalInteractiveShell, self).__init__(*args, **kwargs)
File "C:\Users\idali\AppData\Local\Programs\Python\Python36\lib\site-packages\IPython\core\interactiveshell.py", line 668, 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

5 comments

Can you please provide the minimal working example (code snippet) to reproduce the issue?

0

I didn't do anything. One day I launched the python console within Pycharm and this appeared

0

Okay. Can you please create a new test project with a new interpreter, and see if the issue is reproduced? Also, please let us know which interpreter you're using, and provide screenshot of **File | Settings | Build, Execution, Deployment | Console | Python Console** settings

0

Thanks for the information. Nothing special in the settings, but after looking closely at your error log, and searching for similar issues in our support history, I've found this is a know issue with older versions of PyCharm: https://youtrack.jetbrains.com/issue/PY-29313

Please update your PyCharm to the latest version and it should solve the issue: https://www.jetbrains.com/pycharm/download

0

Please sign in to leave a comment.