You mean that dap exited abnormally? If yes, check the stderr buffer for the debug process. Answer from yyoncho on reddit.com
🌐
GitHub
github.com › microsoft › debugpy › issues › 1148
ModuleNotFoundError: No module named 'debugpy' · Issue #1148 · microsoft/debugpy
December 9, 2022 - Debugging Flask apps throws a ModuleNotFoundError, even with a minimal application. This happens both when I use the built-in debugger config, or create my own via launch.json. The terminal output is: /usr/bin/env /usr/local/bin/python /home/vscode/.vscode-server/extensions/ms-python.python-2022.20.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 56505 -- /workspaces/debug-repro-folder/main.py * Serving Flask app 'main' * Debug mode: on WARNING: This is a development server.
Author   korompaiistvan
🌐
Stack Overflow
stackoverflow.com › questions › 75531326 › vscode-changing-python-interpreter-leads-to-no-module-named-debugpy
vscode changing python interpreter leads to no module named debugpy - Stack Overflow
Thank you Jiale, I was aware of ... 2023-02-23T10:08:03Z+00:00 ... Sorry you didn't make that clear in your question. Try installing debugpy for your interpreter....
🌐
Reddit
reddit.com › r/neovim › "error while finding module specification for 'debugpy.adapter' (modulenotfounderror: no module named 'debugpy')" when debugging python in neovim
r/neovim on Reddit: "Error while finding module specification for 'debugpy.adapter' (ModuleNotFoundError: No module named 'debugpy')" when debugging python in neovim
March 22, 2025 -

Hi,

This is my neovim config for dap. This is specifically python config.

When I tried to debug a python file I get below error.

Dap Error

JS/Java/scala and go are all working fine. Only python dap is giving error.

Dap Error log is

/opt/homebrew/opt/python@3.13/bin/python3.13: Error while finding module specification for 'debugpy.adapter' (ModuleNotFoundError: No module named 'debugpy')

I have venv environment as well but still getting same error.

Any idea how can I fix this error?

🌐
PyPI
pypi.org › project › debugpy
debugpy · PyPI
Details for the file debugpy-1.8.20-py2.py3-none-any.whl. ... See more details on using hashes here. Details for the file debugpy-1.8.20-cp314-cp314-win_amd64.whl. Download URL: debugpy-1.8.20-cp314-cp314-win_amd64.whl ... See more details on using hashes here. Details for the file debugpy-1.8.20-cp314-cp314-win32.whl. Download URL: debugpy-1.8.20-cp314-cp314-win32.whl ... See more details on using hashes here. Details for the file debugpy-1.8.20-cp314-cp314-manylinux_2_34_x86_64.whl.
      » pip install debugpy
    
Published   Jan 29, 2026
Version   1.8.20
🌐
GitHub
github.com › aws › aws-toolkit-vscode › issues › 3075
Debug locally: "ImportError: No module named debugpy" · Issue #3075 · aws/aws-toolkit-vscode
December 30, 2022 - I performed some tests, the aws_toolkit.log main problem is not finding the debugpy module, but it is attached.
Author   marciogoulart
🌐
GitHub
github.com › microsoft › debugpy
GitHub - microsoft/debugpy: An implementation of the Debug Adapter Protocol for Python · GitHub
At the beginning of your script, import debugpy, and call debugpy.listen() to start the debug adapter, passing a (host, port) tuple as the first argument.
Starred by 2.4K users
Forked by 191 users
Languages   Python 92.8% | Cython 2.9% | Shell 1.8% | C++ 1.5% | Roff 0.8% | Perl 0.1%
🌐
GitHub
github.com › microsoft › debugpy › issues › 506
Debugging fails to start when Visual Studio Code Remote automatically forwards ports from a GitHub Codespace · Issue #506 · microsoft/debugpy
December 20, 2020 - Environment data debugpy version: Not sure, whatever is included in the VS Code Python extension, v2020.12.424452561 (run import debugpy; print(debugpy.__version__) if uncertain) [this didn't work, I get ModuleNotFoundError: No module na...
Author   jarrodldavis
Find elsewhere
🌐
GitHub
github.com › microsoft › debugpy › issues › 811
Fail to run debugpy using vscode with flask, "No module named" error message · Issue #811 · microsoft/debugpy
December 21, 2021 - import debugpy debugpy.listen(("localhost", 5050)) print("VS Code debugger can now be attached, press F5 in VS Code", flush=True) debugpy.wait_for_client() print("VS Code debugger attached, enjoy debugging", flush=True) ... # launch.json "version": "0.2.0", "configurations": [ { "name": "Python: Remote Attach", "type": "python", "request": "attach", "connect": { "host": "localhost", "port": 5050 }, "pathMappings": [{ "localRoot": "${workspaceFolder}", "remoteRoot": "." }] }, ] }
Author   pancudaniel7
🌐
GitHub
github.com › microsoft › debugpy › issues › 658
Can't debug Poetry module, getting "No module named Poetry" when running with minimal debug configuration · Issue #658 · microsoft/debugpy
July 8, 2021 - $ cd /Users/juliant/GitLocal/Work/mince ; /usr/bin/env /Users/juliant/Library/Caches/pypoetry/virtualenvs/mince-4ZV0U0mz-py3.9/bin/python /Users/juliant/.vscode/extensions/ms-python.python-2021.6.944021595/pythonFiles/lib/python/debugpy/launcher 56767 -- -m poetry run mince Alias tip: cdg ; /usr/bin/env /Users/juliant/Library/Caches/pypoetry/virtualenvs/mince-4ZV0U0mz-py3.9/bin/python /Users/juliant/.vscode/extensions/ms-python.python-2021.6.944021595/pythonFiles/lib/python/debugpy/launcher 56767 -- -m poetry run mince /Users/juliant/Library/Caches/pypoetry/virtualenvs/mince-4ZV0U0mz-py3.9/bin/python: No module named poetry
Author   macintacos
🌐
Stack Overflow
stackoverflow.com › questions › 79526957 › error-to-find-module-debugpy-when-debugging-python
neovim - Error to find module debugpy when debugging Python - Stack Overflow
Downgrading the Python extension to v2022.18.2 fixes the problem Reference: github.com/microsoft/debugpy/issues/1148 ... what does python3 -m pip freeze prints? Do you have this module installed? (in python env which is being used by dap?) ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... Domain expertise still wanted: the latest trends in AI-assisted knowledge for... ... I’m Jody, the Chief Product and Technology Officer at Stack Overflow. Let’s... PubChem Service no longer supports a list of CompoundID specifications
🌐
RoseIndia
roseindia.net › answers › viewqa › pythonquestions › 71787-ModuleNotFoundError-No-module-named-debugpy.html
ModuleNotFoundError: No module named 'debugpy'
September 9, 2020 - After the installation of debugpy python library, ModuleNotFoundError: No module named 'debugpy' error will be solved.
🌐
GitHub
github.com › microsoft › debugpy › issues › 540
Module import error only when debugging · Issue #540 · microsoft/debugpy
February 4, 2021 - debugpy version: Unknown. import debugpy; print(debugpy.__version__) results in 'no module named debugpy'. When debugging through VS Code, shows (\.vscode\extensions\ms-python.python-2021.1.502429796\pythonFiles\lib\python\debugpy\launcher')
Author   chrissyast
🌐
Stack Overflow
stackoverflow.com › questions › 75956116 › subprocess-with-visual-studio-debugger-attached-to-process-causes-a-problem-in-p
Subprocess with visual studio debugger attached to process causes a problem in python project - Stack Overflow
0.47s - Error importing debugpy._vendored.force_pydevd (with sys.path entry: 'c:\program > files\microsoft visual studio\2022\professional\common7\ide\extensions\microsoft\python\core') Traceback (most recent call last): File "c:\program files\microsoft visual studio\2022\professional\common7\ide\extensions\microsoft\python\core\debugpy_vendored\pyde> vd_pydevd_bundle\pydevd_defaults.py", line 60, in on_pydb_init import(module_name) ModuleNotFoundError: No module named 'debugpy'
🌐
Jupyter Community Forum
discourse.jupyter.org › general
I can't get past this part, can anyone help me? - General - Jupyter Community Forum
December 8, 2022 - Restarting with stat 0.07s - Debugger warning: It seems that frozen modules are being used, which may 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 0.00s - to python to disable frozen modules. 0.00s - Note: Debugging will proceed.
🌐
GitHub
github.com › microsoft › debugpy › issues › 1997
Unable to run a Python module in a subprocess when `subProcess: true` · Issue #1997 · microsoft/debugpy
February 23, 2026 - bash-3.2$ cd /Users/pete/projects/subprocess_test ; /usr/bin/env /Users/pete/projects/subprocess_test/.venv/bin/python /Users/pete/.vscode/extensions/ms-python.debugpy-2025.18.0-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 56894 -- /Users/pete/projects/subprocess_test/main.py No module named sub
Author   anvilpete