Skip to content
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

Fail to install az ml extension #30812

Open
sebgros-ms opened this issue Feb 12, 2025 · 4 comments
Open

Fail to install az ml extension #30812

sebgros-ms opened this issue Feb 12, 2025 · 4 comments
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning az ml Possible-Solution Service Attention This issue is responsible by Azure service team. Similar-Issue

Comments

@sebgros-ms
Copy link

Describe the bug

az ml fails to install

Related command

az extension add --name ml

Errors

An error occurred. Pip failed with status code 1. Use --debug for more information.

Issue script & Debug output

cli.knack.cli: Command arguments: ['extension', 'add', '--name', 'ml', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0000015E69B3B1A0>, <function OutputProducer.on_global_arguments at 0x0000015E69EDC040>, <function CLIQuery.on_global_arguments at 0x0000015E69F01440>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'extension': ['azure.cli.command_modules.extension']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: extension 0.005 1 7
cli.azure.cli.core: Total (1) 0.005 1 7
cli.azure.cli.core: Loaded 1 groups, 7 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : extension add
cli.azure.cli.core: Command table: extension add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0000015E6C1F5E40>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\sebgros.azure\commands\2025-02-12.18-53-07.extension_add.22280.log'.
az_command_data_logger: command args: extension add --name {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0000015E6C2431A0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0000015E6C25D580>, <function register_cache_arguments..add_cache_arguments at 0x0000015E6C25D6C0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x0000015E6C25D760>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0000015E69EDC0E0>, <function CLIQuery.handle_query_parameter at 0x0000015E69F014E0>, <function register_ids_argument..parse_ids_arguments at 0x0000015E6C25D620>]
urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443
urllib3.connectionpool: https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0
urllib3.connectionpool: Starting new HTTPS connection (1): azcliextensionsync.blob.core.windows.net:443
urllib3.connectionpool: https://azcliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1" 200 4901950
cli.azure.cli.core.extension._resolve: Candidates ['ml-2.0.0a1-py3-none-any.whl', 'ml-2.0.1a1-py3-none-any.whl', 'ml-2.0.1a2-py3-none-any.whl', 'ml-2.0.1a3-py3-none-any.whl', 'ml-2.0.1a4-py3-none-any.whl', 'ml-2.0.1a5-py3-none-any.whl', 'ml-2.0.2-py3-none-any.whl', 'ml-2.0.3-py3-none-any.whl', 'ml-2.0.7-py3-none-any.whl', 'ml-2.1.1-py3-none-any.whl', 'ml-2.1.2-py3-none-any.whl', 'ml-2.2.1-py3-none-any.whl', 'ml-2.2.2-py3-none-any.whl', 'ml-2.2.3-py3-none-any.whl', 'ml-2.3.1-py3-none-any.whl', 'ml-2.4.0-py3-none-any.whl', 'ml-2.4.1-py3-none-any.whl', 'ml-2.5.0-py3-none-any.whl', 'ml-2.6.0-py3-none-any.whl', 'ml-2.6.1-py3-none-any.whl', 'ml-2.7.0-py3-none-any.whl', 'ml-2.7.1-py3-none-any.whl', 'ml-2.8.0-py3-none-any.whl', 'ml-2.9.0-py3-none-any.whl', 'ml-2.10.0-py3-none-any.whl', 'ml-2.11.0-py3-none-any.whl', 'ml-2.12.0-py3-none-any.whl', 'ml-2.12.1-py3-none-any.whl', 'ml-2.13.0-py3-none-any.whl', 'ml-2.14.0-py3-none-any.whl', 'ml-2.14.1-py3-none-any.whl', 'ml-2.15.0-py3-none-any.whl', 'ml-2.15.1-py3-none-any.whl', 'ml-2.16.0-py3-none-any.whl', 'ml-2.17.0-py3-none-any.whl', 'ml-2.17.1-py3-none-any.whl', 'ml-2.17.2-py3-none-any.whl', 'ml-2.18.0-py3-none-any.whl', 'ml-2.19.0-py3-none-any.whl', 'ml-2.19.1-py3-none-any.whl', 'ml-2.20.0-py3-none-any.whl', 'ml-2.21.0-py3-none-any.whl', 'ml-2.21.1-py3-none-any.whl', 'ml-2.22.0-py3-none-any.whl', 'ml-2.23.0-py3-none-any.whl', 'ml-2.24.0-py3-none-any.whl', 'ml-2.25.0-py3-none-any.whl', 'ml-2.25.1-py3-none-any.whl', 'ml-2.26.0-py3-none-any.whl', 'ml-2.26.1-py3-none-any.whl', 'ml-2.27.0-py3-none-any.whl', 'ml-2.27.1-py3-none-any.whl', 'ml-2.28.0-py3-none-any.whl', 'ml-2.29.0-py3-none-any.whl', 'ml-2.30.0-py3-none-any.whl', 'ml-2.30.1-py3-none-any.whl', 'ml-2.31.0-py3-none-any.whl', 'ml-2.31.1-py3-none-any.whl', 'ml-2.32.0-py3-none-any.whl', 'ml-2.32.1-py3-none-any.whl', 'ml-2.32.4-py3-none-any.whl', 'ml-2.33.0-py3-none-any.whl', 'ml-2.33.1-py3-none-any.whl', 'ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['ml-2.0.0a1-py3-none-any.whl', 'ml-2.0.1a1-py3-none-any.whl', 'ml-2.0.1a2-py3-none-any.whl', 'ml-2.0.1a3-py3-none-any.whl', 'ml-2.0.1a4-py3-none-any.whl', 'ml-2.0.1a5-py3-none-any.whl', 'ml-2.0.2-py3-none-any.whl', 'ml-2.0.3-py3-none-any.whl', 'ml-2.0.7-py3-none-any.whl', 'ml-2.1.1-py3-none-any.whl', 'ml-2.1.2-py3-none-any.whl', 'ml-2.2.1-py3-none-any.whl', 'ml-2.2.2-py3-none-any.whl', 'ml-2.2.3-py3-none-any.whl', 'ml-2.3.1-py3-none-any.whl', 'ml-2.4.0-py3-none-any.whl', 'ml-2.4.1-py3-none-any.whl', 'ml-2.5.0-py3-none-any.whl', 'ml-2.6.0-py3-none-any.whl', 'ml-2.6.1-py3-none-any.whl', 'ml-2.7.0-py3-none-any.whl', 'ml-2.7.1-py3-none-any.whl', 'ml-2.8.0-py3-none-any.whl', 'ml-2.9.0-py3-none-any.whl', 'ml-2.10.0-py3-none-any.whl', 'ml-2.11.0-py3-none-any.whl', 'ml-2.12.0-py3-none-any.whl', 'ml-2.12.1-py3-none-any.whl', 'ml-2.13.0-py3-none-any.whl', 'ml-2.14.0-py3-none-any.whl', 'ml-2.14.1-py3-none-any.whl', 'ml-2.15.0-py3-none-any.whl', 'ml-2.15.1-py3-none-any.whl', 'ml-2.16.0-py3-none-any.whl', 'ml-2.17.0-py3-none-any.whl', 'ml-2.17.1-py3-none-any.whl', 'ml-2.17.2-py3-none-any.whl', 'ml-2.18.0-py3-none-any.whl', 'ml-2.19.0-py3-none-any.whl', 'ml-2.19.1-py3-none-any.whl', 'ml-2.20.0-py3-none-any.whl', 'ml-2.21.0-py3-none-any.whl', 'ml-2.21.1-py3-none-any.whl', 'ml-2.22.0-py3-none-any.whl', 'ml-2.23.0-py3-none-any.whl', 'ml-2.24.0-py3-none-any.whl', 'ml-2.25.0-py3-none-any.whl', 'ml-2.25.1-py3-none-any.whl', 'ml-2.26.0-py3-none-any.whl', 'ml-2.26.1-py3-none-any.whl', 'ml-2.27.0-py3-none-any.whl', 'ml-2.27.1-py3-none-any.whl', 'ml-2.28.0-py3-none-any.whl', 'ml-2.29.0-py3-none-any.whl', 'ml-2.30.0-py3-none-any.whl', 'ml-2.30.1-py3-none-any.whl', 'ml-2.31.0-py3-none-any.whl', 'ml-2.31.1-py3-none-any.whl', 'ml-2.32.0-py3-none-any.whl', 'ml-2.32.1-py3-none-any.whl', 'ml-2.32.4-py3-none-any.whl', 'ml-2.33.0-py3-none-any.whl', 'ml-2.33.1-py3-none-any.whl', 'ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['ml-2.4.0-py3-none-any.whl', 'ml-2.4.1-py3-none-any.whl', 'ml-2.5.0-py3-none-any.whl', 'ml-2.6.0-py3-none-any.whl', 'ml-2.6.1-py3-none-any.whl', 'ml-2.7.0-py3-none-any.whl', 'ml-2.7.1-py3-none-any.whl', 'ml-2.8.0-py3-none-any.whl', 'ml-2.9.0-py3-none-any.whl', 'ml-2.10.0-py3-none-any.whl', 'ml-2.11.0-py3-none-any.whl', 'ml-2.12.0-py3-none-any.whl', 'ml-2.12.1-py3-none-any.whl', 'ml-2.13.0-py3-none-any.whl', 'ml-2.14.0-py3-none-any.whl', 'ml-2.14.1-py3-none-any.whl', 'ml-2.15.0-py3-none-any.whl', 'ml-2.15.1-py3-none-any.whl', 'ml-2.16.0-py3-none-any.whl', 'ml-2.17.0-py3-none-any.whl', 'ml-2.17.1-py3-none-any.whl', 'ml-2.17.2-py3-none-any.whl', 'ml-2.18.0-py3-none-any.whl', 'ml-2.19.0-py3-none-any.whl', 'ml-2.19.1-py3-none-any.whl', 'ml-2.20.0-py3-none-any.whl', 'ml-2.21.0-py3-none-any.whl', 'ml-2.21.1-py3-none-any.whl', 'ml-2.22.0-py3-none-any.whl', 'ml-2.23.0-py3-none-any.whl', 'ml-2.24.0-py3-none-any.whl', 'ml-2.25.0-py3-none-any.whl', 'ml-2.25.1-py3-none-any.whl', 'ml-2.26.0-py3-none-any.whl', 'ml-2.26.1-py3-none-any.whl', 'ml-2.27.0-py3-none-any.whl', 'ml-2.27.1-py3-none-any.whl', 'ml-2.28.0-py3-none-any.whl', 'ml-2.29.0-py3-none-any.whl', 'ml-2.30.0-py3-none-any.whl', 'ml-2.30.1-py3-none-any.whl', 'ml-2.31.0-py3-none-any.whl', 'ml-2.31.1-py3-none-any.whl', 'ml-2.32.0-py3-none-any.whl', 'ml-2.32.1-py3-none-any.whl', 'ml-2.32.4-py3-none-any.whl', 'ml-2.33.0-py3-none-any.whl', 'ml-2.33.1-py3-none-any.whl', 'ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['ml-2.4.0-py3-none-any.whl', 'ml-2.4.1-py3-none-any.whl', 'ml-2.5.0-py3-none-any.whl', 'ml-2.6.0-py3-none-any.whl', 'ml-2.6.1-py3-none-any.whl', 'ml-2.7.0-py3-none-any.whl', 'ml-2.7.1-py3-none-any.whl', 'ml-2.8.0-py3-none-any.whl', 'ml-2.9.0-py3-none-any.whl', 'ml-2.10.0-py3-none-any.whl', 'ml-2.11.0-py3-none-any.whl', 'ml-2.12.0-py3-none-any.whl', 'ml-2.12.1-py3-none-any.whl', 'ml-2.13.0-py3-none-any.whl', 'ml-2.14.0-py3-none-any.whl', 'ml-2.14.1-py3-none-any.whl', 'ml-2.15.0-py3-none-any.whl', 'ml-2.15.1-py3-none-any.whl', 'ml-2.16.0-py3-none-any.whl', 'ml-2.17.0-py3-none-any.whl', 'ml-2.17.1-py3-none-any.whl', 'ml-2.17.2-py3-none-any.whl', 'ml-2.18.0-py3-none-any.whl', 'ml-2.19.0-py3-none-any.whl', 'ml-2.19.1-py3-none-any.whl', 'ml-2.20.0-py3-none-any.whl', 'ml-2.21.0-py3-none-any.whl', 'ml-2.21.1-py3-none-any.whl', 'ml-2.22.0-py3-none-any.whl', 'ml-2.23.0-py3-none-any.whl', 'ml-2.24.0-py3-none-any.whl', 'ml-2.25.0-py3-none-any.whl', 'ml-2.25.1-py3-none-any.whl', 'ml-2.26.0-py3-none-any.whl', 'ml-2.26.1-py3-none-any.whl', 'ml-2.27.0-py3-none-any.whl', 'ml-2.27.1-py3-none-any.whl', 'ml-2.28.0-py3-none-any.whl', 'ml-2.29.0-py3-none-any.whl', 'ml-2.30.0-py3-none-any.whl', 'ml-2.30.1-py3-none-any.whl', 'ml-2.31.0-py3-none-any.whl', 'ml-2.31.1-py3-none-any.whl', 'ml-2.32.0-py3-none-any.whl', 'ml-2.32.1-py3-none-any.whl', 'ml-2.32.4-py3-none-any.whl', 'ml-2.33.0-py3-none-any.whl', 'ml-2.33.1-py3-none-any.whl', 'ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['ml-2.4.0-py3-none-any.whl', 'ml-2.4.1-py3-none-any.whl', 'ml-2.5.0-py3-none-any.whl', 'ml-2.6.0-py3-none-any.whl', 'ml-2.6.1-py3-none-any.whl', 'ml-2.7.0-py3-none-any.whl', 'ml-2.7.1-py3-none-any.whl', 'ml-2.8.0-py3-none-any.whl', 'ml-2.9.0-py3-none-any.whl', 'ml-2.10.0-py3-none-any.whl', 'ml-2.11.0-py3-none-any.whl', 'ml-2.12.0-py3-none-any.whl', 'ml-2.12.1-py3-none-any.whl', 'ml-2.13.0-py3-none-any.whl', 'ml-2.14.0-py3-none-any.whl', 'ml-2.14.1-py3-none-any.whl', 'ml-2.15.0-py3-none-any.whl', 'ml-2.15.1-py3-none-any.whl', 'ml-2.16.0-py3-none-any.whl', 'ml-2.17.0-py3-none-any.whl', 'ml-2.17.1-py3-none-any.whl', 'ml-2.17.2-py3-none-any.whl', 'ml-2.18.0-py3-none-any.whl', 'ml-2.19.0-py3-none-any.whl', 'ml-2.19.1-py3-none-any.whl', 'ml-2.20.0-py3-none-any.whl', 'ml-2.21.0-py3-none-any.whl', 'ml-2.21.1-py3-none-any.whl', 'ml-2.22.0-py3-none-any.whl', 'ml-2.23.0-py3-none-any.whl', 'ml-2.24.0-py3-none-any.whl', 'ml-2.25.0-py3-none-any.whl', 'ml-2.25.1-py3-none-any.whl', 'ml-2.26.0-py3-none-any.whl', 'ml-2.26.1-py3-none-any.whl', 'ml-2.27.0-py3-none-any.whl', 'ml-2.27.1-py3-none-any.whl', 'ml-2.28.0-py3-none-any.whl', 'ml-2.29.0-py3-none-any.whl', 'ml-2.30.0-py3-none-any.whl', 'ml-2.30.1-py3-none-any.whl', 'ml-2.31.0-py3-none-any.whl', 'ml-2.31.1-py3-none-any.whl', 'ml-2.32.0-py3-none-any.whl', 'ml-2.32.1-py3-none-any.whl', 'ml-2.32.4-py3-none-any.whl', 'ml-2.33.0-py3-none-any.whl', 'ml-2.33.1-py3-none-any.whl', 'ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Chosen {'downloadUrl': 'https://azuremlsdktestpypi.blob.core.windows.net/wheels/sdk-cli-v2-public/ml-2.34.0-py3-none-any.whl', 'filename': 'ml-2.34.0-py3-none-any.whl', 'metadata': {'azext.minCliCoreVersion': '2.15.0', 'classifiers': ['Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'License :: OSI Approved :: MIT License'], 'description_content_type': 'text/x-rst', 'extensions': {'python.details': {'contacts': [{'email': '[email protected]', 'name': 'Microsoft Corporation', 'role': 'author'}], 'document_names': {'description': 'DESCRIPTION.rst'}, 'project_urls': {'Home': 'https://docs.microsoft.com/azure/machine-learning/azure-machine-learning-release-notes-cli-v2?view=azureml-api-2'}}}, 'extras': [], 'generator': 'bdist_wheel (0.30.0)', 'license': 'MIT', 'metadata_version': '2.0', 'name': 'ml', 'run_requires': [{'requires': ['azure-common (>=1.1)', 'azure-common>=1.1', 'azure-identity (==1.17.1)', 'azure-identity==1.17.1', 'azure-mgmt-resource (<23.0.0,>=3.0.0)', 'azure-mgmt-resource<23.0.0,>=3.0.0', 'azure-mgmt-resourcegraph (<9.0.0,>=2.0.0)', 'azure-mgmt-resourcegraph<9.0.0,>=2.0.0', 'azure-monitor-opentelemetry', 'azure-monitor-opentelemetry', 'azure-storage-blob (>=12.10.0)', 'azure-storage-blob>=12.10.0', 'azure-storage-file-datalake (>=12.2.0)', 'azure-storage-file-datalake>=12.2.0', 'azure-storage-file-share', 'azure-storage-file-share', 'colorama', 'colorama', 'cryptography', 'cryptography', 'docker', 'docker', 'isodate', 'isodate', 'jsonschema (>=4.0.0)', 'jsonschema>=4.0.0', 'marshmallow (>=3.5)', 'marshmallow>=3.5', 'pydash (>=6.0.0)', 'pydash>=6.0.0', 'pyjwt', 'pyjwt', 'strictyaml', 'strictyaml', 'tqdm', 'tqdm', 'typing-extensions', 'typing-extensions']}], 'summary': 'Microsoft Azure Command-Line Tools AzureMachineLearningWorkspaces Extension', 'version': '2.34.0'}, 'sha256Digest': 'eb561aa26592de782586f6cd8b9e594be418b12cbbd6b2380c34d1d5b923b99e'}
cli.azure.cli.core.extension.operations: Extension source is url? True
cli.azure.cli.core.extension.operations: Downloading https://azuremlsdktestpypi.blob.core.windows.net/wheels/sdk-cli-v2-public/ml-2.34.0-py3-none-any.whl to C:\Users\sebgros\AppData\Local\Temp\tmpts61ntev\ml-2.34.0-py3-none-any.whl
urllib3.connectionpool: Starting new HTTPS connection (1): azuremlsdktestpypi.blob.core.windows.net:443
urllib3.connectionpool: https://azuremlsdktestpypi.blob.core.windows.net:443 "GET /wheels/sdk-cli-v2-public/ml-2.34.0-py3-none-any.whl HTTP/1.1" 200 12641334
cli.azure.cli.core.extension.operations: Downloaded to C:\Users\sebgros\AppData\Local\Temp\tmpts61ntev\ml-2.34.0-py3-none-any.whl
cli.azure.cli.core.extension.operations: Validating the extension C:\Users\sebgros\AppData\Local\Temp\tmpts61ntev\ml-2.34.0-py3-none-any.whl
cli.azure.cli.core.extension.operations: Checksum of C:\Users\sebgros\AppData\Local\Temp\tmpts61ntev\ml-2.34.0-py3-none-any.whl is OK
cli.azure.cli.core.extension.operations: Validation successful on C:\Users\sebgros\AppData\Local\Temp\tmpts61ntev\ml-2.34.0-py3-none-any.whl
cli.azure.cli.core.extension.operations: Executing pip with args: ['install', '--target', 'C:\Users\sebgros\.azure\cliextensions\ml', 'C:\Users\sebgros\AppData\Local\Temp\tmpts61ntev\ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension.operations: Running: ['C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe', '-m', 'pip', 'install', '--target', 'C:\Users\sebgros\.azure\cliextensions\ml', 'C:\Users\sebgros\AppData\Local\Temp\tmpts61ntev\ml-2.34.0-py3-none-any.whl', '--disable-pip-version-check', '--no-cache-dir']
cli.azure.cli.core.extension.operations: Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_main
.py", line 24, in
sys.exit(main())
^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\main.py", line 78, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\commands_init
.py", line 114, in create_command
module = importlib.import_module(module_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init
.py", line 90, in import_module
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\commands\install.py", line 19, in
import pip._internal.self_outdated_check # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\self_outdated_check.py", line 19, in
from pip._internal.index.package_finder import PackageFinder
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\index\package_finder.py", line 31, in
from pip.internal.req import InstallRequirement
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\req_init
.py", line 9, in
from .req_install import InstallRequirement
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\req\req_install.py", line 40, in
from pip._internal.operations.install.wheel import install_wheel
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\install\wheel.py", line 40, in
from pip._vendor.distlib.scripts import ScriptMaker
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\distlib\scripts.py", line 16, in
from .compat import sysconfig, detect_encoding, ZipFile
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\distlib\compat.py", line 81, in
import xmlrpc.client as xmlrpclib
File "xmlrpc\client.py", line 138, in
File "xml\parsers\expat.py", line 4, in
ImportError: DLL load failed while importing pyexpat: The specified module could not be found.

cli.azure.cli.core.extension.operations: Command '['C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe', '-m', 'pip', 'install', '--target', 'C:\Users\sebgros\.azure\cliextensions\ml', 'C:\Users\sebgros\AppData\Local\Temp\tmpts61ntev\ml-2.34.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 C:\Users\sebgros.azure\cliextensions\ml
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 666, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 703, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 336, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 120, in handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/extension/custom.py", line 16, in add_extension_cmd
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 343, in add_extension
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 172, in _add_whl_ext
knack.util.CLIError: An error occurred. Pip failed with status code 1. Use --debug for more information.

cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 1. Use --debug for more information.
az_command_data_logger: An error occurred. Pip failed with status code 1. Use --debug for more information.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0000015E6C1F60C0>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 11.762 seconds (init: 0.580, invoke: 11.182)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3837 in cache file under C:\Users\sebgros.azure\telemetry\20250212185319297
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init_.pyc C:\Users\sebgros.azure C:\Users\sebgros.azure\telemetry\20250212185319297"
telemetry.process: Return from creating process 8460
telemetry.main: Finish creating telemetry upload process.
PS C:\Users\sebgros> az extension add --name ml
An error occurred. Pip failed with status code 1. Use --debug for more information.
PS C:\Users\sebgros> az extension add --name ml --debug
cli.knack.cli: Command arguments: ['extension', 'add', '--name', 'ml', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x000002185B71B1A0>, <function OutputProducer.on_global_arguments at 0x000002185BABC040>, <function CLIQuery.on_global_arguments at 0x000002185BAE1440>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'extension': ['azure.cli.command_modules.extension']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: extension 0.008 1 7
cli.azure.cli.core: Total (1) 0.008 1 7
cli.azure.cli.core: Loaded 1 groups, 7 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : extension add
cli.azure.cli.core: Command table: extension add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x000002185DD75E40>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\sebgros.azure\commands\2025-02-12.18-58-10.extension_add.10556.log'.
az_command_data_logger: command args: extension add --name {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x000002185DDC31A0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x000002185DE1D580>, <function register_cache_arguments..add_cache_arguments at 0x000002185DE1D6C0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x000002185DE1D760>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x000002185BABC0E0>, <function CLIQuery.handle_query_parameter at 0x000002185BAE14E0>, <function register_ids_argument..parse_ids_arguments at 0x000002185DE1D620>]
urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443
urllib3.connectionpool: https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0
urllib3.connectionpool: Starting new HTTPS connection (1): azcliextensionsync.blob.core.windows.net:443
urllib3.connectionpool: https://azcliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1" 200 4901950
cli.azure.cli.core.extension._resolve: Candidates ['ml-2.0.0a1-py3-none-any.whl', 'ml-2.0.1a1-py3-none-any.whl', 'ml-2.0.1a2-py3-none-any.whl', 'ml-2.0.1a3-py3-none-any.whl', 'ml-2.0.1a4-py3-none-any.whl', 'ml-2.0.1a5-py3-none-any.whl', 'ml-2.0.2-py3-none-any.whl', 'ml-2.0.3-py3-none-any.whl', 'ml-2.0.7-py3-none-any.whl', 'ml-2.1.1-py3-none-any.whl', 'ml-2.1.2-py3-none-any.whl', 'ml-2.2.1-py3-none-any.whl', 'ml-2.2.2-py3-none-any.whl', 'ml-2.2.3-py3-none-any.whl', 'ml-2.3.1-py3-none-any.whl', 'ml-2.4.0-py3-none-any.whl', 'ml-2.4.1-py3-none-any.whl', 'ml-2.5.0-py3-none-any.whl', 'ml-2.6.0-py3-none-any.whl', 'ml-2.6.1-py3-none-any.whl', 'ml-2.7.0-py3-none-any.whl', 'ml-2.7.1-py3-none-any.whl', 'ml-2.8.0-py3-none-any.whl', 'ml-2.9.0-py3-none-any.whl', 'ml-2.10.0-py3-none-any.whl', 'ml-2.11.0-py3-none-any.whl', 'ml-2.12.0-py3-none-any.whl', 'ml-2.12.1-py3-none-any.whl', 'ml-2.13.0-py3-none-any.whl', 'ml-2.14.0-py3-none-any.whl', 'ml-2.14.1-py3-none-any.whl', 'ml-2.15.0-py3-none-any.whl', 'ml-2.15.1-py3-none-any.whl', 'ml-2.16.0-py3-none-any.whl', 'ml-2.17.0-py3-none-any.whl', 'ml-2.17.1-py3-none-any.whl', 'ml-2.17.2-py3-none-any.whl', 'ml-2.18.0-py3-none-any.whl', 'ml-2.19.0-py3-none-any.whl', 'ml-2.19.1-py3-none-any.whl', 'ml-2.20.0-py3-none-any.whl', 'ml-2.21.0-py3-none-any.whl', 'ml-2.21.1-py3-none-any.whl', 'ml-2.22.0-py3-none-any.whl', 'ml-2.23.0-py3-none-any.whl', 'ml-2.24.0-py3-none-any.whl', 'ml-2.25.0-py3-none-any.whl', 'ml-2.25.1-py3-none-any.whl', 'ml-2.26.0-py3-none-any.whl', 'ml-2.26.1-py3-none-any.whl', 'ml-2.27.0-py3-none-any.whl', 'ml-2.27.1-py3-none-any.whl', 'ml-2.28.0-py3-none-any.whl', 'ml-2.29.0-py3-none-any.whl', 'ml-2.30.0-py3-none-any.whl', 'ml-2.30.1-py3-none-any.whl', 'ml-2.31.0-py3-none-any.whl', 'ml-2.31.1-py3-none-any.whl', 'ml-2.32.0-py3-none-any.whl', 'ml-2.32.1-py3-none-any.whl', 'ml-2.32.4-py3-none-any.whl', 'ml-2.33.0-py3-none-any.whl', 'ml-2.33.1-py3-none-any.whl', 'ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['ml-2.0.0a1-py3-none-any.whl', 'ml-2.0.1a1-py3-none-any.whl', 'ml-2.0.1a2-py3-none-any.whl', 'ml-2.0.1a3-py3-none-any.whl', 'ml-2.0.1a4-py3-none-any.whl', 'ml-2.0.1a5-py3-none-any.whl', 'ml-2.0.2-py3-none-any.whl', 'ml-2.0.3-py3-none-any.whl', 'ml-2.0.7-py3-none-any.whl', 'ml-2.1.1-py3-none-any.whl', 'ml-2.1.2-py3-none-any.whl', 'ml-2.2.1-py3-none-any.whl', 'ml-2.2.2-py3-none-any.whl', 'ml-2.2.3-py3-none-any.whl', 'ml-2.3.1-py3-none-any.whl', 'ml-2.4.0-py3-none-any.whl', 'ml-2.4.1-py3-none-any.whl', 'ml-2.5.0-py3-none-any.whl', 'ml-2.6.0-py3-none-any.whl', 'ml-2.6.1-py3-none-any.whl', 'ml-2.7.0-py3-none-any.whl', 'ml-2.7.1-py3-none-any.whl', 'ml-2.8.0-py3-none-any.whl', 'ml-2.9.0-py3-none-any.whl', 'ml-2.10.0-py3-none-any.whl', 'ml-2.11.0-py3-none-any.whl', 'ml-2.12.0-py3-none-any.whl', 'ml-2.12.1-py3-none-any.whl', 'ml-2.13.0-py3-none-any.whl', 'ml-2.14.0-py3-none-any.whl', 'ml-2.14.1-py3-none-any.whl', 'ml-2.15.0-py3-none-any.whl', 'ml-2.15.1-py3-none-any.whl', 'ml-2.16.0-py3-none-any.whl', 'ml-2.17.0-py3-none-any.whl', 'ml-2.17.1-py3-none-any.whl', 'ml-2.17.2-py3-none-any.whl', 'ml-2.18.0-py3-none-any.whl', 'ml-2.19.0-py3-none-any.whl', 'ml-2.19.1-py3-none-any.whl', 'ml-2.20.0-py3-none-any.whl', 'ml-2.21.0-py3-none-any.whl', 'ml-2.21.1-py3-none-any.whl', 'ml-2.22.0-py3-none-any.whl', 'ml-2.23.0-py3-none-any.whl', 'ml-2.24.0-py3-none-any.whl', 'ml-2.25.0-py3-none-any.whl', 'ml-2.25.1-py3-none-any.whl', 'ml-2.26.0-py3-none-any.whl', 'ml-2.26.1-py3-none-any.whl', 'ml-2.27.0-py3-none-any.whl', 'ml-2.27.1-py3-none-any.whl', 'ml-2.28.0-py3-none-any.whl', 'ml-2.29.0-py3-none-any.whl', 'ml-2.30.0-py3-none-any.whl', 'ml-2.30.1-py3-none-any.whl', 'ml-2.31.0-py3-none-any.whl', 'ml-2.31.1-py3-none-any.whl', 'ml-2.32.0-py3-none-any.whl', 'ml-2.32.1-py3-none-any.whl', 'ml-2.32.4-py3-none-any.whl', 'ml-2.33.0-py3-none-any.whl', 'ml-2.33.1-py3-none-any.whl', 'ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['ml-2.4.0-py3-none-any.whl', 'ml-2.4.1-py3-none-any.whl', 'ml-2.5.0-py3-none-any.whl', 'ml-2.6.0-py3-none-any.whl', 'ml-2.6.1-py3-none-any.whl', 'ml-2.7.0-py3-none-any.whl', 'ml-2.7.1-py3-none-any.whl', 'ml-2.8.0-py3-none-any.whl', 'ml-2.9.0-py3-none-any.whl', 'ml-2.10.0-py3-none-any.whl', 'ml-2.11.0-py3-none-any.whl', 'ml-2.12.0-py3-none-any.whl', 'ml-2.12.1-py3-none-any.whl', 'ml-2.13.0-py3-none-any.whl', 'ml-2.14.0-py3-none-any.whl', 'ml-2.14.1-py3-none-any.whl', 'ml-2.15.0-py3-none-any.whl', 'ml-2.15.1-py3-none-any.whl', 'ml-2.16.0-py3-none-any.whl', 'ml-2.17.0-py3-none-any.whl', 'ml-2.17.1-py3-none-any.whl', 'ml-2.17.2-py3-none-any.whl', 'ml-2.18.0-py3-none-any.whl', 'ml-2.19.0-py3-none-any.whl', 'ml-2.19.1-py3-none-any.whl', 'ml-2.20.0-py3-none-any.whl', 'ml-2.21.0-py3-none-any.whl', 'ml-2.21.1-py3-none-any.whl', 'ml-2.22.0-py3-none-any.whl', 'ml-2.23.0-py3-none-any.whl', 'ml-2.24.0-py3-none-any.whl', 'ml-2.25.0-py3-none-any.whl', 'ml-2.25.1-py3-none-any.whl', 'ml-2.26.0-py3-none-any.whl', 'ml-2.26.1-py3-none-any.whl', 'ml-2.27.0-py3-none-any.whl', 'ml-2.27.1-py3-none-any.whl', 'ml-2.28.0-py3-none-any.whl', 'ml-2.29.0-py3-none-any.whl', 'ml-2.30.0-py3-none-any.whl', 'ml-2.30.1-py3-none-any.whl', 'ml-2.31.0-py3-none-any.whl', 'ml-2.31.1-py3-none-any.whl', 'ml-2.32.0-py3-none-any.whl', 'ml-2.32.1-py3-none-any.whl', 'ml-2.32.4-py3-none-any.whl', 'ml-2.33.0-py3-none-any.whl', 'ml-2.33.1-py3-none-any.whl', 'ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['ml-2.4.0-py3-none-any.whl', 'ml-2.4.1-py3-none-any.whl', 'ml-2.5.0-py3-none-any.whl', 'ml-2.6.0-py3-none-any.whl', 'ml-2.6.1-py3-none-any.whl', 'ml-2.7.0-py3-none-any.whl', 'ml-2.7.1-py3-none-any.whl', 'ml-2.8.0-py3-none-any.whl', 'ml-2.9.0-py3-none-any.whl', 'ml-2.10.0-py3-none-any.whl', 'ml-2.11.0-py3-none-any.whl', 'ml-2.12.0-py3-none-any.whl', 'ml-2.12.1-py3-none-any.whl', 'ml-2.13.0-py3-none-any.whl', 'ml-2.14.0-py3-none-any.whl', 'ml-2.14.1-py3-none-any.whl', 'ml-2.15.0-py3-none-any.whl', 'ml-2.15.1-py3-none-any.whl', 'ml-2.16.0-py3-none-any.whl', 'ml-2.17.0-py3-none-any.whl', 'ml-2.17.1-py3-none-any.whl', 'ml-2.17.2-py3-none-any.whl', 'ml-2.18.0-py3-none-any.whl', 'ml-2.19.0-py3-none-any.whl', 'ml-2.19.1-py3-none-any.whl', 'ml-2.20.0-py3-none-any.whl', 'ml-2.21.0-py3-none-any.whl', 'ml-2.21.1-py3-none-any.whl', 'ml-2.22.0-py3-none-any.whl', 'ml-2.23.0-py3-none-any.whl', 'ml-2.24.0-py3-none-any.whl', 'ml-2.25.0-py3-none-any.whl', 'ml-2.25.1-py3-none-any.whl', 'ml-2.26.0-py3-none-any.whl', 'ml-2.26.1-py3-none-any.whl', 'ml-2.27.0-py3-none-any.whl', 'ml-2.27.1-py3-none-any.whl', 'ml-2.28.0-py3-none-any.whl', 'ml-2.29.0-py3-none-any.whl', 'ml-2.30.0-py3-none-any.whl', 'ml-2.30.1-py3-none-any.whl', 'ml-2.31.0-py3-none-any.whl', 'ml-2.31.1-py3-none-any.whl', 'ml-2.32.0-py3-none-any.whl', 'ml-2.32.1-py3-none-any.whl', 'ml-2.32.4-py3-none-any.whl', 'ml-2.33.0-py3-none-any.whl', 'ml-2.33.1-py3-none-any.whl', 'ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['ml-2.4.0-py3-none-any.whl', 'ml-2.4.1-py3-none-any.whl', 'ml-2.5.0-py3-none-any.whl', 'ml-2.6.0-py3-none-any.whl', 'ml-2.6.1-py3-none-any.whl', 'ml-2.7.0-py3-none-any.whl', 'ml-2.7.1-py3-none-any.whl', 'ml-2.8.0-py3-none-any.whl', 'ml-2.9.0-py3-none-any.whl', 'ml-2.10.0-py3-none-any.whl', 'ml-2.11.0-py3-none-any.whl', 'ml-2.12.0-py3-none-any.whl', 'ml-2.12.1-py3-none-any.whl', 'ml-2.13.0-py3-none-any.whl', 'ml-2.14.0-py3-none-any.whl', 'ml-2.14.1-py3-none-any.whl', 'ml-2.15.0-py3-none-any.whl', 'ml-2.15.1-py3-none-any.whl', 'ml-2.16.0-py3-none-any.whl', 'ml-2.17.0-py3-none-any.whl', 'ml-2.17.1-py3-none-any.whl', 'ml-2.17.2-py3-none-any.whl', 'ml-2.18.0-py3-none-any.whl', 'ml-2.19.0-py3-none-any.whl', 'ml-2.19.1-py3-none-any.whl', 'ml-2.20.0-py3-none-any.whl', 'ml-2.21.0-py3-none-any.whl', 'ml-2.21.1-py3-none-any.whl', 'ml-2.22.0-py3-none-any.whl', 'ml-2.23.0-py3-none-any.whl', 'ml-2.24.0-py3-none-any.whl', 'ml-2.25.0-py3-none-any.whl', 'ml-2.25.1-py3-none-any.whl', 'ml-2.26.0-py3-none-any.whl', 'ml-2.26.1-py3-none-any.whl', 'ml-2.27.0-py3-none-any.whl', 'ml-2.27.1-py3-none-any.whl', 'ml-2.28.0-py3-none-any.whl', 'ml-2.29.0-py3-none-any.whl', 'ml-2.30.0-py3-none-any.whl', 'ml-2.30.1-py3-none-any.whl', 'ml-2.31.0-py3-none-any.whl', 'ml-2.31.1-py3-none-any.whl', 'ml-2.32.0-py3-none-any.whl', 'ml-2.32.1-py3-none-any.whl', 'ml-2.32.4-py3-none-any.whl', 'ml-2.33.0-py3-none-any.whl', 'ml-2.33.1-py3-none-any.whl', 'ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Chosen {'downloadUrl': 'https://azuremlsdktestpypi.blob.core.windows.net/wheels/sdk-cli-v2-public/ml-2.34.0-py3-none-any.whl', 'filename': 'ml-2.34.0-py3-none-any.whl', 'metadata': {'azext.minCliCoreVersion': '2.15.0', 'classifiers': ['Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'License :: OSI Approved :: MIT License'], 'description_content_type': 'text/x-rst', 'extensions': {'python.details': {'contacts': [{'email': '[email protected]', 'name': 'Microsoft Corporation', 'role': 'author'}], 'document_names': {'description': 'DESCRIPTION.rst'}, 'project_urls': {'Home': 'https://docs.microsoft.com/azure/machine-learning/azure-machine-learning-release-notes-cli-v2?view=azureml-api-2'}}}, 'extras': [], 'generator': 'bdist_wheel (0.30.0)', 'license': 'MIT', 'metadata_version': '2.0', 'name': 'ml', 'run_requires': [{'requires': ['azure-common (>=1.1)', 'azure-common>=1.1', 'azure-identity (==1.17.1)', 'azure-identity==1.17.1', 'azure-mgmt-resource (<23.0.0,>=3.0.0)', 'azure-mgmt-resource<23.0.0,>=3.0.0', 'azure-mgmt-resourcegraph (<9.0.0,>=2.0.0)', 'azure-mgmt-resourcegraph<9.0.0,>=2.0.0', 'azure-monitor-opentelemetry', 'azure-monitor-opentelemetry', 'azure-storage-blob (>=12.10.0)', 'azure-storage-blob>=12.10.0', 'azure-storage-file-datalake (>=12.2.0)', 'azure-storage-file-datalake>=12.2.0', 'azure-storage-file-share', 'azure-storage-file-share', 'colorama', 'colorama', 'cryptography', 'cryptography', 'docker', 'docker', 'isodate', 'isodate', 'jsonschema (>=4.0.0)', 'jsonschema>=4.0.0', 'marshmallow (>=3.5)', 'marshmallow>=3.5', 'pydash (>=6.0.0)', 'pydash>=6.0.0', 'pyjwt', 'pyjwt', 'strictyaml', 'strictyaml', 'tqdm', 'tqdm', 'typing-extensions', 'typing-extensions']}], 'summary': 'Microsoft Azure Command-Line Tools AzureMachineLearningWorkspaces Extension', 'version': '2.34.0'}, 'sha256Digest': 'eb561aa26592de782586f6cd8b9e594be418b12cbbd6b2380c34d1d5b923b99e'}
cli.azure.cli.core.extension.operations: Extension source is url? True
cli.azure.cli.core.extension.operations: Downloading https://azuremlsdktestpypi.blob.core.windows.net/wheels/sdk-cli-v2-public/ml-2.34.0-py3-none-any.whl to C:\Users\sebgros\AppData\Local\Temp\tmpwzpilijb\ml-2.34.0-py3-none-any.whl
urllib3.connectionpool: Starting new HTTPS connection (1): azuremlsdktestpypi.blob.core.windows.net:443
urllib3.connectionpool: https://azuremlsdktestpypi.blob.core.windows.net:443 "GET /wheels/sdk-cli-v2-public/ml-2.34.0-py3-none-any.whl HTTP/1.1" 200 12641334
cli.azure.cli.core.extension.operations: Downloaded to C:\Users\sebgros\AppData\Local\Temp\tmpwzpilijb\ml-2.34.0-py3-none-any.whl
cli.azure.cli.core.extension.operations: Validating the extension C:\Users\sebgros\AppData\Local\Temp\tmpwzpilijb\ml-2.34.0-py3-none-any.whl
cli.azure.cli.core.extension.operations: Checksum of C:\Users\sebgros\AppData\Local\Temp\tmpwzpilijb\ml-2.34.0-py3-none-any.whl is OK
cli.azure.cli.core.extension.operations: Validation successful on C:\Users\sebgros\AppData\Local\Temp\tmpwzpilijb\ml-2.34.0-py3-none-any.whl
cli.azure.cli.core.extension.operations: Executing pip with args: ['install', '--target', 'C:\Users\sebgros\.azure\cliextensions\ml', 'C:\Users\sebgros\AppData\Local\Temp\tmpwzpilijb\ml-2.34.0-py3-none-any.whl']
cli.azure.cli.core.extension.operations: Running: ['C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe', '-m', 'pip', 'install', '--target', 'C:\Users\sebgros\.azure\cliextensions\ml', 'C:\Users\sebgros\AppData\Local\Temp\tmpwzpilijb\ml-2.34.0-py3-none-any.whl', '--disable-pip-version-check', '--no-cache-dir']
cli.azure.cli.core.extension.operations: Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_main
.py", line 24, in
sys.exit(main())
^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\main.py", line 78, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\commands_init
.py", line 114, in create_command
module = importlib.import_module(module_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init
.py", line 90, in import_module
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\commands\install.py", line 19, in
import pip._internal.self_outdated_check # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\self_outdated_check.py", line 19, in
from pip._internal.index.package_finder import PackageFinder
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\index\package_finder.py", line 31, in
from pip.internal.req import InstallRequirement
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\req_init
.py", line 9, in
from .req_install import InstallRequirement
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\req\req_install.py", line 40, in
from pip._internal.operations.install.wheel import install_wheel
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\install\wheel.py", line 40, in
from pip._vendor.distlib.scripts import ScriptMaker
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\distlib\scripts.py", line 16, in
from .compat import sysconfig, detect_encoding, ZipFile
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\distlib\compat.py", line 81, in
import xmlrpc.client as xmlrpclib
File "xmlrpc\client.py", line 138, in
File "xml\parsers\expat.py", line 4, in
ImportError: DLL load failed while importing pyexpat: The specified module could not be found.

cli.azure.cli.core.extension.operations: Command '['C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe', '-m', 'pip', 'install', '--target', 'C:\Users\sebgros\.azure\cliextensions\ml', 'C:\Users\sebgros\AppData\Local\Temp\tmpwzpilijb\ml-2.34.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 C:\Users\sebgros.azure\cliextensions\ml
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 666, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 703, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 336, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 120, in handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/extension/custom.py", line 16, in add_extension_cmd
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 343, in add_extension
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 172, in _add_whl_ext
knack.util.CLIError: An error occurred. Pip failed with status code 1. Use --debug for more information.

cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 1. Use --debug for more information.
az_command_data_logger: An error occurred. Pip failed with status code 1. Use --debug for more information.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x000002185DD760C0>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 21.862 seconds (init: 0.722, invoke: 21.140)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3837 in cache file under C:\Users\sebgros.azure\telemetry\20250212185831647
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init_.pyc C:\Users\sebgros.azure C:\Users\sebgros.azure\telemetry\20250212185831647"
telemetry.process: Return from creating process 23360
telemetry.main: Finish creating telemetry upload process.

Expected behavior

expect to have azure ml extension installed

Environment Summary

{
"azure-cli": "2.69.0",
"azure-cli-core": "2.69.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}

Additional context

No response

@sebgros-ms sebgros-ms added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Feb 12, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 12, 2025

Thank you for opening this issue, we will look into it.

Copy link

Here are some similar issues that might help you. Please check if they can solve your problem.


Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

Solution 1:

Uninstall Python and try running the command again. This may resolve conflicts because the Azure CLI has an internal Python that might not be compatible with other installed versions.

Reference:

Solution 2:

Check your SSL certificate or proxy settings. This might be causing connection issues to pypi.org while downloading dependencies with the underlying pip install command.

Reference:

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Service Attention This issue is responsible by Azure service team. Machine Learning az ml labels Feb 12, 2025
@sebgros-ms
Copy link
Author

Tried Solution 1 : I unistalled python => no luck => same error
Solution 2 : Not apply => not behind a proxy

@bebound
Copy link
Contributor

bebound commented Feb 14, 2025

Duplicate of #29892
I assume one of ml's dependency does not provide wheel package.

@azureml-github for awareness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning az ml Possible-Solution Service Attention This issue is responsible by Azure service team. Similar-Issue
Projects
None yet
Development

No branches or pull requests

3 participants