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

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 <[email protected]>
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants