Connection to Python debugger failed: Socket closed "IndexError: list index out of range"

I have a fresh Install of PyCharm 2020.2.1 on Ubuntu 20.04 using Python 3.8. Just to check my configuration, I ran a simple print("hello"). 10 minutes later, python was still running so I stopped it and ran the debugger and got this output:

Traceback (most recent call last):
File "/snap/pycharm-community/209/plugins/python-ce/helpers/pydev/", line 2141, in <module>
File "/snap/pycharm-community/209/plugins/python-ce/helpers/pydev/", line 1975, in main
setup = process_command_line(sys.argv)
File "/snap/pycharm-community/209/plugins/python-ce/helpers/pydev/_pydevd_bundle/", line 136, in process_command_line
setup['file'] = argv[i]
IndexError: list index out of range

I've seen elsewhere people being asked to turn of PyQt Compatibility, and it seems that's not it. Thoughts?

Comment actions Permalink

Interestingly, when I build PyCharm from the snap install or from the Ubuntu app install toolbox, I get this problem, but when I installed it from a tar file, I don't.

Comment actions Permalink

Okay, so it updated, and now doesn't work. So i guess the problem is Jetbrain's version. ??? (Am I right?)

Comment actions Permalink



Please share a screenshot of your run configuration. (

It looks like you don't have a target specified.


Please sign in to leave a comment.