azureml-core cannot be installed in custom image for AML
See original GitHub issue- Package Name: azureml-core, azureml-pipeline, azureml-pipeline-steps, azureml-pipeline-core
- Package Version: latest
- Operating System: Ubuntu 20.04
- Python Version: 3.8.13
Describe the bug
I tried to build a custom image on Azure Machine Learning, with a base image from mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.3-cudnn8-ubuntu20.04
and additional conda specifications:
name: project_environment
dependencies:
- python=3.8.13
- pip:
- azureml==0.2.7
- azureml-dataprep==4.0.4
- datasets==2.3.2
- packaging==21.3
- pandas==1.4.2
- psutil==5.9.1
- pytorch_lightning==1.6.4
- PyYAML==6.0
- setuptools==61.2.0
- torch==1.11.0
- transformers==4.11.3
- pip
channels:
- anaconda
- conda-forge
The build succeeded. However, when I tried to add the following packages to the pip list:
- azureml-core==1.43.0
- azureml-pipeline==1.43.0
- azureml-pipeline-steps==1.43.0
- azureml-pipeline-core==1.43.0
The build status is stuck at “Running” for 1.5 hours and then timed out. The build log shows it was stuck at the installing pip dependencies step:
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Installing pip dependencies: ...working...
Run ID: cxp timed out after 1h30m0s
To Reproduce Steps to reproduce the behavior:
- Prepare the following
conda-dependencies.yaml
:
name: project_environment
dependencies:
- python=3.8.13
- pip:
- azureml==0.2.7
- azureml-core==1.43.0
- azureml-pipeline==1.43.0
- azureml-pipeline-steps==1.43.0
- azureml-pipeline-core==1.43.0
- datasets==2.3.2
- packaging==21.3
- pandas==1.4.2
- psutil==5.9.1
- pytorch_lightning==1.6.4
- PyYAML==6.0
- setuptools==61.2.0
- torch==1.11.0
- transformers==4.11.3
- pip
channels:
- anaconda
- conda-forge
- Set up a custom AML image:
env = Environment.from_conda_specification(
name=env_name,
file_path="conda-dependencies.yaml")
env.docker.base_image = 'mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.3-cudnn8-ubuntu20.04'
env.register(ws)
Expected behavior
If the pip packages not found because of some reasons, the build should fail with an error message instead of hanging.
I do not see any reason why azureml-core
et al. should cause problems though. They are public PyPi packages.
Screenshots
Issue Analytics
- State:
- Created a year ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Troubleshoot environment images - Azure Machine Learning
Learn how to troubleshoot issues with environment image builds and package installations.
Read more >Environment | Azure Machine Learning
Guide to working with Python environments in Azure ML. ... via the Azure ML Python SDK. If more customization is necessary you can...
Read more >AzureML Environment for Inference : can't add pip packages ...
AzureML image information: tensorflow-2.4-ubuntu18.04-py37-cpu-inference:20220110.v1 PATH environment variable: /opt/miniconda/envs/amlenv/bin ...
Read more >ML Pipelines in Azure Machine Learning the right way - Medium
Azure ML Studio (AML) is an Azure service for data scientists to build ... Ran pip install azureml-core azureml-pipeline in your development ...
Read more >Unifying remote and local AzureML environments
On top of the base image a conda environment is created and default python dependencies are installed to create an AzureML-SDK enabled ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @harneetvirk – it has been over 3 months. Is there any update from the feature team regarding this issue? Thanks!
This issue is depending on #24644