Skip to content

Commit

Permalink
Restrict pydantic<2.0.0 due to breaking changes (#1104)
Browse files Browse the repository at this point in the history
> 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_"
```
  • Loading branch information
mgoin committed Jun 30, 2023
1 parent d06ef19 commit ea5cf4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _parse_requirements_file(file_path):
_deps = [
"numpy>=1.16.3",
"onnx>=1.5.0,<1.15.0",
"pydantic>=1.8.2",
"pydantic>=1.8.2,<2.0.0",
"requests>=2.0.0",
"tqdm>=4.0.0",
"protobuf>=3.12.2,<=3.20.1",
Expand Down Expand Up @@ -120,7 +120,6 @@ def _parse_requirements_file(file_path):
_server_deps = [
"uvicorn>=0.15.0",
"fastapi>=0.70.0,<0.87.0",
"pydantic>=1.8.2",
"requests>=2.26.0",
"python-multipart>=0.0.5",
"prometheus-client>=0.14.1",
Expand Down

0 comments on commit ea5cf4b

Please sign in to comment.