Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Restrict pydantic<2.0.0 due to breaking changes #1104

Merged
merged 1 commit into from
Jun 30, 2023
Merged

Conversation

mgoin
Copy link
Member

@mgoin mgoin commented Jun 30, 2023

Pydantic V2 is a ground-up rewrite that offers many new features, performance improvements, and some breaking changes compared to Pydantic V1.

deepsparse/pipeline.py:822: in <module>
    class PipelineConfig(BaseModel):
...
NameError: Field "model_path" has conflict with protected namespace "model_"

testing and support for latest pydantic to be added in future release

> Pydantic V2 is a ground-up rewrite that offers many new features, performance improvements, and some breaking changes compared to Pydantic V1.

```
deepsparse/pipeline.py:822: in <module>
    class PipelineConfig(BaseModel):
...
NameError: Field "model_path" has conflict with protected namespace "model_"
```
@mgoin mgoin requested review from bfineran, a team, natuan and horheynm and removed request for a team June 30, 2023 19:42
@bfineran bfineran merged commit ea5cf4b into main Jun 30, 2023
@bfineran bfineran deleted the pydantic-restriction branch June 30, 2023 19:48
bfineran pushed a commit that referenced this pull request Jul 5, 2023
> Pydantic V2 is a ground-up rewrite that offers many new features, performance improvements, and some breaking changes compared to Pydantic V1.

```
deepsparse/pipeline.py:822: in <module>
    class PipelineConfig(BaseModel):
...
NameError: Field "model_path" has conflict with protected namespace "model_"
```
bfineran added a commit that referenced this pull request Jul 5, 2023
* Restrict `pydantic<2.0.0` due to breaking changes (#1104)

> Pydantic V2 is a ground-up rewrite that offers many new features, performance improvements, and some breaking changes compared to Pydantic V1.

```
deepsparse/pipeline.py:822: in <module>
    class PipelineConfig(BaseModel):
...
NameError: Field "model_path" has conflict with protected namespace "model_"
```

* bump version to 1.5.2

---------

Co-authored-by: Michael Goin <michael@neuralmagic.com>
horheynm pushed a commit that referenced this pull request Jul 6, 2023
> Pydantic V2 is a ground-up rewrite that offers many new features, performance improvements, and some breaking changes compared to Pydantic V1.

```
deepsparse/pipeline.py:822: in <module>
    class PipelineConfig(BaseModel):
...
NameError: Field "model_path" has conflict with protected namespace "model_"
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants