-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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 component: Ray Jobs API #36578
Comments
This seems to be a breaking change in Python 3.11: https://docs.python.org/3.11/library/random.html#random.sample @frazierprime Thanks for reporting this, would you be willing to open a PR to fix it? We just need to convert it to a list instead of a set. |
Not letting me add an assignee. Guessing there's some git rule that doesn't allow it. Looks like the dev guide says you all will assign someone shortly. Pinging @rickyyx for visibility. Also; can't follow your build steps in https://docs.ray.io/en/latest/ray-contribute/getting-involved.html#setting-up-your-development-environment get the following error:
|
Breaking change introduced in python 3.11 to the random package https://docs.python.org/3.11/library/random.html#random.sample Sample throws a type error when passed a non-sequence object (in this case, a set). This PR changes the set type to sorted, as per the error message: TypeError: Population must be a sequence. For dicts or sets, use sorted(d). Fixes #36578 Signed-off-by: frazierprime <[email protected]>
@architkulkarni | @rickyyx - any updates on if/when this fix will go out? I just tested with Ray version |
It will be in Ray 2.6, which should be released in late July.
…On Fri, Jun 23, 2023 at 5:11 AM Joshua Frazier ***@***.***> wrote:
@architkulkarni <https://github.com/architkulkarni> | @rickyyx
<https://github.com/rickyyx> - any updates on if/when this fix will go
out? I just tested with Ray version 2.5.1 and I am still getting the same
error.
—
Reply to this email directly, view it on GitHub
<#36578 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJU5RXD5G4BXFDUYA7PMZ3XMWBWBANCNFSM6AAAAAAZNJZGMU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Breaking change introduced in python 3.11 to the random package https://docs.python.org/3.11/library/random.html#random.sample Sample throws a type error when passed a non-sequence object (in this case, a set). This PR changes the set type to sorted, as per the error message: TypeError: Population must be a sequence. For dicts or sets, use sorted(d). Fixes ray-project#36578 Signed-off-by: frazierprime <[email protected]> Signed-off-by: e428265 <[email protected]>
Description
Hello!
I am a new user, making my way through the jobs API quickstart guide, and I am seeing a strange error. Perhaps I am doing something wrong, in which case please let me know!
Context:
Ray version:
ray==2.5.0
I have a local cluster for testing running via this command:
ray start --head
with a single head node.ray status
output:Error:
Code:
Command to submit:
Link
https://docs.ray.io/en/latest/cluster/running-applications/job-submission/quickstart.html#quickstart-using-the-ray-jobs-cli
The text was updated successfully, but these errors were encountered: