Azure / azure-cli

Azure Command-Line Interface
MIT License
3.95k stars 2.93k forks source link

no idea why this happened - pip installing azure-cli fixed it #12087

Open barabo opened 4 years ago

barabo commented 4 years ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az aks install-cli

Errors:

dlopen(/usr/local/Cellar/azure-cli/2.0.71/libexec/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/Cellar/azure-cli/2.0.71/libexec/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
  Reason: image not found
Traceback (most recent call last):
python3.7/site-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
...
ImportError: dlopen(/usr/local/Cellar/azure-cli/2.0.71/libexec/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/Cellar/azure-cli/2.0.71/libexec/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
  Reason: image not found

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Environment Summary

Darwin-18.7.0-x86_64-i386-64bit
Python 3.7.5
Shell: bash

azure-cli 2.0.71 *

Additional Context

ghost commented 4 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm

ghost commented 4 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm

arrownj commented 4 years ago

@barabo , thanks for reporting, we are looking at this ?

manikanta-kondeti commented 4 years ago

Hey, any update on this?

I am getting a similar error while deploying a BotService to Azure

djsly commented 4 years ago

@manikanta-kondeti / @barabo , I have the az cli installed using brew on Darwin 19.4.0 Darwin Kernel Version 19.4.0

Azure-cli    Azure-cli-command-modules-nspkg    Azure-cli-core    Azure-cli-nspkg    Azure-cli-telemetry
-----------  ---------------------------------  ----------------  -----------------  ---------------------
2.6.0        2.0.3                              2.6.0             3.0.4              1.0.4

and I was able to run the az aks install-cli

❯ az aks install-cli
Downloading client to "/usr/local/bin/kubectl" from "https://storage.googleapis.com/kubernetes-release/release/v1.18.3/bin/darwin/amd64/kubectl"
Connection error while attempting to download client ([Errno 13] Permission denied: '/usr/local/bin/kubectl')
jluk commented 4 years ago

@barabo I am also unable to reproduce this error, but you are running a very old version of the Azure CLI. Could you please upgrade your CLI and try to reproduce this?

zhangpengchen commented 4 years ago

I had the same issue today, by checking openssl version, switch that to the right version did the trick brew switch openssl 1.0.2r

marlon-montgomery commented 3 years ago

I'm having the same issues, but brew no longer supports the switch command, any other thoughts on how to resolve?