-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[runtime envs] pip package in runtime env is not installed #26342
Comments
Hi @onlyone2019, thank you for reporting. I suspect a conflict between pip/conda. Ray would not know to use |
Ah @tupui thanks, I do think the issue is related to this. In general, these issues can be debugged by printing out @onlyone2019 To help you better, may I ask your reasons for using a conda environment? I think the behavior of dynamically installing |
What I don't get from the doc is that there is a way to install a package using conda, but I did not see how to specify the environment to use. |
Ah, for the
But what's not yet supported is modifying existing Did that clarify things? We're currently pushing to improve the docs so any feedback is very valuable. |
But the doc mention that we can install packages in a conda env. Either from PyPi or conda. See here https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#api-reference In the end I don't think that being able to modify a conda env when submitting a job is that of a good idea. IMO the env should be fully specified either in a yml (then caching to not recreate on the same node maybe, or build on one and propagate to the others) or exist already. |
Sorry I wasn't sure which part exactly, do you mind pointing to the exact line? Then I can make sure to update it to be more clear.
Makes sense, currently we use the first approach (caching to not recreate on the same node) |
@tupui Thanks for your suggestions. I have tried using
Unfortunately, I doesn't know how to debug. Next, I'll do some experiments with |
Hi @architkulkarni, thank you sincerely! I want to use different versions of python environments and I use anaconda to install them. Therefore, I only have conda environments in my PC. If I want to use specific python environment for each job, maybe providing a conda |
Hi @architkulkarni. I want to submit a job using some python packages that my ray cluster doesn't have installed. Could you give me an example of getting the cluster to install packages at runtime, either using pip or conda? |
Hi @onlyone2019, can you check the examples listed at https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#api-reference under |
Hi, I'm a bot from the Ray team :) To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months. If there is no further activity in the 14 days, the issue will be closed!
You can always ask for help on our discussion forum or Ray's public slack channel. |
Hi again! The issue will be closed because there has been no more activity in the 14 days since the last message. Please feel free to reopen or open a new issue if you'd still like it to be addressed. Again, you can always ask for help on our discussion forum or Ray's public slack channel. Thanks again for opening the issue! |
What happened + What you expected to happen
ray job submit --address=‘http://192.168.0.166:8265’ --runtime-env-json=‘{“working_dir”:“./” , “pip”:[“smmap”]}’ -- /home/wanjia/conda/env1/bin/python ./job.py
We submitted a job using the above command to check if ray worker will install python packages at runtime.According to the document, ray worker will install
smmap
, and the job will work correctly.However, we got some error messages:
Versions / Dependencies
ray
:3.0.0.dev0
python
:3.8.13
Reproduction script
job.py
command
ray job submit --address=‘http://192.168.0.166:8265’ --runtime-env-json=‘{“working_dir”:“./” , “pip”:[“smmap”]}’ -- /home/wanjia/conda/env1/bin/python ./job.py
NOTE:
We submit a job to the remote ray worker and 192.168.0.166 is its address.Moreover, "/home/wanjia/conda/env1/bin/python" is the way to a remote worker's python environment.
We not just tested the package “smmap” which is a small package and takes only a short time to download. Correspondingly, we also took packages like
numpy
andtorch
for testing, but we got the same message.Issue Severity
No response
The text was updated successfully, but these errors were encountered: