KeyboardInterrupt when debugging a PyTorch project

Completed

I am getting these strange "keyboard interrupt" errors when debugging a PyTorch project:

This only happens in debug mode. Did anyone experience any similar problems? Is it maybe the fact that I am using community version?

I am using the following version of PyCharm:

 

 

3 comments

Hi,

Does it help if you disable Attach to subprocess automatically while debugging under File | Settings | Build, Execution, Deployment | Python Debugger?

1

That worked :D ! Thank you. Would you happen to know why does this solve the issue? What is happening behind the scenes?

Now i am getting a warning of this kind:

But everything works as expected. I am just trying to understand what exactly is happening.

0

It is related to https://youtrack.jetbrains.com/issue/PY-16301

I think only developer knows what happens behind the scene at this point, but probably PyCharm fails to attach to some process and terminates with this exception.

0

Please sign in to leave a comment.