You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a Django project using ddtrace with warnings enabled, this warning is emitted:
Issue
/usr/local/lib/python3.7/dist-packages/ddtrace/bootstrap/sitecustomize.py:7: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
Deprecated since version 3.3: Use importlib.util.find_spec() instead unless Python 3.3 compatibility is required, in which case use importlib.find_loader(). For example usage of the former case, see the Examples section of the importlib documentation.
Deprecated since version 3.3: If previously used in conjunction with imp.find_module() then consider using importlib.import_module(), otherwise use the loader returned by the replacement you chose for imp.find_module(). If you called imp.load_module() and related functions directly with file path arguments then use a combination of importlib.util.spec_from_file_location() and importlib.util.module_from_spec(). See the Examples section of the importlib documentation for details of the various approaches.
Resolution
I suspect this example could be worth building off of to do the necessary path customization.
The text was updated successfully, but these errors were encountered:
When running a Django project using ddtrace with warnings enabled, this warning is emitted:
Issue
Details
The line in question:
dd-trace-py/ddtrace/bootstrap/sitecustomize.py
Line 7 in 9414832
How it's used:
dd-trace-py/ddtrace/bootstrap/sitecustomize.py
Lines 103 to 120 in 9414832
Documentation note for
imp.find_module()
:Documentation note for
imp.load_module()
:Resolution
I suspect this example could be worth building off of to do the necessary path customization.
The text was updated successfully, but these errors were encountered: