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

[BUG] Pydantic warning: Field "model_server_url" has conflict with protected namespace "model_" #10335

Open
3 of 23 tasks
aldanor opened this issue Nov 9, 2023 · 12 comments
Open
3 of 23 tasks
Labels
area/server-infra MLflow Tracking server backend area/tracking Tracking service, tracking client APIs, autologging bug Something isn't working

Comments

@aldanor
Copy link

aldanor commented Nov 9, 2023

Issues Policy acknowledgement

  • I have read and agree to submit bug reports in accordance with the issues policy

Where did you encounter this bug?

Local machine

Willingness to contribute

No. I cannot contribute a bug fix at this time.

MLflow version

  • Client: 2.8.0
  • Tracking server: 2.8.0

System information

  • OS Platform and Distribution: macOS
  • Python version: 3.11.5

Describe the problem

Both the client and the UI always emit the following two warnings:

pydantic/_internal/_fields.py:127: UserWarning:
Field "model_server_url" has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.

pydantic/_internal/_config.py:269: UserWarning:
Valid config keys have changed in V2:
* 'schema_extra' has been renamed to 'json_schema_extra'

Given that model_* attributes have special meaning in pydantic, I guess it's complaining about model_server_url not being explicitly whitelisted somewhere. And in the second warning, a deprecated schema_extra is being accessed instead of the new json_schema_extra.

Tracking information

REPLACE_ME

Code to reproduce issue

REPLACE_ME

Stack trace

REPLACE_ME

Other info / logs

REPLACE_ME

What component(s) does this bug affect?

  • area/artifacts: Artifact stores and artifact logging
  • area/build: Build and test infrastructure for MLflow
  • area/docs: MLflow documentation pages
  • area/examples: Example code
  • area/gateway: AI Gateway service, Gateway client APIs, third-party Gateway integrations
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/models: MLmodel format, model serialization/deserialization, flavors
  • area/recipes: Recipes, Recipe APIs, Recipe configs, Recipe Templates
  • area/projects: MLproject format, project running backends
  • area/scoring: MLflow Model server, model deployment tools, Spark UDFs
  • area/server-infra: MLflow Tracking server backend
  • area/tracking: Tracking Service, tracking client APIs, autologging

What interface(s) does this bug affect?

  • area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server
  • area/docker: Docker use across MLflow's components, such as MLflow Projects and MLflow Models
  • area/sqlalchemy: Use of SQLAlchemy in the Tracking Service or Model Registry
  • area/windows: Windows support

What language(s) does this bug affect?

  • language/r: R APIs and clients
  • language/java: Java APIs and clients
  • language/new: Proposals for new client languages

What integration(s) does this bug affect?

  • integrations/azure: Azure and Azure ML integrations
  • integrations/sagemaker: SageMaker integrations
  • integrations/databricks: Databricks integrations
@aldanor aldanor added the bug Something isn't working label Nov 9, 2023
@github-actions github-actions bot added area/server-infra MLflow Tracking server backend area/tracking Tracking service, tracking client APIs, autologging labels Nov 9, 2023
@nomomon
Copy link

nomomon commented Nov 15, 2023

I have the same warning

Copy link

@mlflow/mlflow-team Please assign a maintainer and start triaging this issue.

@MountassirEl
Copy link

same issue

@laineil
Copy link

laineil commented Nov 19, 2023

I encountered the same issue, which seems related to pydantic. Rolling back pydantic from version v2.5.1 to v1.10.13 resolved the warning for me.

@sinberlin2
Copy link

I have the same problem with pydantic 2.0

@sinberlin2
Copy link

The issue disappears when instaling pydantic with conda (conda install pydantic -c conda-forge)

@asanglard
Copy link

same issue here

@tkaraouzene
Copy link

Hi same issue for me too

@4pygmalion
Copy link

same issue

@juliusaka
Copy link

same issue here

1 similar comment
@amoosebitmymom
Copy link

same issue here

@B-Step62
Copy link
Collaborator

B-Step62 commented Jan 30, 2024

For those who still encountered this issue, could you try updating MLflow to the latest version? We have released a patch in v2.9.0: #10483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/server-infra MLflow Tracking server backend area/tracking Tracking service, tracking client APIs, autologging bug Something isn't working
Projects
None yet
Development

No branches or pull requests