Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
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

Closed

Description

@dfay88-zz

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

Activity

  1. mkhazen commented on Apr 9, 2020

    @mkhazen

    Here is the link that was provided too for additional detail
    Azure/azure-sdk-for-python#10646

  2. dfay88-zz commented on Apr 9, 2020

    @dfay88-zz
    Author

    i fixed the issue by removing -azure from diabetes_regression/conda_dependencies.yml

  3. dfay88-zz commented on Apr 9, 2020

    @dfay88-zz
    Author

    you will also need to re-run the IaC pipeline as it also uses that file

  4. mkhazen commented on Apr 9, 2020

    @mkhazen

    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

    • pip:
      # 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
  5. tcare commented on Apr 9, 2020

    @tcare
    Contributor

    Malek el Khazen (@mkhazen) can you try this commit? 03d1f90

  6. dfay88-zz commented on Apr 10, 2020

    @dfay88-zz
    Author

    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.

  7. tcare commented on Apr 10, 2020

    @tcare
    Contributor

    You can also try setting AML_REBUILD_ENVIRONMENT to true to stop caching

  8. eedorenko commented on Apr 10, 2020

    @eedorenko
    Contributor

    Did you set AML_REBUILD_ENVIRONMENT to true?

  9. mkhazen commented on Apr 10, 2020

    @mkhazen

    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

  10. tcare commented on Apr 10, 2020

    @tcare
    Contributor

    Are you still seeing it try to download azure-5.0.0.zip?

    Can you try my branch tcare/azure-meta-package

  11. eedorenko commented on Apr 10, 2020

    @eedorenko
    Contributor

    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?

  12. mkhazen commented on Apr 10, 2020

    @mkhazen

    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

  13. eedorenko commented on Apr 13, 2020

    @eedorenko
    Contributor

    Closed with #262

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions