MacOS: Can't connect to HTTPS URL because the SSL module is not available
See original GitHub issueDescribe the bug The cli fails any networks calls, apparently related to Related issues for Debian/Ubuntu: https://github.com/Azure/azure-cli/issues/4360 / https://github.com/Azure/azure-cli/issues/3720
To Reproduce
brew install azure-cli
az login
(any command with a network call)
Expected behavior That the command succeed
Environment summary
Install Method: brew
CLI version: azure-cli (2.0.32)
OS: MacOS 10.13.4
Shell Type: zsh
openssl version -v
: LibreSSL 2.2.7
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
SSL module in Python is not available (on OSX) - Stack Overflow
Start with showing the output of which python , which pip , python --version , pip --version . Then, last time I checked,...
Read more >ssl module in Python is not available in iterm2env for macOS ...
It looks like there is a dependency on homebrew-installed openssl. For now you can work around this by installing homebrew and then doing...
Read more >Python "SSLError("Can't connect to HTTPS URL because the ...
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Read more >pip can't connect to https url because the ssl module is not ...
1 Answer. The problem is that Anaconda Python ships with its own SSL libraries and does not use the system SSL libraries when...
Read more >Conda fails with SSLError("Can't connect to HTTPS URL ...
... connect to HTTPS URL because the SSL module is not available. ... CONNECTION FAILED for url <https://conda.anaconda.org/pythonnet/win-64/repodata.json>.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This was super frustrating, so I figured I’d add a Q&A here to try and help anyone dealing with this in the future. I solved this by uninstalling and reinstalling:
brew uninstall --force openssl
brew install openssl
When I ran
brew install openssl
without uninstalling first, this is what happened:For me, removing the Pyenv install of Python was necessary after reinstalling OpenSSL: