Skip to content
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

Fix 'conda command not found' in AzureML example Creation scripts #3321

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

lucasfijen
Copy link
Contributor

@lucasfijen lucasfijen commented Jul 26, 2024

Description

This PR fixes an issue with 'conda command not found' in recent azureml compute instance setup scripts.

The underlying reason why we run in this error is probably that before the creation scripts are ran, conda is installed, but bashrc is not ran, nor is bash restarted. This PR adds manually the PATH to conda to the scripts by running source /anaconda/etc/profile.d/conda.sh before the initial conda commands.

As this script is referenced in the documentation, this change will also update the documentation on creation scripts on azureml Compute instances. https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/machine-learning/how-to-customize-compute-instance.md
Currently following the steps on the documentation gives you the above mentioned error.

Fixes #3291

Checklist

  • I have read the contribution guidelines.
  • I have coordinated with the docs team (mldocs@microsoft.com) if this PR deletes files or changes any file names or file extensions.
  • Pull request includes test coverage for the included changes.
  • This notebook or file is added to the CODEOWNERS file, pointing to the author or the author's team.

The creation of the conda environment needs to be ran outside of the azureuser block
@seanyao1 seanyao1 enabled auto-merge (squash) September 3, 2024 16:10
@lucasfijen
Copy link
Contributor Author

Hi @seanyao1 thanks for the approval, do i need to do anything further to get it merged? I see the automerge is not being completed due to 2 required checks that are hanging on Expected — Waiting for status to be reported. How can we get these passed?

@seanyao1 seanyao1 merged commit 7ae3bd0 into Azure:main Sep 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customize Compute Instance Script Example Not Working
6 participants