-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[Job] Add a proper error message when ray[default] is not installed and job submission is used #41604
Comments
orcahmlee
added a commit
to orcahmlee/ray
that referenced
this issue
Dec 23, 2024
…nd the Pydantic is not installed (ray-project#41604) Signed-off-by: Andrew <orcahmlee@gmail.com>
8 tasks
pcmoritz
pushed a commit
that referenced
this issue
Feb 25, 2025
#49409) <!-- Thank you for your contribution! Please review https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? I recently used the `ray job submit` CLI and got this confused error message ```sh TypeError: 'NoneType' object is not callable ``` <!-- Please give a short summary of the change and the problem this solves. --> As the #41604 mentioned, it need a proper error message instead of raising `NoneType` error. ## Related issue number <!-- For example: "Closes #1234" --> Related to #41604 ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( Signed-off-by: Andrew <orcahmlee@gmail.com>
kevin85421
pushed a commit
to kevin85421/ray
that referenced
this issue
Feb 28, 2025
ray-project#49409) <!-- Thank you for your contribution! Please review https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? I recently used the `ray job submit` CLI and got this confused error message ```sh TypeError: 'NoneType' object is not callable ``` <!-- Please give a short summary of the change and the problem this solves. --> As the ray-project#41604 mentioned, it need a proper error message instead of raising `NoneType` error. ## Related issue number <!-- For example: "Closes ray-project#1234" --> Related to ray-project#41604 ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( Signed-off-by: Andrew <orcahmlee@gmail.com> Signed-off-by: kaihsun <kaihsun@anyscale.com>
Michaelhess17
pushed a commit
to Michaelhess17/ray
that referenced
this issue
Mar 3, 2025
ray-project#49409) <!-- Thank you for your contribution! Please review https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? I recently used the `ray job submit` CLI and got this confused error message ```sh TypeError: 'NoneType' object is not callable ``` <!-- Please give a short summary of the change and the problem this solves. --> As the ray-project#41604 mentioned, it need a proper error message instead of raising `NoneType` error. ## Related issue number <!-- For example: "Closes ray-project#1234" --> Related to ray-project#41604 ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( Signed-off-by: Andrew <orcahmlee@gmail.com>
xsuler
pushed a commit
to antgroup/ant-ray
that referenced
this issue
Mar 4, 2025
ray-project#49409) <!-- Thank you for your contribution! Please review https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? I recently used the `ray job submit` CLI and got this confused error message ```sh TypeError: 'NoneType' object is not callable ``` <!-- Please give a short summary of the change and the problem this solves. --> As the ray-project#41604 mentioned, it need a proper error message instead of raising `NoneType` error. ## Related issue number <!-- For example: "Closes ray-project#1234" --> Related to ray-project#41604 ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( Signed-off-by: Andrew <orcahmlee@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened + What you expected to happen
this has been resolved when pip install "ray[default]" is used.
Versions / Dependencies
master
Reproduction script
n/a
Issue Severity
None
The text was updated successfully, but these errors were encountered: