Command:
az extension add containerapp
root issue:
pip broken (see source error)
Error:
cli.knack.cli: Command arguments: ['extension', 'add', '-n', 'containerapp', '--allow-preview', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
Enable VT mode.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x000001F069DA71A0>, <function OutputProducer.on_global_arguments at 0x000001F06A14C040>, <function CLIQuery.on_global_arguments at 0x000001F06A171440>]
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.006 1 7
cli.azure.cli.core: Total (1) 0.006 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 0x000001F06C389DA0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\philt.azure\commands\2025-01-20.11-31-22.extension_add.24196.log'.
az_command_data_logger: command args: extension add -n {} --allow-preview --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x000001F06C3D3100>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x000001F06C4014E0>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x000001F06C401620>, <function register_upcoming_breaking_change_info.<locals>.update_breaking_change_info at 0x000001F06C4016C0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x000001F06A14C0E0>, <function CLIQuery.handle_query_parameter at 0x000001F06A1714E0>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x000001F06C401580>]
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 4867126
cli.azure.cli.core.extension._resolve: Candidates ['containerapp-0.1.0-py2.py3-none-any.whl', 'containerapp-0.3.0-py2.py3-none-any.whl', 'containerapp-0.3.1-py2.py3-none-any.whl', 'containerapp-0.3.2-py2.py3-none-any.whl', 'containerapp-0.3.3-py2.py3-none-any.whl', 'containerapp-0.3.4-py2.py3-none-any.whl', 'containerapp-0.3.5-py2.py3-none-any.whl', 'containerapp-0.3.6-py2.py3-none-any.whl', 'containerapp-0.3.7-py2.py3-none-any.whl', 'containerapp-0.3.8-py2.py3-none-any.whl', 'containerapp-0.3.9-py2.py3-none-any.whl', 'containerapp-0.3.10-py2.py3-none-any.whl', 'containerapp-0.3.11-py2.py3-none-any.whl', 'containerapp-0.3.12-py2.py3-none-any.whl', 'containerapp-0.3.13-py2.py3-none-any.whl', 'containerapp-0.3.14-py2.py3-none-any.whl', 'containerapp-0.3.15-py2.py3-none-any.whl', 'containerapp-0.3.16-py2.py3-none-any.whl', 'containerapp-0.3.17-py2.py3-none-any.whl', 'containerapp-0.3.18-py2.py3-none-any.whl', 'containerapp-0.3.19-py2.py3-none-any.whl', 'containerapp-0.3.20-py2.py3-none-any.whl', 'containerapp-0.3.21-py2.py3-none-any.whl', 'containerapp-0.3.23-py2.py3-none-any.whl', 'containerapp-0.3.24-py2.py3-none-any.whl', 'containerapp-0.3.25-py2.py3-none-any.whl', 'containerapp-0.3.26-py2.py3-none-any.whl', 'containerapp-0.3.27-py2.py3-none-any.whl', 'containerapp-0.3.28-py2.py3-none-any.whl', 'containerapp-0.3.29-py2.py3-none-any.whl', 'containerapp-0.3.30-py2.py3-none-any.whl', 'containerapp-0.3.31-py2.py3-none-any.whl', 'containerapp-0.3.32-py2.py3-none-any.whl', 'containerapp-0.3.33-py2.py3-none-any.whl', 'containerapp-0.3.34-py2.py3-none-any.whl', 'containerapp-0.3.35-py2.py3-none-any.whl', 'containerapp-0.3.36-py2.py3-none-any.whl', 'containerapp-0.3.37-py2.py3-none-any.whl', 'containerapp-0.3.38-py2.py3-none-any.whl', 'containerapp-0.3.39-py2.py3-none-any.whl', 'containerapp-0.3.40-py2.py3-none-any.whl', 'containerapp-0.3.41-py2.py3-none-any.whl', 'containerapp-0.3.42-py2.py3-none-any.whl', 'containerapp-0.3.43-py2.py3-none-any.whl', 'containerapp-0.3.44-py2.py3-none-any.whl', 'containerapp-0.3.45-py2.py3-none-any.whl', 'containerapp-0.3.46-py2.py3-none-any.whl', 'containerapp-0.3.47-py2.py3-none-any.whl', 'containerapp-0.3.48-py2.py3-none-any.whl', 'containerapp-0.3.49-py2.py3-none-any.whl', 'containerapp-0.3.50-py2.py3-none-any.whl', 'containerapp-0.3.51-py2.py3-none-any.whl', 'containerapp-0.3.52-py2.py3-none-any.whl', 'containerapp-0.3.53-py2.py3-none-any.whl', 'containerapp-0.3.54-py2.py3-none-any.whl', 'containerapp-0.3.55-py2.py3-none-any.whl', 'containerapp-1.0.0b1-py2.py3-none-any.whl', 'containerapp-1.0.0b2-py2.py3-none-any.whl', 'containerapp-1.0.0b3-py2.py3-none-any.whl', 'containerapp-1.0.0b4-py2.py3-none-any.whl', 'containerapp-1.1.0b1-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['containerapp-0.1.0-py2.py3-none-any.whl', 'containerapp-0.3.0-py2.py3-none-any.whl', 'containerapp-0.3.1-py2.py3-none-any.whl', 'containerapp-0.3.2-py2.py3-none-any.whl', 'containerapp-0.3.3-py2.py3-none-any.whl', 'containerapp-0.3.4-py2.py3-none-any.whl', 'containerapp-0.3.5-py2.py3-none-any.whl', 'containerapp-0.3.6-py2.py3-none-any.whl', 'containerapp-0.3.7-py2.py3-none-any.whl', 'containerapp-0.3.8-py2.py3-none-any.whl', 'containerapp-0.3.9-py2.py3-none-any.whl', 'containerapp-0.3.10-py2.py3-none-any.whl', 'containerapp-0.3.11-py2.py3-none-any.whl', 'containerapp-0.3.12-py2.py3-none-any.whl', 'containerapp-0.3.13-py2.py3-none-any.whl', 'containerapp-0.3.14-py2.py3-none-any.whl', 'containerapp-0.3.15-py2.py3-none-any.whl', 'containerapp-0.3.16-py2.py3-none-any.whl', 'containerapp-0.3.17-py2.py3-none-any.whl', 'containerapp-0.3.18-py2.py3-none-any.whl', 'containerapp-0.3.19-py2.py3-none-any.whl', 'containerapp-0.3.20-py2.py3-none-any.whl', 'containerapp-0.3.21-py2.py3-none-any.whl', 'containerapp-0.3.23-py2.py3-none-any.whl', 'containerapp-0.3.24-py2.py3-none-any.whl', 'containerapp-0.3.25-py2.py3-none-any.whl', 'containerapp-0.3.26-py2.py3-none-any.whl', 'containerapp-0.3.27-py2.py3-none-any.whl', 'containerapp-0.3.28-py2.py3-none-any.whl', 'containerapp-0.3.29-py2.py3-none-any.whl', 'containerapp-0.3.30-py2.py3-none-any.whl', 'containerapp-0.3.31-py2.py3-none-any.whl', 'containerapp-0.3.32-py2.py3-none-any.whl', 'containerapp-0.3.33-py2.py3-none-any.whl', 'containerapp-0.3.34-py2.py3-none-any.whl', 'containerapp-0.3.35-py2.py3-none-any.whl', 'containerapp-0.3.36-py2.py3-none-any.whl', 'containerapp-0.3.37-py2.py3-none-any.whl', 'containerapp-0.3.38-py2.py3-none-any.whl', 'containerapp-0.3.39-py2.py3-none-any.whl', 'containerapp-0.3.40-py2.py3-none-any.whl', 'containerapp-0.3.41-py2.py3-none-any.whl', 'containerapp-0.3.42-py2.py3-none-any.whl', 'containerapp-0.3.43-py2.py3-none-any.whl', 'containerapp-0.3.44-py2.py3-none-any.whl', 'containerapp-0.3.45-py2.py3-none-any.whl', 'containerapp-0.3.46-py2.py3-none-any.whl', 'containerapp-0.3.47-py2.py3-none-any.whl', 'containerapp-0.3.48-py2.py3-none-any.whl', 'containerapp-0.3.49-py2.py3-none-any.whl', 'containerapp-0.3.50-py2.py3-none-any.whl', 'containerapp-0.3.51-py2.py3-none-any.whl', 'containerapp-0.3.52-py2.py3-none-any.whl', 'containerapp-0.3.53-py2.py3-none-any.whl', 'containerapp-0.3.54-py2.py3-none-any.whl', 'containerapp-0.3.55-py2.py3-none-any.whl', 'containerapp-1.0.0b1-py2.py3-none-any.whl', 'containerapp-1.0.0b2-py2.py3-none-any.whl', 'containerapp-1.0.0b3-py2.py3-none-any.whl', 'containerapp-1.0.0b4-py2.py3-none-any.whl', 'containerapp-1.1.0b1-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['containerapp-0.1.0-py2.py3-none-any.whl', 'containerapp-0.3.0-py2.py3-none-any.whl', 'containerapp-0.3.1-py2.py3-none-any.whl', 'containerapp-0.3.2-py2.py3-none-any.whl', 'containerapp-0.3.3-py2.py3-none-any.whl', 'containerapp-0.3.4-py2.py3-none-any.whl', 'containerapp-0.3.5-py2.py3-none-any.whl', 'containerapp-0.3.6-py2.py3-none-any.whl', 'containerapp-0.3.7-py2.py3-none-any.whl', 'containerapp-0.3.8-py2.py3-none-any.whl', 'containerapp-0.3.9-py2.py3-none-any.whl', 'containerapp-0.3.10-py2.py3-none-any.whl', 'containerapp-0.3.11-py2.py3-none-any.whl', 'containerapp-0.3.12-py2.py3-none-any.whl', 'containerapp-0.3.13-py2.py3-none-any.whl', 'containerapp-0.3.14-py2.py3-none-any.whl', 'containerapp-0.3.15-py2.py3-none-any.whl', 'containerapp-0.3.16-py2.py3-none-any.whl', 'containerapp-0.3.17-py2.py3-none-any.whl', 'containerapp-0.3.18-py2.py3-none-any.whl', 'containerapp-0.3.19-py2.py3-none-any.whl', 'containerapp-0.3.20-py2.py3-none-any.whl', 'containerapp-0.3.21-py2.py3-none-any.whl', 'containerapp-0.3.23-py2.py3-none-any.whl', 'containerapp-0.3.24-py2.py3-none-any.whl', 'containerapp-0.3.25-py2.py3-none-any.whl', 'containerapp-0.3.26-py2.py3-none-any.whl', 'containerapp-0.3.27-py2.py3-none-any.whl', 'containerapp-0.3.28-py2.py3-none-any.whl', 'containerapp-0.3.29-py2.py3-none-any.whl', 'containerapp-0.3.30-py2.py3-none-any.whl', 'containerapp-0.3.31-py2.py3-none-any.whl', 'containerapp-0.3.32-py2.py3-none-any.whl', 'containerapp-0.3.33-py2.py3-none-any.whl', 'containerapp-0.3.34-py2.py3-none-any.whl', 'containerapp-0.3.35-py2.py3-none-any.whl', 'containerapp-0.3.36-py2.py3-none-any.whl', 'containerapp-0.3.37-py2.py3-none-any.whl', 'containerapp-0.3.38-py2.py3-none-any.whl', 'containerapp-0.3.39-py2.py3-none-any.whl', 'containerapp-0.3.40-py2.py3-none-any.whl', 'containerapp-0.3.41-py2.py3-none-any.whl', 'containerapp-0.3.42-py2.py3-none-any.whl', 'containerapp-0.3.43-py2.py3-none-any.whl', 'containerapp-0.3.44-py2.py3-none-any.whl', 'containerapp-0.3.45-py2.py3-none-any.whl', 'containerapp-0.3.46-py2.py3-none-any.whl', 'containerapp-0.3.47-py2.py3-none-any.whl', 'containerapp-0.3.48-py2.py3-none-any.whl', 'containerapp-0.3.49-py2.py3-none-any.whl', 'containerapp-0.3.50-py2.py3-none-any.whl', 'containerapp-0.3.51-py2.py3-none-any.whl', 'containerapp-0.3.52-py2.py3-none-any.whl', 'containerapp-0.3.53-py2.py3-none-any.whl', 'containerapp-0.3.54-py2.py3-none-any.whl', 'containerapp-0.3.55-py2.py3-none-any.whl', 'containerapp-1.0.0b1-py2.py3-none-any.whl', 'containerapp-1.0.0b2-py2.py3-none-any.whl', 'containerapp-1.0.0b3-py2.py3-none-any.whl', 'containerapp-1.0.0b4-py2.py3-none-any.whl', 'containerapp-1.1.0b1-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Skipping 'containerapp-0.3.2-py2.py3-none-any.whl' as not compatible with this version of the CLI. Extension compatibility result: is_compatible=False cli_core_version=2.68.0 ext_version=0.3.2 min_core_required=2.15.0 max_core_required=2.36.0 min_ext_required=None
cli.azure.cli.core.extension._resolve: Skipping 'containerapp-0.3.3-py2.py3-none-any.whl' as not compatible with this version of the CLI. Extension compatibility result: is_compatible=False cli_core_version=2.68.0 ext_version=0.3.3 min_core_required=2.15.0 max_core_required=2.36.0 min_ext_required=None
cli.azure.cli.core.extension._resolve: Skipping 'containerapp-0.3.4-py2.py3-none-any.whl' as not compatible with this version of the CLI. Extension compatibility result: is_compatible=False cli_core_version=2.68.0 ext_version=0.3.4 min_core_required=2.15.0 max_core_required=2.36.0 min_ext_required=None
cli.azure.cli.core.extension._resolve: Candidates ['containerapp-0.1.0-py2.py3-none-any.whl', 'containerapp-0.3.0-py2.py3-none-any.whl', 'containerapp-0.3.1-py2.py3-none-any.whl', 'containerapp-0.3.5-py2.py3-none-any.whl', 'containerapp-0.3.6-py2.py3-none-any.whl', 'containerapp-0.3.7-py2.py3-none-any.whl', 'containerapp-0.3.8-py2.py3-none-any.whl', 'containerapp-0.3.9-py2.py3-none-any.whl', 'containerapp-0.3.10-py2.py3-none-any.whl', 'containerapp-0.3.11-py2.py3-none-any.whl', 'containerapp-0.3.12-py2.py3-none-any.whl', 'containerapp-0.3.13-py2.py3-none-any.whl', 'containerapp-0.3.14-py2.py3-none-any.whl', 'containerapp-0.3.15-py2.py3-none-any.whl', 'containerapp-0.3.16-py2.py3-none-any.whl', 'containerapp-0.3.17-py2.py3-none-any.whl', 'containerapp-0.3.18-py2.py3-none-any.whl', 'containerapp-0.3.19-py2.py3-none-any.whl', 'containerapp-0.3.20-py2.py3-none-any.whl', 'containerapp-0.3.21-py2.py3-none-any.whl', 'containerapp-0.3.23-py2.py3-none-any.whl', 'containerapp-0.3.24-py2.py3-none-any.whl', 'containerapp-0.3.25-py2.py3-none-any.whl', 'containerapp-0.3.26-py2.py3-none-any.whl', 'containerapp-0.3.27-py2.py3-none-any.whl', 'containerapp-0.3.28-py2.py3-none-any.whl', 'containerapp-0.3.29-py2.py3-none-any.whl', 'containerapp-0.3.30-py2.py3-none-any.whl', 'containerapp-0.3.31-py2.py3-none-any.whl', 'containerapp-0.3.32-py2.py3-none-any.whl', 'containerapp-0.3.33-py2.py3-none-any.whl', 'containerapp-0.3.34-py2.py3-none-any.whl', 'containerapp-0.3.35-py2.py3-none-any.whl', 'containerapp-0.3.36-py2.py3-none-any.whl', 'containerapp-0.3.37-py2.py3-none-any.whl', 'containerapp-0.3.38-py2.py3-none-any.whl', 'containerapp-0.3.39-py2.py3-none-any.whl', 'containerapp-0.3.40-py2.py3-none-any.whl', 'containerapp-0.3.41-py2.py3-none-any.whl', 'containerapp-0.3.42-py2.py3-none-any.whl', 'containerapp-0.3.43-py2.py3-none-any.whl', 'containerapp-0.3.44-py2.py3-none-any.whl', 'containerapp-0.3.45-py2.py3-none-any.whl', 'containerapp-0.3.46-py2.py3-none-any.whl', 'containerapp-0.3.47-py2.py3-none-any.whl', 'containerapp-0.3.48-py2.py3-none-any.whl', 'containerapp-0.3.49-py2.py3-none-any.whl', 'containerapp-0.3.50-py2.py3-none-any.whl', 'containerapp-0.3.51-py2.py3-none-any.whl', 'containerapp-0.3.52-py2.py3-none-any.whl', 'containerapp-0.3.53-py2.py3-none-any.whl', 'containerapp-0.3.54-py2.py3-none-any.whl', 'containerapp-0.3.55-py2.py3-none-any.whl', 'containerapp-1.0.0b1-py2.py3-none-any.whl', 'containerapp-1.0.0b2-py2.py3-none-any.whl', 'containerapp-1.0.0b3-py2.py3-none-any.whl', 'containerapp-1.0.0b4-py2.py3-none-any.whl', 'containerapp-1.1.0b1-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Chosen {'downloadUrl': 'https://azcliprod.blob.core.windows.net/cli-extensions/containerapp-1.1.0b1-py2.py3-none-any.whl', 'filename': 'containerapp-1.1.0b1-py2.py3-none-any.whl', 'metadata': {'azext.isPreview': True, 'azext.minCliCoreVersion': '2.62.0', 'classifiers': ['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', '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'], 'extensions': {'python.details': {'contacts': [{'email': 'azpycli@microsoft.com', 'name': 'Microsoft Corporation', 'role': 'author'}], 'document_names': {'description': 'DESCRIPTION.rst'}, 'project_urls': {'Home': 'https://github.com/Azure/azure-cli-extensions/tree/main/src/containerapp'}}}, 'extras': [], 'generator': 'bdist_wheel (0.30.0)', 'license': 'MIT', 'metadata_version': '2.0', 'name': 'containerapp', 'run_requires': [{'requires': ['docker', 'docker', 'pycomposefile (>=0.0.29)', 'pycomposefile>=0.0.29']}], 'summary': 'Microsoft Azure Command-Line Tools Containerapp Extension', 'version': '1.1.0b1'}, 'sha256Digest': '749fd64b4a5e13f450deb92fddd14bc4e7bf4b8782dc5faae427f9a9c4ada2df'}
cli.azure.cli.core.extension.operations: Extension source is url? True
cli.azure.cli.core.extension.operations: Downloading https://azcliprod.blob.core.windows.net/cli-extensions/containerapp-1.1.0b1-py2.py3-none-any.whl to C:\Users\philt\AppData\Local\Temp\tmp8q5p0pdj\containerapp-1.1.0b1-py2.py3-none-any.whl
urllib3.connectionpool: Starting new HTTPS connection (1): azcliprod.blob.core.windows.net:443
urllib3.connectionpool: https://azcliprod.blob.core.windows.net:443 "GET /cli-extensions/containerapp-1.1.0b1-py2.py3-none-any.whl HTTP/1.1" 200 486212
cli.azure.cli.core.extension.operations: Downloaded to C:\Users\philt\AppData\Local\Temp\tmp8q5p0pdj\containerapp-1.1.0b1-py2.py3-none-any.whl
cli.azure.cli.core.extension.operations: Validating the extension C:\Users\philt\AppData\Local\Temp\tmp8q5p0pdj\containerapp-1.1.0b1-py2.py3-none-any.whl
cli.azure.cli.core.extension.operations: Checksum of C:\Users\philt\AppData\Local\Temp\tmp8q5p0pdj\containerapp-1.1.0b1-py2.py3-none-any.whl is OK
cli.azure.cli.core.extension.operations: Validation successful on C:\Users\philt\AppData\Local\Temp\tmp8q5p0pdj\containerapp-1.1.0b1-py2.py3-none-any.whl
cli.azure.cli.core.extension.operations: Executing pip with args: ['install', '--target', 'C:\Users\philt\.azure\cliextensions\containerapp', 'C:\Users\philt\AppData\Local\Temp\tmp8q5p0pdj\containerapp-1.1.0b1-py2.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\philt\.azure\cliextensions\containerapp', 'C:\Users\philt\AppData\Local\Temp\tmp8q5p0pdj\containerapp-1.1.0b1-py2.py3-none-any.whl', '--disable-pip-version-check', '--no-cache-dir']
cli.azure.cli.core.extension.operations: Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_main_.py", line 24, in <module>
sys.exit(_main())
^^^^^^^
``` File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\cli\main.py", line 65, in main
sql
cmd_name, cmd_args = parse_command(args)
```sql
^^^^^^^^^^^^^^^^^^^
``` File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\cli\main_parser.py", line 79, in parse_command
sql
general_options, args_else = parser.parse_args(args)
```sql
^^^^^^^^^^^^^^^^^^^^^^^
``` File "optparse.py", line 1371, in parse_args
sql
values = self.get_default_values()
```sql
^^^^^^^^^^^^^^^^^^^^^^^^^
``` File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\cli\parser.py", line 279, in get_default_values
self.config.load()
sql
self._load_config_files()
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\configuration.py", line 246, in _load_config_files
sql
config_files = dict(self.iter_config_files())
```sql
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
``` File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\configuration.py", line 339, in iter_config_files
sql
config_files = get_configuration_files()
```sql
^^^^^^^^^^^^^^^^^^^^^^^^^
``` File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\configuration.py", line 70, in get_configuration_files
r
os.path.join(path, CONFIG_BASENAME) for path in appdirs.site_config_dirs("pip")
```sql
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
``` File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\utils\appdirs.py", line 47, in site_config_dirs
sql
dirval = _appdirs.site_config_dir(appname, appauthor=False, multipath=True)
```sql
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
``` File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_vendor\platformdirs\__init__.py", line 142, in site_config_dir
sql
).site_config_dir
^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_vendor\platformdirs\windows.py", line 67, in site_config_dir
sql
return self.site_data_dir
```sql
^^^^^^^^^^^^^^^^^^
``` File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_vendor\platformdirs\windows.py", line 56, in site_data_dir
sql
path = os.path.normpath(get_win_folder("CSIDL_COMMON_APPDATA"))
```sql
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
``` File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_vendor\platformdirs\windows.py", line 209, in get_win_folder_from_registry
sql
directory, _ = winreg.QueryValueEx(key, shell_folder_name)
```sql
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```FileNotFoundError: [WinError 2] The system cannot find the file specified
cli.azure.cli.core.extension.operations: Command '['C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\python.exe', '-m', 'pip', 'install', '--target', 'C:\\Users\\philt\\.azure\\cliextensions\\containerapp', 'C:\\Users\\philt\\AppData\\Local\\Temp\\tmp8q5p0pdj\\containerapp-1.1.0b1-py2.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\philt\.azure\cliextensions\containerapp
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 0x000001F06C38A020>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 5.795 seconds (init: 0.349, invoke: 5.446)
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 3867 in cache file under C:\Users\philt\.azure\telemetry\20250120113127803
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\philt\.azure C:\Users\philt\.azure\telemetry\20250120113127803"
telemetry.process: Return from creating process 21264
telemetry.main: Finish creating telemetry upload process.
# source error: pip broken
C:\>"C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\python.exe" -m pip
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\__main__.py", line 24, in <module>
sys.exit(_main())
^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\cli\main.py", line 65, in main
cmd_name, cmd_args = parse_command(args)
^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\cli\main_parser.py", line 79, in parse_command
general_options, args_else = parser.parse_args(args)
^^^^^^^^^^^^^^^^^^^^^^^
File "optparse.py", line 1371, in parse_args
values = self.get_default_values()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\cli\parser.py", line 279, in get_default_values
self.config.load()
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\configuration.py", line 124, in load
self._load_config_files()
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\configuration.py", line 246, in _load_config_files
config_files = dict(self.iter_config_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\configuration.py", line 339, in iter_config_files
config_files = get_configuration_files()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\configuration.py", line 70, in get_configuration_files
os.path.join(path, CONFIG_BASENAME) for path in appdirs.site_config_dirs("pip")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_internal\utils\appdirs.py", line 47, in site_config_dirs
dirval = _appdirs.site_config_dir(appname, appauthor=False, multipath=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_vendor\platformdirs\__init__.py", line 142, in site_config_dir
).site_config_dir
^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_vendor\platformdirs\windows.py", line 67, in site_config_dir
return self.site_data_dir
^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_vendor\platformdirs\windows.py", line 56, in site_data_dir
path = os.path.normpath(get_win_folder("CSIDL_COMMON_APPDATA"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip\_vendor\platformdirs\windows.py", line 209, in get_win_folder_from_registry
directory, _ = winreg.QueryValueEx(key, shell_folder_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
# Tried solutions:
- uninstall anaconda navigator ([https://learn.microsoft.com/en-us/answers/questions/1455242/azure-cli-error-when-add-extensions-an-error-occur](https://learn.microsoft.com/en-us/answers/questions/1455242/azure-cli-error-when-add-extensions-an-error-occur))
- ran pip install oschmod
- uninstalled az cli and installed again
PS: tags on this one are incorrect, but there is no tag for "az cli"