Closed thatdevsherry closed 4 days ago
Is there any update on this?
as ray is currently not yet supporting pydantic 2 (https://github.com/ray-project/ray/blob/dd270c86feaf3b342014f20c3f7559a6e4cb4272/python/setup.py#L256) I don't think this can be fixed in prefect-ray alone.
see https://github.com/ray-project/ray/issues/38977#issuecomment-1841862512
We've merged the changes to make Ray compatible with Pydantic 2.5+. You can start using Pydantic 2.5+ with Ray 2.9, which should be out at the end of December.
These changes should also be in the Ray nightly, so feel free to try them out!
prefect-ray
crashes when usingpydantic>=2.0.0
.Expectation / Proposal
It is expected that
RayTaskRunner
can work with bothpydantic v1
andpydantic v2
. Especially now that prefect2.13.4
is out and it also had to update itself to handle pydantic v2's newer schema.Prefect
2.13.4
supports usingpydantic v2
. But if one wants to useprefect-ray
with it, they can't usepydantic v2
and have to fallback topydantic v1
.I'm not certain if this is to be fixed in
prefect-ray
or if this is aprefect
issue. Guidance appreciated.Traceback / Example
Crash log with
pydantic==2.4.2