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

Install AZ ML dependencies step is failing during deploy-model-training-pipeline.yml execution #128

Open
shishirdash24 opened this issue Jul 25, 2024 · 5 comments
Assignees
Labels
Bug Something isn't working 🍽️review Items that are ready for review

Comments

@shishirdash24
Copy link

Describe the bug or the issue that you are facing

deploy-model-training-pipeline.yml was working totally fine till last Friday & suddenly we have started facing issue with it from Monday. Install AZ ML dependencies is failing with the below error:
/usr/bin/bash /home/vsts/work/_temp/azureclitaskscript1721726661839.sh
Collecting pip
Downloading pip-24.1.2-py3-none-any.whl (1.8 MB)
ERROR: Could not find a version that satisfies the requirement install (from versions: none)
ERROR: No matching distribution found for install

Please see the attached image for more information.
image

Steps/Code to Reproduce

Expected Output

There shall not be any error in the script

Versions

main branch of the repo in DevOps.
I am using Azure ML SDK V2

Which platform are you using for deploying your infrastrucutre?

Azure DevOps (ADO)

If you mentioned Others, please mention which platformm are you using?

No response

What are you using for deploying your infrastrucutre?

Bicep

Are you using Azure ML CLI v2 or Azure ML Python SDK v2

Azure ML Python SDK v2

Describe the example that you are trying to run?

Execute deploy-model-training-pipeline.yml pipeline

@shishirdash24 shishirdash24 added Bug Something isn't working Needs Triage Needs Triage labels Jul 25, 2024
@shishirdash24
Copy link
Author

install-az-cli.yml in the template contains [python -m pip install -U --force-reinstall pip pip install <package_name>==]. Seems like this is causing the failure. I fixed it by modifying the commands to [ python -m pip install -U <package_name>==]. But now the next step in the execution which runs install-aml-cli.yml is failing with error:
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
##[error]Script failed with error: WARNING: Auto upgrade failed. name 'exit_code' is not defined

Please help getting a solution.

@setuc
Copy link
Contributor

setuc commented Jul 26, 2024

It seems there is an issue with the pip upgrade. I will investigate this next week. Possibly an older version is causing an issue together with the cryptography module.

@setuc setuc added 🍽️review Items that are ready for review and removed Needs Triage Needs Triage labels Jul 26, 2024
@murali513
Copy link

We are also getting same kind of error from July 17th :
image
Please let me know if any body any solution for this issue.

@shishirdash24
Copy link
Author

Microsoft is yet to provide any solution to this, but I found out some workaround though.

If you check the logs, "python -m pip install -U --force-reinstall pip" in mlops-templates -> templates -> aml-cli-v2 -> install-az-cli.yml is the culprit here.

Remove "python -m pip install -U --force-reinstall pip" from each line.
python -m pip install -U --force-reinstall pip
python -m pip install -U azure-cli==2.35
python -m pip install -U azure-ai-ml==1.1.0
python -m pip install -U azure-common==1.1.28
python -m pip install -U azure-core==1.26.1
python -m pip install -U azure-identity==1.10.0
python -m pip install -U azure-mgmt-core==1.3.0
python -m pip install -U azure-storage-blob==12.14.1
python -m pip install -U azure-storage-file-datalake==12.9.1
python -m pip install -U azure-storage-file-share==12.7.0

It may fail in the next step again(which is Install AML CLI V2) because of a missing package.
Add the below command to install-az-cli.yml to fix the issue:
python -m pip install --upgrade pyOpenSSL cryptography requests

@jason-theodorakopoulos
Copy link

The above workaround worked fined.
@setuc can you reflect this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working 🍽️review Items that are ready for review
Projects
None yet
Development

No branches or pull requests

4 participants