Open orangekame3 opened 1 month ago
I shared about this topic in Slack channel This issue is not specific to prefect, so please feel free to close it if it's not relevant.
Hey @orangekame3, the 2.19.2 version of prefect
vendors a specific version of FastAPI
to maintain compatibility with Pydantic v2. I think that might be the source of this incompatibility. We will be removing that vendored version in our 3.0.0 release, so you can try with our 3.0.0rc2
version and see if this issue persists.
First check
Bug summary
This might not be the place to discuss this, but I'll share it anyway. It seems that the latest versions of
prefect="^2.19.2"
anduvloop="^0.19.0"
are not compatible. I'm using fastapi in conjunction with prefect, and the issue is thatfastapi="^0.111.0"
has a dependency onuvloop="^0.19.0"
by default. Since fastapi is a widely used package, I thought it would be worth sharing this information here. I managed to circumvent this issue by downgrading fastapi to version0.110.3
.Reproduction
use following code https://github.com/zzstoatzz/submit-to-runner-demo/blob/main/work.py
Error
Versions
Additional context
No response