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

az devops login: Pip failed with status code 2 for package keyring~=17.1.1 #1272

Open
iainelder opened this issue Apr 20, 2022 · 1 comment
Labels
Feature Feature Work required.

Comments

@iainelder
Copy link

az devops login fails in my CI environment with a strange error about a missing Python package.

$ echo "faketoken" | az devops login
Unable to use secure credential store in this environment.
Please refer to alternate methods at https://aka.ms/azure-devops-cli-auth
using Environment variable
or use 'az login'
An error occurred. Pip failed with status code 2 for package keyring~=17.1.1. Use --debug for more information.

I already had to fix this last year using the steps discovered and documented in #1099 .

Now it's happening again and I don't know how to fix it.

Can someone help?

Here's the script I use to test the installation of az devops in my CI environment.

#!/bin/bash

# Name: Azure Devops CLI
# Source: https://docs.microsoft.com/es-es/cli/azure/install-azure-cli-linux?view=azure-cli-latest&pivots=apt

set -euxo pipefail

sudo apt-get update && sudo apt-get install --yes \
curl

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

sudo az extension add --system --upgrade --name azure-devops

az --version

# Fix error in `az devops login` because of missing package.
# https://github.com/Azure/azure-devops-cli-extension/issues/1099
sudo apt-get install --yes python3-pip
sudo pip3 install --target /opt/az/lib/python3.6/site-packages/ --upgrade pip
sudo pip3 install --target /opt/az/lib/python3.6/site-packages/ --upgrade keyring~=17.1.1

echo "faketoken" | az devops login
az devops logout

Here's the latest execution in Github actions: https://github.com/iainelder/dotfiles/runs/6093850654?check_suite_focus=true

@iainelder iainelder added the Feature Feature Work required. label Apr 20, 2022
iainelder added a commit to iainelder/dotfiles that referenced this issue Apr 20, 2022
Disabled until the following issue is resolved.
Azure/azure-devops-cli-extension#1272
"az devops login: Pip failed with status code 2 for package keyring~=17.1.1"
@jsloan117
Copy link

any update on this matter? It's been well over a year and seem to plague thousands of users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature Work required.
Projects
None yet
Development

No branches or pull requests

2 participants