Ray scripts
See original GitHub issueWhat happened + What you expected to happen
Hi,
when running the minimal tests via python -m pytest -v python/ray/tests/test_mini.py
I noticed that some deprecated error are comming through that could be fixed.
-
python-3.10.7/lib64/python3.10/site-packages/requests/init.py:43: DeprecationWarning: ‘urllib3[secure]’ extra is deprecated and will be removed in a future release of urllib3 2.x. Read more in this issue: https://github.com/urllib3/urllib3/issues/2680 import urllib3
-
/python-3.10.7/lib64/python3.10/site-packages/ray/scripts/scripts.py:14: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.dir_util import copy_tree
For the second deprecation warning I already found a solution with shutil.copytree
. If you’re interested I could also make a pull request.
The first deprecation error will I think be fixed by the requests package contributors.
Versions / Dependencies
Ray version: Version: 3.0.0.dev0 Python 3.10.7
Reproduction script
python -m pytest -v python/ray/tests/test_mini.py
Issue Severity
Low: It annoys or frustrates me.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7 (7 by maintainers)
No problem! Just wanted to let you know. Just wanted to make a small contribution 😃
So I’ve built Ray (Python only by following the documentation at https://docs.ray.io/en/latest/ray-contribute/development.html#building-ray-python-only). Next I’ve installed all dependencies via:
pip install -r python/requirements.txt
and lastly I run the test viapython -m pytest -v python/ray/tests/test_mini.py
But the line from ray/scripts/script.py is surely deprecated
See https://docs.python.org/3/library/distutils.html