fast api requires higher version of typing extension(>=4.8.0) where as tensorflow requires lower version of typing extension(<4.6.0) #11746
Unanswered
shubham-gupta0
asked this question in
Questions
Replies: 1 comment
-
If you use pdm, you can override it with the [tool.pdm.resolution.overrides]
typing-extensions = ">=4.8.0" This should be safe since typing-extensions doesn't have breaking changes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
i was using the above code to run my machine learning model i tried it hosting to my ubuntu 20.04 server in which i got conflicting errors when installed the required libraries is was mainly due to typing extentions version requirements by the other libraries
the error when i installed typing extension 4.5.0:
ERROR: torch 2.3.1 has requirement typing-extensions>=4.8.0, but you'll have typing-extensions 4.5.0 which is incompatible.
ERROR: pydantic 2.7.4 has requirement typing-extensions>=4.6.1, but you'll have typing-extensions 4.5.0 which is incompatible.
ERROR: pydantic-core 2.18.4 has requirement typing-extensions!=4.7.0,>=4.6.0, but you'll have typing-extensions 4.5.0 which is incompatible.
ERROR: fastapi 0.111.0 has requirement typing-extensions>=4.8.0, but you'll have typing-extensions 4.5.0 which is incompatible.
the errors when i used typing extension of 4.8.0:
ERROR: tensorflow 2.13.1 has requirement typing-extensions<4.6.0,>=3.6.6, but you'll have typing-extensions 4.12.2 which is incompatible.
Operating System
Other
Operating System Details
OS : ubuntu 20.04
FastAPI Version
0.111.0
Pydantic Version
2,7,4
Python Version
3.8.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions