Skip to content

Commit

Permalink
[server] pin anyio support to <4.0.0
Browse files Browse the repository at this point in the history
this is for compatibility with the maximum currently allowed version of `starlette`. `anyio` just pushed a 4.0.0 that is incompatible with earlier versions of `starlette`. 

Note that this is now fixed in later versions (`deepsparse` has not yet tested against newer versions of `fastapi` and `starlette`). See: encode/starlette#1936


from internal bug report:
```
Our Deepsparse GHA is failing with starlette error: AttributeError: module 'anyio' has no attribute 'start_blocking_portal'
```
  • Loading branch information
bfineran committed Aug 31, 2023
1 parent d8b63da commit c1ec88e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -124,6 +124,7 @@ def _parse_requirements_file(file_path):
"python-multipart>=0.0.5",
"prometheus-client>=0.14.1",
"psutil>=5.9.4",
"anyio<4.0.0",
]
_onnxruntime_deps = [
"onnxruntime>=1.7.0",
Expand Down

0 comments on commit c1ec88e

Please sign in to comment.