A conexão com o depurador Python falhou: Socket fechado

Disable "PyQt compatible" checkbox in the Settings under Build, Execution, Deployment --> Python Debugger
Odd Osprey