You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Error during train model step in AML pipeline #258
I'm getting the following error during the train model step in the AML pipeline.
Collecting azure
Downloading azure-5.0.0.zip (4.6 kB)
�[91m ERROR: Command errored out with exit status 1:
command: /azureml-envs/azureml_9e644656c33b3f7d66d071f83add673e/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2gno3lm3/azure/setup.py'"'"'; file='"'"'/tmp/pip-install-2gno3lm3/azure/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-2gno3lm3/azure/pip-egg-info
cwd: /tmp/pip-install-2gno3lm3/azure/
Complete output (24 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-2gno3lm3/azure/setup.py", line 60, in
raise RuntimeError(message)
RuntimeError:
Starting with v5.0.0, the 'azure' meta-package is deprecated and cannot be installed anymore.
Please install the service specific packages prefixed by `azure` needed for your application.
Looks like you have to individually import each azure package used now. Can someone assist with updating the dependencies file located here with the necessary packages needed: diabetes_regression/conda_dependencies.yml
you have to re-run the IaC pipeline as well before running the CI-CD pipeline. the conda dependency file is used while creating some of the infrastructure.
I have added the AML rebuild environment - used the new master branch that was updated yesterday - I have deleted all of my resource group - rerun everything from scratch - still same error
here is what I used that was commited yesterday
name: diabetes_regression_training_env
Activity
mkhazen commentedon Apr 9, 2020
Here is the link that was provided too for additional detail
Azure/azure-sdk-for-python#10646
dfay88-zz commentedon Apr 9, 2020
i fixed the issue by removing -azure from diabetes_regression/conda_dependencies.yml
dfay88-zz commentedon Apr 9, 2020
you will also need to re-run the IaC pipeline as it also uses that file
mkhazen commentedon Apr 9, 2020
I have modified and deleted the -Azure from diabetes_regression/conda_dependencies.yml and then rerun the whole pipeline from CI but still same error
# Required packages for AzureML execution, history, and data preparation.
- azureml-model-management-sdk==1.0.1b6.post1
- azureml-sdk==1.0.74
- scipy==1.3.1
- scikit-learn==0.22
- pandas==0.25.3
- numpy==1.17.3
- joblib==0.14.0
- gunicorn==19.9.0
- flask==1.1.1
- inference-schema[numpy-support]
- azure-storage-blob
- azureml-dataprep
tcare commentedon Apr 9, 2020
Malek el Khazen (@mkhazen) can you try this commit? 03d1f90
dfay88-zz commentedon Apr 10, 2020
you have to re-run the IaC pipeline as well before running the CI-CD pipeline. the conda dependency file is used while creating some of the infrastructure.
tcare commentedon Apr 10, 2020
You can also try setting AML_REBUILD_ENVIRONMENT to true to stop caching
eedorenko commentedon Apr 10, 2020
Did you set AML_REBUILD_ENVIRONMENT to true?
mkhazen commentedon Apr 10, 2020
I have added the AML rebuild environment - used the new master branch that was updated yesterday - I have deleted all of my resource group - rerun everything from scratch - still same error
here is what I used that was commited yesterday
name: diabetes_regression_training_env
dependencies:
python=3.7.5
psutil=5.6 #latest
pip:
azureml-model-management-sdk==1.0.1b6.post1
azureml-sdk==1.0.74
scipy==1.3.1
scikit-learn==0.22
pandas==0.25.3
numpy==1.17.3
joblib==0.14.0
gunicorn==19.9.0
flask==1.1.1
inference-schema[numpy-support]
azure-storage-blob
azureml-dataprep
tcare commentedon Apr 10, 2020
Are you still seeing it try to download azure-5.0.0.zip?
Can you try my branch tcare/azure-meta-package
eedorenko commentedon Apr 10, 2020
Malek el Khazen (@mkhazen) are you sure you see same error? You don't have "azure" dependency anymore and you see it still complaining on it?
mkhazen commentedon Apr 10, 2020
it is working now - it was my mistake it was picking an old file - thank you for all of the support - as an FYI i have used this file 03d1f90
eedorenko commentedon Apr 13, 2020
Closed with #262