curl -L https://aka.ms/InstallAzureCli | bash
fails on macOS monterey 12.0.1 because of outdated virtualenv library
#20047
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
Installation
Milestone
Describe the bug
curl -L https://aka.ms/InstallAzureCli | bash
fails at the step of creating a virtual python environment in $HOME/lib/azure-clibin, lib, and include directories are created in $HOME/lib/azure-cli and various files are copied and symlinked. But then I get an error like the following that sys.prefix points to the original python3 binary location and not the new virtual environment directory in $HOME/lib/azure-cli.
To Reproduce
Using built-in /usr/bin/python3 and XCode 13.1 comand-line tools:
Using python39 installed with MacPorts.
Expected behavior
The install script should run to completion and result in a functioning
az
binary.Environment summary
macOS monterey 12.0.1 x86_64
GNU bash, version 5.1.8(1)-release (x86_64-apple-darwin21.1.0)
python 3.8.9 (apple) or python 3.9.7 (macports)
Additional context
I think the issue is that virtualenv 16.x is not compatible with macOS 12. I tried modifying install.py to use 16.7.12 and that also failed. I then installed
py39-virtualenv
(which is 20.9.0) from macports and modified install.py to usevirtualenv
from the path rather than downloading it from pypi.This worked and ran to completion.
The text was updated successfully, but these errors were encountered: