Skip to content

UserWarning: incompatible copy of pydevd already imported #1149

@int19h

Description

@int19h

When debugging this in a launch session:

# app.py
from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello():
    return "ok"

if __name__ == "__main__":
    app.run(debug=True)

The following output is produced:

> 'C:\Python\3.9-64\python.exe' 'c:\Users\pminaev\.vscode\extensions\ms-python.python-2022.20.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '61002' '--' '-m' 'flask' 'run' '--no-debugger' 
...
 * Restarting with stat
C:\Python\3.9-64\lib\site-packages\debugpy\_vendored\force_pydevd.py:18: UserWarning: incompatible copy of pydevd already imported:
 c:\Users\pminaev\.vscode\extensions\ms-python.python-2022.20.0\pythonFiles\lib\python\debugpy\_vendored\pydevd\_pydev_bundle\__init__.py
...

(it goes on to list all the files)

It doesn't seem to affect function, but the warning is obviously incorrect, since it's complaining about its own vendored copy.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions