vscode-python: UserWarning: incompatible copy of pydevd already imported
Since the last update (v2022.20.0) I get the following warning when I launch the debugger (on a newly created django project):
user@localhost:~/src/Project/$ source /home/user/src/Project/venv/bin/activate
(venv) user@localhost:~/src/Project/$ /usr/bin/env /home/user/src/Project/venv/bin/python /home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 59609 -- manage.py runserver
/home/user/.local/lib/python3.9/site-packages/debugpy/_vendored/force_pydevd.py:18: UserWarning: incompatible copy of pydevd already imported:
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_calltip_util.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_completer.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_execfile.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_imports_tipper.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_saved_modules.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_tipper_common.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/pydev_imports.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/pydev_is_thread_alive.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/pydev_log.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/pydev_override.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_bundle/pydev_umd.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_base_schema.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema_log.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevconsole_code.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_api.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_breakpoints.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_collect_bytecode_info.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm_constants.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_command_line_handling.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_concurrency_logger.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_thread_wrappers.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_console.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_constants.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_custom_frames.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_daemon_thread.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_defaults.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace_files.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_exec2.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_api.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_utils.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_import_class.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_io.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_xml.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_reload.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_save_locals.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_source_mapping.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_timeout.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_api.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_traceproperty.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_utils.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_xml.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_frame_eval/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/cfg.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/concrete.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/instr.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydev_ipython/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevconsole.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_file_utils.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/extensions/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/__init__.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_helpers.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_numpy_types.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_pandas_types.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugins_django_form_str.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/pydevd_line_validation.py
/home/user/.vscode/extensions/ms-python.python-2022.20.0-universal/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_tracing.py
warnings.warn(msg + ':\n {}'.format('\n '.join(_unvendored)))
Performing system checks...
System check identified no issues (0 silenced).
December 09, 2022 - 16:41:25
Django version 4.1.4, using settings 'Project.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
If I downgrade to previous version (v2022.18.2), the warning disappears.
Version: 1.74.0 Release: 22342 Commit: cb188d662af4ff5d43505b572b49905a1f0153ad Date: 2022-12-08T20:05:53.183Z Electron: 19.1.8 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Linux x64 6.0.0-0.deb11.2-amd64 Sandboxed: No
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 11
- Comments: 18 (6 by maintainers)
Commits related to this issue
- Point release to roll back debugpy to 1.6.3 Closes #20355 — committed to microsoft/vscode-python by brettcannon 2 years ago
- Point release to roll back debugpy to 1.6.3 (#20369) Closes #20355 — committed to microsoft/vscode-python by brettcannon 2 years ago
- Point release to roll back debugpy to 1.6.3 (#20369) Closes #20355 — committed to mitchell-as/vscode-python by brettcannon 2 years ago
I just merged https://github.com/microsoft/vscode-python/pull/20369 . I need to trigger a build, make sure an installed VSIX works appropriately, and then we will release
2022.20.1
.2022.20.1
got pushed to the Marketplace with the rollback. Once you have verified you have the new version, please let us know if the problem persists. Otherwise, I’m optimistically closing this issue as fixed.The unfortunate thing of about having to roll back to debugpy 1.6.3 is we lost all the bugfixes in 1.6.4. ☹️ This may have been fixed already and we have to wait for 1.6.5 to gain those fixes plus what we uncovered with 1.6.4.
I believe that only checks for VS Code updates. To check for extension updates, use
Check for Extension Updates
(either the command or menu option):…but I guess I picked it up when I restarted as the errors are gone. I was looking for a new vscode release. Looks like it was the Python extension that changed. Sorry for the noise.
On Tue, Dec 13, 2022 at 6:32 AM Lou King @.***> wrote:
LGTM. Message is gone here.
Thanks @brettcannon for your support.
I have this (or very similar) on a flask project as well, also using python 3.9