-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Installation of ML extension fails with pip error #16880
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github. Issue Details
Describe the bug Using the debug flag we see an error from cryptography: To Reproduce Expected behavior Environment summary
|
route to appropriate team |
@yungezz The issue is happening only when using mcr.microsoft.com/azure-cli docker image. az ml extension installation done on local machine works fine. Looks like an issue with the image. |
It's caused by the latest version of
|
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @lostmygithubaccount. Issue Details
Describe the bug Using the debug flag we see an error from cryptography: To Reproduce Expected behavior Environment summary
|
A new patch release whl has been made that should fix this issue. It pins the cryptography package to be compatible: This has not yet been released to the general az extension add -n azure-cli-ml yet - we are working on that. In the meantime, you can use the above command instead to get the patch. |
Help please, I can not install "pip3 install pgpy" on Centos 7, an error occurs. Traceback (most recent call last): What to do? |
Hopefully pinning cryptography package to an older version <3.3.2 should help. |
there's security issue in cryptography <3.2.2, https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst#332---2021-02-07. We're working on upgrade crypotography to >=3.2.2 |
The issues is fixed with the new version of |
I am still having this issue.
|
I'm also still having this issues |
Same problem here, I tried to install @fengzhou-msft can you please re-open this issue and look into that? I believe a lot of users with a new generation M1/M2 Apple's processor will have the same problem. FYI I can install the latest version of cryptography just with Thanks! Here the relevant logs obtained with
|
I'm also having these issues! Exactly the same error as above. |
We are investigating this issue. |
Hi @andmck1, |
+1 - having this issue right now.
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/pthread.h:537:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] cli.azure.cli.core.extension.operations: Command '['/Users/daaronch/.pyenv/versions/3.8.12/bin/python', '-m', 'pip', 'install', '--target', '/Users/daaronch/.azure/cliextensions/azure-cli-ml', '/var/folders/38/kszkvfx157q2qy4fm0gwzxpw0000gn/T/tmpk4eld8ky/azure_cli_ml-1.37.0-py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 1. cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 1. Use --debug for more information.
|
@aronchick using a M1 Mac or otherwise arm64 arch? I have been able to work around the error by installing from within a Docker container with relevant folders volume mounted. You may want to open a new issue given this one is closed and differs from the original cryptography compatibility issue. |
@aronchick this has been fixed in |
Yes, it works for me. Thank you ❤️ |
having this ssue again E:>az extension add --name ml |
I'd recommend opening a new issue @pcluo, not sure if anyone's checking closed issues this old |
I am having this exact same issue |
Same issue. Is there a workaround? |
I will re-recommend opening a new issue :) I'm going to unsubscribe from this, you'll have a much better chance with a new issue I suspect |
Describe the bug
When installing the Azure Machine Learning CLI extension, we see this error:
ERROR: An error occurred. Pip failed with status code 1. Use --debug for more information.
Using the debug flag we see an error from cryptography:
error: Can not find Rust compiler
Building wheel for cryptography (PEP 517): finished with status 'error'
ERROR: Failed building wheel for cryptography
and
pip._internal.exceptions.InstallationError: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
To Reproduce
Create a Dockerfile with these lines:
FROM mcr.microsoft.com/azure-cli
RUN az login
RUN az extension add -n azure-cli-ml
Expected behavior
ML CLI extension installs.
Environment summary
Using base mcr.microsoft.com/azure-cli image.
The text was updated successfully, but these errors were encountered: