Description:
Cannot install Python versions into self-hosted runner on macOS
Action version:
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.9'
Platform:
Runner type:
Tools version:
Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.
Expected behavior:
All installed
Actual behavior:
Execute installation script Check if Python hostedtoolcache folder exist... Create Python 3.9.18 folder Copy Python binaries to hostedtoolcache folder Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action) Upgrading pip... Looking in links: /var/folders/yg/z8gwyr816hsg7d73dx1cdt7w0000gp/T/tmpeqwvkgf5 Requirement already satisfied: setuptools in /Users/runner/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages (58.1.0) Requirement already satisfied: pip in /Users/runner/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages (23.0.1) Error: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Error: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Error: WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Error: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Error: WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Error: WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping Error: ERROR: Could not find a version that satisfies the requirement pip (from versions: none) Error: ERROR: No matching distribution found for pip Error: The process '/bin/bash' failed with exit code 1
Description:
Cannot install Python versions into self-hosted runner on macOS
Action version:
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.9'
Platform:
Runner type:
Tools version:
Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.
Expected behavior:
All installed
Actual behavior:
Execute installation script Check if Python hostedtoolcache folder exist... Create Python 3.9.18 folder Copy Python binaries to hostedtoolcache folder Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action) Upgrading pip... Looking in links: /var/folders/yg/z8gwyr816hsg7d73dx1cdt7w0000gp/T/tmpeqwvkgf5 Requirement already satisfied: setuptools in /Users/runner/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages (58.1.0) Requirement already satisfied: pip in /Users/runner/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages (23.0.1) Error: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Error: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Error: WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Error: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Error: WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Error: WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping Error: ERROR: Could not find a version that satisfies the requirement pip (from versions: none) Error: ERROR: No matching distribution found for pip Error: The process '/bin/bash' failed with exit code 1