Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: timed out waiting for adapter to connect #17

Open
axeis opened this issue Apr 18, 2024 · 1 comment
Open

RuntimeError: timed out waiting for adapter to connect #17

axeis opened this issue Apr 18, 2024 · 1 comment

Comments

@axeis
Copy link

axeis commented Apr 18, 2024

When "Enable Debug for VS Code" I immediately get this in the Python-Output:

2024-04-18T16:37:37     WARNING    Traceback (most recent call last):
              File "C:\Users\Max\AppData\Roaming\Python\Python39\site-packages\debugpy\server\api.py", line 237, in listen
              sock, _ = endpoints_listener.accept()
              File "C:\PROGRA~1\QGIS\apps\Python39\lib\socket.py", line 293, in accept
              fd, addr = self._accept()
             socket.timeout: timed out
             
             During handling of the above exception, another exception occurred:
             
             Traceback (most recent call last):
              File "C:\Users/Max/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\debug_vs\__init__.py", line 134, in enable
              t_, self.port = self.debugpy.listen((self.host, self.port))
              File "C:\Users\Max\AppData\Roaming\Python\Python39\site-packages\debugpy\public_api.py", line 31, in wrapper
              return wrapped(*args, **kwargs)
              File "C:\Users\Max\AppData\Roaming\Python\Python39\site-packages\debugpy\server\api.py", line 143, in debug
              log.reraise_exception("{0}() failed:", func.__name__, level="info")
              File "C:\Users\Max\AppData\Roaming\Python\Python39\site-packages\debugpy\server\api.py", line 141, in debug
              return func(address, settrace_kwargs, **kwargs)
              File "C:\Users\Max\AppData\Roaming\Python\Python39\site-packages\debugpy\server\api.py", line 251, in listen
              raise RuntimeError("timed out waiting for adapter to connect")
             RuntimeError: timed out waiting for adapter to connect

Also another QGIS Instance opens. Is that intended?
The second instance has these warnings:

2024-04-18T16:37:35     CRITICAL    Ungültige Datenquelle : C:\Users\Max\AppData\Roaming\Python\Python39\site-packages\debugpy\adapter ist keine gültige oder erkannte Datenquelle.
2024-04-18T16:37:35     CRITICAL    Ungültige Datenquelle : C:\Users\Max\Documents\--for-server ist keine gültige oder erkannte Datenquelle.
2024-04-18T16:37:35     CRITICAL    Ungültige Datenquelle : C:\Users\Max\Documents\51955 ist keine gültige oder erkannte Datenquelle.
2024-04-18T16:37:35     CRITICAL    Ungültige Datenquelle : C:\Users\Max\Documents\--host ist keine gültige oder erkannte Datenquelle.
2024-04-18T16:37:35     CRITICAL    Ungültige Datenquelle : C:\Users\Max\Documents\localhost ist keine gültige oder erkannte Datenquelle.
2024-04-18T16:37:35     CRITICAL    Ungültige Datenquelle : C:\Users\Max\Documents\--port ist keine gültige oder erkannte Datenquelle.
2024-04-18T16:37:35     CRITICAL    Ungültige Datenquelle : C:\Users\Max\Documents\5678 ist keine gültige oder erkannte Datenquelle.
2024-04-18T16:37:35     CRITICAL    Ungültige Datenquelle : C:\Users\Max\Documents\--server-access-token ist keine gültige oder erkannte Datenquelle.
2024-04-18T16:37:35     CRITICAL    Ungültige Datenquelle : C:\Users\Max\Documents\87b14caf40d0de120e50a9716da53c0ef13136314dba2001e8038a4cff3ed0d2 ist keine gültige oder erkannte Datenquelle.

I am using QGIS 3.34.5 on Windows 10.
Debugpy was installed in the QGIS python env by default.

@mlechner
Copy link

Same here on QGIS 3.34.11 on Win10. debugpy has been installed using "python -m pip install debugpy" from QGIS Installdir. "import debugpy" ist successful from QGIS internal python console.
Anyone who solved the problem already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants