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

UserWarning: incompatible copy of pydevd already imported #1149

Closed
int19h opened this issue Dec 12, 2022 · 2 comments · Fixed by #1150
Closed

UserWarning: incompatible copy of pydevd already imported #1149

int19h opened this issue Dec 12, 2022 · 2 comments · Fixed by #1150
Assignees
Labels
bug Something isn't working

Comments

@int19h
Copy link
Contributor

int19h commented Dec 12, 2022

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.

@int19h int19h added the bug Something isn't working label Dec 12, 2022
@int19h
Copy link
Contributor Author

int19h commented Dec 12, 2022

Likely root cause: #1148 (comment)

@int19h int19h assigned int19h and unassigned fabioz Dec 12, 2022
int19h pushed a commit to int19h/debugpy that referenced this issue Dec 12, 2022
Fix microsoft#1149: UserWarning: incompatible copy of pydevd already imported

Fix formatting for sys.path entry passed to subprocesses.
int19h pushed a commit that referenced this issue Dec 13, 2022
Fix #1149: UserWarning: incompatible copy of pydevd already imported

Fix formatting for sys.path entry passed to subprocesses.
@poedator
Copy link

poedator commented Jan 2, 2025

Observed this warning with vscode Version: 1.96.2 when using remote development

/home/***/.vscode-server/extensions/ms-python.debugpy-2024.14.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/_vendored/force_pydevd.py:18: UserWarning: incompatible copy of pydevd already imported:
 /home/optimus/conda/envs/tts39/lib/python3.9/site-packages/pydevd_plugins/extensions/pydevd_plugin_omegaconf.py
  warnings.warn(msg + ':\n {}'.format('\n  '.join(_unvendored)))

@int19h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants