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

PendingDeprecationWarning: Please use import python_multipart instead. #11562

Closed
tinawenzel opened this issue Nov 27, 2024 · 1 comment
Closed
Assignees
Labels
MLObs ML Observability (LLMObs)

Comments

@tinawenzel
Copy link

tinawenzel commented Nov 27, 2024

I'm getting this warning when using LLMOBs for LLM tracing (even in the newest version of ddtrace). Can this be ignored?

/Users/user_name/repos/my_repo/.venv/lib/python3.12/site-packages/ddtrace/internal/module.py:250: PendingDeprecationWarning: Please use import python_multipart instead.
self.loader.exec_module(module)

from this kind of usage:

from ddtrace.llmobs import LLMObs

LLMObs.enable(
        ml_app="xxx",
        api_key="xxx"),
        site="datadog......",
    )
@mabdinur
Copy link
Contributor

mabdinur commented Jan 2, 2025

Hi @tinawenzel,

You can ignore this warning.

The warning you're seeing is logged by the python-multipart when it detects that the deprecated multipart library is installed here.

The ddtrace library does not install python_multipart or multipart. ddtrace/internal/module.py contains hooks that detect imports and then enable ddtrace instrumentation (ex: fastapi). Here the ddtrace library is intercepting the multipart import and logging an expected warning.

@mabdinur mabdinur closed this as completed Jan 2, 2025
@mabdinur mabdinur self-assigned this Jan 2, 2025
@mabdinur mabdinur added the MLObs ML Observability (LLMObs) label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MLObs ML Observability (LLMObs)
Projects
None yet
Development

No branches or pull requests

2 participants