Timeout waiting for response on 113 when using Pycharm?

Answered

I am using Pycharm Community edition and I am getting "Timeout waiting for response on 113".

 

How can I get rid of this issue?

 

 

2 comments

Could you please attach a screenshot that shows the issue? Thank you.

0

I am facing the same problem while debugging Django project with PyCharm.

Unfortunately, I am unable to find the root of the problem, because PyCharm is able to debug empty Django project without any problems. All I have found is that it freezes after importing the main project module:

# django/apps/config.py:195
def import_models(self):
# Dictionary of models for this app, primarily maintained in the
# 'all_models' attribute of the Apps this AppConfig is attached to.
self.models = self.apps.all_models[self.label]

if module_has_submodule(self.module, MODELS_MODULE_NAME):
models_module_name = '%s.%s' % (self.name, MODELS_MODULE_NAME)
self.models_module = import_module(models_module_name) # freezes after importing main application on this line

Despite that I have not found the main problem, I have found a workaround. After installing the latest PyCharm version it suggests me to install cython debugger extensions. Though after pressing "Install" it fails with "Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address" error (this might be due to my local configuration issues), I am able to install extensions from the command line (please note, that it also uses some environment variables, you may find them here: github): 

sudo python /opt/pycharm-professional/helpers/pydev/setup_cython.py build_ext --inplace

After that, the debugger no longer freezes. So that, the problem might be related to Cython, not Django.

> PyCharm 2017.2.3

> Build #PY-172.3968.37, built on September 1, 2017
> JRE: 1.8.0_152-release-915-b11 amd64
> JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
> Linux 4.9.52-1-lts

0

Please sign in to leave a comment.