-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[BUG] MLFlow 2.6.0 PydanticUserError when importing mlflow w/ latest pydantic version #9331
Comments
Thank you for bringing this up to our attention @kparaju ! I've filed a fix for it and we'll be sure to get a patch out for this. In the meantime, can you pin pydantic to <2.x or use MLflow 2.5 until we get the patch released? |
Yes, we can and will pin to mlflow 2.5 until patch is released. |
I'm seeing this issue with mlflow 2.7.1 |
@mabreuortega Can you verify the results of: pip freeze | grep pydantic and pip freeze | grep mlflow ? |
pip freeze | grep pydantic pip freeze | grep mlflow
|
disregard, this above, I was facing another issue. ;-) |
@mabreuortega I built this dockerfile, but couldn't reproduce the error: FROM python:3.8
RUN pip install pydantic==2.3.0 pydantic_core==2.6.3 mlflow==2.7.1
RUN python -c 'import mlflow' Can you run |
Got it. Feel free to open a new issue. |
Issues Policy acknowledgement
Willingness to contribute
No, I cannot contribute a bug fix at this time.
MLflow version
System information
Describe the problem
Exception is thrown when importing mlflow.
Locking to
mlflow==2.5.0
gets rid of the issue. Lowering topydantic<2.0.0
also seems to solve the issue but I haven't checked if there is any other issues.Tracking information
Code to reproduce issue
Stack trace
Other info / logs
TBD
What component(s) does this bug affect?
area/artifacts
: Artifact stores and artifact loggingarea/build
: Build and test infrastructure for MLflowarea/docs
: MLflow documentation pagesarea/examples
: Example codearea/gateway
: AI Gateway service, Gateway client APIs, third-party Gateway integrationsarea/model-registry
: Model Registry service, APIs, and the fluent client calls for Model Registryarea/models
: MLmodel format, model serialization/deserialization, flavorsarea/recipes
: Recipes, Recipe APIs, Recipe configs, Recipe Templatesarea/projects
: MLproject format, project running backendsarea/scoring
: MLflow Model server, model deployment tools, Spark UDFsarea/server-infra
: MLflow Tracking server backendarea/tracking
: Tracking Service, tracking client APIs, autologgingWhat interface(s) does this bug affect?
area/uiux
: Front-end, user experience, plotting, JavaScript, JavaScript dev serverarea/docker
: Docker use across MLflow's components, such as MLflow Projects and MLflow Modelsarea/sqlalchemy
: Use of SQLAlchemy in the Tracking Service or Model Registryarea/windows
: Windows supportWhat language(s) does this bug affect?
language/r
: R APIs and clientslanguage/java
: Java APIs and clientslanguage/new
: Proposals for new client languagesWhat integration(s) does this bug affect?
integrations/azure
: Azure and Azure ML integrationsintegrations/sagemaker
: SageMaker integrationsintegrations/databricks
: Databricks integrationsThe text was updated successfully, but these errors were encountered: