I am trying to download the Azure SSH extension using the command az extension add --name ssh --debug
, but I am encountering the following error:
Created temporary directory: /private/var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/pip-target-yfswz8ub
Created temporary directory: /private/var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/pip-build-tracker-peqlb1j6
Initialized build tracking at /private/var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/pip-build-tracker-peqlb1j6
Created build tracker: /private/var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/pip-build-tracker-peqlb1j6
Entered build tracker: /private/var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/pip-build-tracker-peqlb1j6
Created temporary directory: /private/var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/pip-install-7x351zhr
Created temporary directory: /private/var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/pip-ephem-wheel-cache-wim3iq9w
Processing /var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/tmpqjw4jnp0/ssh-2.0.5-py3-none-any.whl
1 location(s) to search for versions of oschmod:
* https://pypi.org/simple/oschmod/
Fetching project page and analyzing links: https://pypi.org/simple/oschmod/
Getting page https://pypi.org/simple/oschmod/
Found index url https://pypi.org/simple/
Starting new HTTPS connection (1): pypi.org:443
Incremented Retry for (url='/simple/oschmod/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x104705a90>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))': /simple/oschmod/
Starting new HTTPS connection (2): pypi.org:443
Incremented Retry for (url='/simple/oschmod/'): Retry(total=3, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x1062d07d0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))': /simple/oschmod/
Starting new HTTPS connection (3): pypi.org:443
Incremented Retry for (url='/simple/oschmod/'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x106521d10>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))': /simple/oschmod/
Starting new HTTPS connection (4): pypi.org:443
Incremented Retry for (url='/simple/oschmod/'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x106522a10>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))': /simple/oschmod/
Starting new HTTPS connection (5): pypi.org:443
Incremented Retry for (url='/simple/oschmod/'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x1063e7bd0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))': /simple/oschmod/
Starting new HTTPS connection (6): pypi.org:443
Could not fetch URL https://pypi.org/simple/oschmod/: connection error: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/oschmod/ (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x106519250>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))) - skipping
Skipping link: not a file: https://pypi.org/simple/oschmod/
Given no hashes to check 0 links for project 'oschmod': discarding no candidates
INFO: pip is looking at multiple versions of ssh to determine which version is compatible with other requirements. This could take a while.
Will try a different candidate, due to conflict:
ssh 2.0.5 depends on oschmod==0.3.12
ERROR: Could not find a version that satisfies the requirement oschmod==0.3.12 (from ssh) (from versions: none)
ERROR: No matching distribution found for oschmod==0.3.12
Exception information:
Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 95, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 439, in resolve
raise ResolutionImpossible(self.state.backtrack_causes)
pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('oschmod==0.3.12'), parent=LinkCandidate('file:///var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/tmpqjw4jnp0/ssh-2.0.5-py3-none-any.whl'))]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 377, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 104, in resolve
raise error from e
pip._internal.exceptions.DistributionNotFound: No matching distribution found for oschmod==0.3.12
Removed build tracker: '/private/var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/pip-build-tracker-peqlb1j6'
cli.azure.cli.core.extension.operations: Command '['/usr/local/Cellar/azure-cli/2.62.0/libexec/bin/python', '-m', 'pip', 'install', '--target', '/Users/test/.azure/cliextensions/ssh', '/var/folders/h3/k61jrycj6zzbf3b3ljpbtr5w0000gp/T/tmpqjw4jnp0/ssh-2.0.5-py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 1.
cli.azure.cli.core.extension._homebrew_patch: Homebrew patch: Deleting the temporarily created /Users/test/.pydistutils.cfg
cli.azure.cli.core.extension.operations: Pip failed so deleting anything we might have installed at /Users/test/.azure/cliextensions/ssh
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 664, in execute
raise ex
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 731, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 701, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 334, in __call__
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/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 "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/extension/operations.py", line 349, in add_extension
extension_name = _add_whl_ext(cli_ctx=cmd_cli_ctx, source=source, ext_sha256=ext_sha256,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/extension/operations.py", line 172, 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.
I am working behind a corporate proxy and using Zscaler. The issue appears to be related to the proxy. I have tried setting and removing the proxy settings in the terminal, but the problem persists.
Could you please provide suggestions on the steps I can take to troubleshoot and fix this issue?
Thank you for your assistance.