omry / omegaconf

Flexible Python configuration system. The last one you will ever need.
BSD 3-Clause "New" or "Revised" License
1.99k stars 115 forks source link

`incompatible copy of pydevd already imported` when running omegaconf #1178

Open YoniChechik opened 5 months ago

YoniChechik commented 5 months ago

Describe the bug warning appears when running omegaconf:

0.00s - 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. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
/root/.vscode-server/extensions/ms-python.debugpy-2024.6.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/_vendored/force_pydevd.py:18: UserWarning: incompatible copy of pydevd already imported:
 /venv/lib/python3.11/site-packages/pydevd_plugins/extensions/pydevd_plugin_omegaconf.py
  warnings.warn(msg + ':\n {}'.format('\n  '.join(_unvendored)))

To Reproduce run anything with omegaconf import

Expected behavior this wanring shouldn't happen

Additional context

aeon0 commented 1 week ago

Anyone has solved this somehow? Getting omegaconf via hydra 1.3.2 and having that same annoying warning. (also 2.3.0)

tried setting OC_PYDEVD_RESOLVER:

image

But no change. I dont think omgeconf should force any pydev on the user, at least by default the import should be turned off...