Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pydantic warnings #1273

Open
wd60622 opened this issue Dec 13, 2024 · 0 comments
Open

Pydantic warnings #1273

wd60622 opened this issue Dec 13, 2024 · 0 comments

Comments

@wd60622
Copy link
Contributor

wd60622 commented Dec 13, 2024

Seems like many of these are not coming from the pymc-marketing codebase. Need to look through still...

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/pydantic/fields.py:1042
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/pydantic/fields.py:1042: PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 'arbitrary_types_allowed'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    warn(

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:64
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:64: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("togetherai_api_key", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:78
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:78: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("cohere_api_key", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:86
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:86: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("ai21labs_api_key", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:95
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:95: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("mosaicml_api_key", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:125
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:125: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("openai_api_key", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:182
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:182: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("anthropic_api_key", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:190
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:190: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("palm_api_key", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:230
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:230: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("mistral_api_key", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:284
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:284: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("provider", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:311
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:311: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("config", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:351
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:351: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("name")

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:361
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:361: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("model", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:372
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:372: PydanticDeprecatedSince20: Pydantic V1 style `@root_validator` validators are deprecated. You should migrate to Pydantic V2 style `@model_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @root_validator(skip_on_failure=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:394
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:394: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("route_type", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:400
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/mlflow/gateway/config.py:400: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    @validator("limit", pre=True)

../../../micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/pydantic/_internal/_config.py:295
  /home/wdean/micromamba/envs/pymc-marketing-dev/lib/python3.10/site-packages/pydantic/_internal/_config.py:295: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    warnings.warn(DEPRECATION_MESSAGE, DeprecationWarning)

pymc_marketing/mlflow.py:134
  /home/wdean/GitHub/pymc-eco/pymc-marketing/pymc_marketing/mlflow.py:134: FutureWarning: This functionality is experimental and subject to change. If you encounter any issues or have suggestions, please raise them at: https://github.com/pymc-labs/pymc-marketing/issues/new
    warnings.warn(warning_msg, FutureWarning, stacklevel=1)
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant