-
Notifications
You must be signed in to change notification settings - Fork 244
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
[Bug] An error occurred. Pip failed with status code 1 for package keyring~=17.1.1. Use --debug for more information. #1099
Comments
I also am fighting this issue... azure-cli 2.16.0 * core 2.16.0 * Extensions: Python location '/usr/bin/python3' Python (Linux) 3.6.8 (default, Nov 16 2020, 16:55:22) reading manifest template 'MANIFEST.in'
Cleaning up... cli.azure.cli.core.extension.operations: Command '['/usr/bin/python3', '-m', 'pip', 'install', 'keyring~=17.1.1', '--target', '/root/.azure/cliextensions/azure-devops', '-vv', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 1. During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 1 for package keyring~=17.1.1. Use --debug for more information. |
for me this error coming since 05/02/2021, before that I don't see this error, not sure what was changed. |
This was due to the cryptography package adding I opened a similar issue here Azure/azure-cli#16858 |
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! |
@dareyes90 Thanks for solution its solving the issue |
@dareyes90, I don't understand how upgrading pip would fix this. For me it didn't help. Nonetheless, your message pointed me in the right direction to fix it here. Run a command like this to check whether the az command's Python installation has the keyring package: pip3 freeze --path /opt/az/lib/python3.6/site-packages/ | grep '^keyring==' If it returns nothing, then the keyring package is missing. You can fix that with this command. pip3 install --target /opt/az/lib/python3.6/site-packages/ keyring~=17.1.1 It installs the same version required by az devops. |
Looks like this issue is resolved with Azure/azure-cli#16858 @anjanmadaram can you please confirm? |
Sorry, I’m no longer with the company that had that issue.
Thanks,
Brian
… On Jan 3, 2022, at 1:12 AM, Roshan Soni ***@***.***> wrote:
Looks like this issue is resolved with Azure/azure-cli#16858
@anjanmadaram can you please confirm?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.
|
@brianttu1 please let me know who can confirm this. |
On Fedora 37, my problem was that I didn't have I got the same error as OP when trying to install Azure IoT extension for Azure CLI
I tried the suggestion from @iainelder , System says pip3 is not installed. I installed pip3, ran the original command |
Describe the bug
cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 1 for package keyring~=17.1.1. Use --debug for more information.
cli.azure.cli.core.extension.operations: Command '['/opt/az/bin/python3', '-m', 'pip', 'install', 'keyring~=17.1.1', '--target', '/root/.azure/cliextensions/azure-devops', '-vv', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 1.
cli.azext_devops.dev.team.credentials: Unable to use secure credential store in this environment.
cli.azext_devops.dev.team.credentials: Please refer to alternate methods at https://aka.ms/azure-devops-cli-auth
cli.azext_devops.dev.team.credentials: using Environment variable
cli.azext_devops.dev.team.credentials: or use 'az login'
cli.azext_devops.dev.common.exception_handler: handling generic error
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/credential_store.py", line 23, in set_password
import keyring
ModuleNotFoundError: No module named 'keyring'
During handling of the above exception, another exception occurred:
To Reproduce
Azure Cli Version:
Use az --version
Look for something like-
azure-cli (2.0.70)
Azure-Devops extension version:
azure-cli 2.19.0
core 2.19.0
telemetry 1.0.6
Extensions:
azure-devops 0.18.0
Steps to reproduce the behavior:
Expected behavior
az devops login to be success
Screenshots
If applicable, add screenshots to help explain your problem.
Debug logs
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: