-
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
Pin cryptography to 3.3.2 #16858
Comments
Will the Pin be applied to azure_mgmt_core too?? Collecting azure_mgmt_core-1.2.0-py2.py3-none-any.whl\n |
There's been a bit of a change in pyca/cryptography - Alpine and other images that don't have rust can't install azure-cli & azure_mgmt_core, probably most of the azure packages. Might be good to lock it down for the moment to 3.3.2 |
@fengzhou-msft @jiasli for awareness |
On CentOS 7, Upgrading pip directly into the az installation seems to fix this for the time being... I can then run
|
@houk-ms for awareness. |
Here is how I worked around the issue.
You might be able to get away doing number 2. I have done that anyway. |
@finlaysawyer Pip3 isn't version locked here. Are we ever likely to run into issues with pip3 being suddenly upgraded and breaking things? I think upgrading to the latest is generally recommended (even by pip3). What would you recommend. |
Both ppc64le jobs are currently broken when installing cryptography-3.4.3 via pip. Other communities have fixed this by upgrading pip [0]. Add a task to each job to upgrade pip to the latest version. [0] Azure/azure-cli#16858 Change-Id: I5abe51ef00932e0dabc2dfd3fb0fc907d66ca550
This fixes "No module named 'setuptools_rust'" error. Reference: Azure/azure-cli#16858
Help please, I can not install "pip3 install pgpy" on Centos 7, an error occurs. Traceback (most recent call last): What to do? |
Upgrade pip to latest |
I execute a az devops login on my azure-pipelines, my agents run in docker, but still received error: Command: Message return: Thanks.. |
I resolve my problem add in my Dockerfile of Docker agent azure the follow command: RUN python3 -m pip install -U pip I includes the lines commands after line the install the az cli. |
It works perfectly ! Thanks @mnoskoski |
Thanks @mnoskoski ! 😄 We had to tweak your fix slightly for Debian flavoured OS':
Notice the difference in the |
* Azure/azure-cli#16858 Signed-off-by: Pamfilos Fokianos <[email protected]>
Thanks @mnoskoski and @andrew-cowling !! I can confirm that the fix works on ubuntu:20.04 docker images running as build/release agents for Azure DevOps, but I had to change it slightly to:
Hope this helps someone else 🤞 |
* Azure/azure-cli#16858 Signed-off-by: Pamfilos Fokianos <[email protected]>
Hi all, I found that the trouble is related with the version of python installed with azure devops cli. What I do was just update pip to the target directory /opt/az/lib/python3.6/site-packages/ with this command: Hope this work for all! |
* Azure/azure-cli#16858 Signed-off-by: Pamfilos Fokianos <[email protected]>
Works for me |
We were able to update pip in target location /usr/lib64/az/lib/python3.6/site-packages/ which fixed the issues for some time but now we started seeing the problems again. |
This fixes "No module named 'setuptools_rust'" error. Reference: Azure/azure-cli#16858
This helped me:
..and after this just try again! :-) |
Please try with Azure CLI 2.21.0. The issue should be resolved. |
Yep, all working now that the pip upgrade is performed. Thanks |
Is your feature request related to a problem? Please describe.
Yesterday an update to cryptography was released which adds rust as a dependency for building it. This breaks compatibility with many systems and pip versions. I'm encountering an error when running
az devops login
:Describe the solution you'd like
Cryptography should be pinned to 3.3.2 to give people time to fix their pip version. For example, I'm using the installation script from the documentation shown here - Install Azure CLI Linux which no longer works because
python3-pip 9.0.3-8.el7
is not compatible.Describe alternatives you've considered
Upgrade pip
Additional context
pyca/cryptography#5753
pyca/cryptography#5771
The text was updated successfully, but these errors were encountered: