- Package Name: Azure ML extension
- Package Version: 2.43.0
- Operating System: MacOS
- Python Version: 3.12
Describe the bug
Impossible to install azure cli on macos.
I'am using azure-cli on top of uv tooling...
To Reproduce
Steps to reproduce the behavior:
- Install azure cli uv tool install --prerelease=allow azure-cli@latest
- Install azure cli ml extension - az extension add -n ml --debug
Expected behavior
Smooth and working installation....
Screenshots
If applicable, add screenshots to help explain your problem.
I don't know why but the installer verify the linux distribution.... But macos is not a linux distribution...
Another point is that when using uv, pip is not present.
cli.azure.cli.core.extension.operations: Linux distro check: Reading from: /etc/apt/sources.list.d/azure-cli.list
cli.azure.cli.core.extension.operations: Linux distro check: An error occurred while checking linux distribution version source list consistency.
cli.azure.cli.core.extension.operations: [Errno 2] No such file or directory: '/etc/apt/sources.list.d/azure-cli.list'
cli.azure.cli.core.extension.operations: Executing pip with args: ['install', '--target', '/Users/fponchon/.azure/cliextensions/ml', '/var/folders/m1/sydgx_xn5d1cclwypw_w6nzr0000gn/T/tmp047g2qyz/ml-2.43.0-py3-none-any.whl']
cli.azure.cli.core.extension.operations: Running: ['/Users/fponchon/.local/share/uv/tools/azure-cli/bin/python', '-m', 'pip', 'install', '--target', '/Users/fponchon/.azure/cliextensions/ml', '/var/folders/m1/sydgx_xn5d1cclwypw_w6nzr0000gn/T/tmp047g2qyz/ml-2.43.0-py3-none-any.whl', '--disable-pip-version-check', '--no-cache-dir']
cli.azure.cli.core.extension.operations: /Users/fponchon/.local/share/uv/tools/azure-cli/bin/python: No module named pip
cli.azure.cli.core.extension.operations: Command '['/Users/fponchon/.local/share/uv/tools/azure-cli/bin/python', '-m', 'pip', 'install', '--target', '/Users/fponchon/.azure/cliextensions/ml', '/var/folders/m1/sydgx_xn5d1cclwypw_w6nzr0000gn/T/tmp047g2qyz/ml-2.43.0-py3-none-any.whl', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 1.
cli.azure.cli.core.extension.operations: Pip failed so deleting anything we might have installed at /Users/fponchon/.azure/cliextensions/ml
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/Users/fponchon/.local/share/uv/tools/azure-cli/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fponchon/.local/share/uv/tools/azure-cli/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 677, in execute
raise ex
File "/Users/fponchon/.local/share/uv/tools/azure-cli/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 820, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fponchon/.local/share/uv/tools/azure-cli/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 789, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/Users/fponchon/.local/share/uv/tools/azure-cli/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 335, in __call__
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fponchon/.local/share/uv/tools/azure-cli/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/Users/fponchon/.local/share/uv/tools/azure-cli/lib/python3.12/site-packages/azure/cli/command_modules/extension/custom.py", line 16, in add_extension_cmd
return add_extension(cli_ctx=cmd.cli_ctx, source=source, extension_name=extension_name, index_url=index_url,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fponchon/.local/share/uv/tools/azure-cli/lib/python3.12/site-packages/azure/cli/core/extension/operations.py", line 344, in add_extension
extension_name = _add_whl_ext(cli_ctx=cmd_cli_ctx, source=source, ext_sha256=ext_sha256,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fponchon/.local/share/uv/tools/azure-cli/lib/python3.12/site-packages/azure/cli/core/extension/operations.py", line 173, in _add_whl_ext
raise CLIError('An error occurred. Pip failed with status code {}. '
knack.util.CLIError: An error occurred. Pip failed with status code 1. Use --debug for more information.
Describe the bug
Impossible to install azure cli on macos.
I'am using azure-cli on top of uv tooling...
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Smooth and working installation....
Screenshots
If applicable, add screenshots to help explain your problem.
I don't know why but the installer verify the linux distribution.... But macos is not a linux distribution...
Another point is that when using uv, pip is not present.