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

[Data] [1/n] Fix dependency related Ray Data tests for Python 3.12 #46545

Closed
wants to merge 13 commits into from
Closed
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
" \"transformers>=4.26.0\",\n",
" \"diffusers>=0.13.1\",\n",
" \"xformers>=0.0.16\",\n",
" \"torch<2\",\n",
" \"torch==2.3.0\",\n",
" ]\n",
" }\n",
")"
Expand Down
3 changes: 2 additions & 1 deletion python/ray/data/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ py_test(
name = "test_mars",
size = "medium",
srcs = ["tests/test_mars.py"],
tags = ["team:data", "exclusive"],
# mars does not support Python 3.11+, so mark as manual test.
tags = ["team:data", "exclusive", "manual"],
deps = ["//:ray_lib", ":conftest"],
)

Expand Down
5 changes: 4 additions & 1 deletion python/requirements/ml/data-test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
# https://github.com/ray-project/ray/pull/29448#discussion_r1006256498

python-snappy
tensorflow-datasets==4.9.3
# 4.9.6 fixes the following error with Python 3.12:
# `RecursionError: maximum recursion depth exceeded`
# See: https://github.com/tensorflow/datasets/issues/4666#issuecomment-2149200103
tensorflow-datasets==4.9.6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

w00t, you would need to update here too https://github.com/ray-project/ray/blob/ray-py312/python/requirements_compiled.txt#L1894 otherwise pip will complain during installation

datasets
pytest-repeat
soundfile
Expand Down
Loading