question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What 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.

  1. 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

  2. /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:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
andreichalapcocommented, Oct 17, 2022

No problem! Just wanted to let you know. Just wanted to make a small contribution 😃

1reaction
andreichalapcocommented, Oct 17, 2022

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 via python -m pytest -v python/ray/tests/test_mini.py

But the line from ray/scripts/script.py is surely deprecated

from distutils.dir_util import copy_tree

See https://docs.python.org/3/library/distutils.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

ray/scripts.py at master · ray-project/ray - GitHub
Ray is a unified framework for scaling AI and Python applications. Ray consists of a core distributed runtime and a toolkit of libraries...
Read more >
Ray Script - transcript from the screenplay and/or Jamie Foxx ...
Finally, the Ray script is here for all you quotes spouting fans of the movie starring Jamie Foxx as Ray Charles. This script...
Read more >
Ray Movie Script - Scripts.com
Read, review and discuss the entire Ray movie script by James L. White on Scripts.com. ... Synopsis: The story of Ray Charles, music...
Read more >
ray-script - npm
A Programming Language that Transpiles to JavaScript. Focuses on Readability, Brevity (small files), Code Base Management, and Eliminating ...
Read more >
scripts - ray-project/ray - Sourcegraph
Code Search · Notebooks · Monitoring · Batch Changes · Insights · About · Docs; Feedback. Sign inSign up. context:global. repo:^github\.com/ray-project/ray$ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found