-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Initialize Ray #37019
Comments
@pcmoritz Thanks! Do you happen to have any estimate of when Ray 2.6 will be released? |
There is some work in progress to allow ray to support both pydantic 1.x and 2.x concurrently. |
Folks any timeline on a permanent fix here please? A significant share of our users are reaching out after being impacted by this issue |
@jaidisido the PR is pretty close to be merged, and is highly likely to be included in 2.6 release. #37055 |
+1. All cluster creations are failing |
For everyone affected by this issue, can you try to use pydantic 1.x? |
Yes |
We've already pinned pydantic to be less than 2 and that will be released with ray 2.6. After that fix, folks that install the latest version of Ray will always install a compatible version of pydantic and the error will not appear. To have ray support both pydantic 1.x and 2.x at the same time is more difficult and also depends on other libraries adding support for pydantic 2.x. For example, ray serve depends on fastapi (one of the most popular python libraries), and fastapi is not yet compatible with pydantic 2.x. |
We're also impacted by this issue on the Iceberg branch of DeltaCAT now that Iceberg merged apache/iceberg#7782. |
@pdames Thanks for raising this, do you know what the timeline for Ray is to move to Pydantic 2? |
Set "pydantic < 2", ray-project/ray#37019. --------- Co-authored-by: Gaurav Tarlok Kakkar <gaurav21776@gmail.com>
@alanwguo it's now supported, as of FastAPI v0.100.0. Pydantic 2 seems to have significant performance improvements. Do you know if Ray Serve will be updated anytime soon? |
@martalist we've run into a number of issues related to serialization in order to support Pydantic 2 in Ray Serve. We are currently targeting the 2.8 release to address these. |
ref #40451 |
* Drop ray default feature due to the fact that pyiceberg requires pydantic > 2.0 * for context: ray-project/ray#37019
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! |
There is an error when calling ray.init() due to dependency with pydantic. ray-project/ray#37019
What happened + What you expected to happen
Hi,
I got the following error when calling
ray.init()
. The code worked before, and it is likely related to pydantic releasing a new version (2.0) today.Versions / Dependencies
Reproduction script
Issue Severity
High: It blocks me from completing my task.
The text was updated successfully, but these errors were encountered: