specifying conda runtime_env using fullpath no longer works #44373
Labels
bug
Something that is supposed to be working; but isn't
core
Issues that should be addressed in Ray Core
core-runtime-env
Issues related to Ray environment dependencies
enhancement
Request for new feature and/or capability
@external-author-action-required
Alternate tag for PRs where the author doesn't have labeling permission.
P1
Issue that should be fixed within a few weeks
What happened + What you expected to happen
In earlier version of ray (2.6.3), I was able to specify full path to conda environment to select a specific conda environment. In latest version (2.9.3), I get an error
File "/usr/conda/lib/python3.10/site-packages/ray/_private/runtime_env/conda.py", line 348, in _create raise ValueError( ValueError: The given conda environment '/usr/conda' from the runtime env {'_ray_commit': '62655e11ed76509b78654b60be67bc59f8f3460a', 'conda': '/usr/conda'} doesn't exist from the output of
conda env list --json. You can only specify an env that already exists. Please make sure to create an env /usr/conda
"/usr/conda" is present in
conda env list --json
. This is broken by this PR69ed38b
envs = [Path(env).name for env in conda_env_list]
line is only checking the last path component and not the full path.I tried specifying just the last path component but that also does not work. Conda environments created using -p prefix are no longer working.
Versions / Dependencies
Ray: 2.9.3
Python: 3.10.13
Reproduction script
Issue Severity
Medium: It is a significant difficulty but I can work around it.
The text was updated successfully, but these errors were encountered: