Skip to content
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

Ray is incompatible with pydantic>=2.0 #6336

Closed
anmyachev opened this issue Jun 30, 2023 · 0 comments · Fixed by #6337
Closed

Ray is incompatible with pydantic>=2.0 #6336

anmyachev opened this issue Jun 30, 2023 · 0 comments · Fixed by #6337
Labels
dependencies 🔗 Issues related to dependencies P0 Highest priority tasks requiring immediate fix

Comments

@anmyachev
Copy link
Collaborator

We should pin pydantic<2.0 to workaround the issues on Ray side.

Example from:

  File "/usr/share/miniconda/envs/modin/lib/python3.8/site-packages/ray/util/state/__init__.py", line 1, in <module>
    from ray.util.state.api import (
  File "/usr/share/miniconda/envs/modin/lib/python3.8/site-packages/ray/util/state/api.py", line 17, in <module>
    from ray.util.state.common import (
  File "/usr/share/miniconda/envs/modin/lib/python3.8/site-packages/ray/util/state/common.py", line 120, in <module>
    @dataclass(init=True)
  File "/usr/share/miniconda/envs/modin/lib/python3.8/site-packages/pydantic/dataclasses.py", line 139, in dataclass
    assert init is False, 'pydantic.dataclasses.dataclass only supports init=False'
AssertionError: pydantic.dataclasses.dataclass only supports init=False
@anmyachev anmyachev added dependencies 🔗 Issues related to dependencies P0 Highest priority tasks requiring immediate fix labels Jun 30, 2023
anmyachev added a commit to anmyachev/modin that referenced this issue Jun 30, 2023
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
vnlitvinov pushed a commit that referenced this issue Jul 1, 2023
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
vnlitvinov pushed a commit that referenced this issue Jul 1, 2023
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
vnlitvinov pushed a commit that referenced this issue Jul 3, 2023
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies 🔗 Issues related to dependencies P0 Highest priority tasks requiring immediate fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant