mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
Merge branch 'python_cert_macos' into 'master'
fix: Update idf_tools.py to print correct path to Install Certificates.command on macOS Closes IDFGH-16695 See merge request espressif/esp-idf!46360
This commit is contained in:
+9
-2
@@ -185,8 +185,15 @@ def print_hints_on_download_error(err: str) -> None:
|
||||
|
||||
info('The following commands may help resolve this issue:')
|
||||
if sys.platform == 'darwin':
|
||||
info(' ./Install\\ Certificates.command')
|
||||
info(f' {sys.executable} -m pip install --upgrade pip-system-certs certifi')
|
||||
# Python.org macOS installer puts Install Certificates.command in /Applications/Python X.Y/
|
||||
app_certs = (
|
||||
f'/Applications/Python {sys.version_info.major}.{sys.version_info.minor}/Install Certificates.command'
|
||||
)
|
||||
if os.path.isfile(app_certs):
|
||||
info(f'\tRun: open "{app_certs}" (or double-click it in Finder)')
|
||||
else:
|
||||
info('\tGo to Python installation location and execute: ./Install\\ Certificates.command')
|
||||
info(f'\t{sys.executable} -m pip install --upgrade pip-system-certs certifi')
|
||||
|
||||
# Certificate issue on Windows can be hidden under different errors which might be even translated,
|
||||
# e.g. "[WinError -2146881269] ASN1 valor de tag inválido encontrado"
|
||||
|
||||
Reference in New Issue
Block a user