espressif / ESP8266_RTOS_SDK

Latest ESP8266 SDK based on FreeRTOS, esp-idf style.
http://bbs.espressif.com
Apache License 2.0
3.35k stars 1.57k forks source link

Build: urllib.error.URLError [SSL: CERTIFICATE_VERIFY_FAILED] (GIT8266O-818) #1241

Open TritiumXs opened 1 year ago

TritiumXs commented 1 year ago

Environment

Problem Description

install.sh can't be run

Expected Behavior

Actual Behavior

Steps to repropduce

$ ./install.sh

// It helps if you attach a picture of your setup/wiring here.

Debug Logs

Installing ESP-IDF tools
Installing tools: xtensa-lx106-elf, cmake, mconf, ninja, idf-exe, ccache
Installing xtensa-lx106-elf@esp-2020r3-49-gd5524c1-8.4.0
Downloading xtensa-lx106-elf-gcc8_4_0-esp-2020r3-win32.zip to E:\Espressif/dist/xtensa-lx106-elf-gcc
8_4_0-esp-2020r3-win32.zip.tmp
Traceback (most recent call last):
  File "E:/msys64/mingw32/lib/python3.10/urllib/request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "E:/msys64/mingw32/lib/python3.10/http/client.py", line 1283, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "E:/msys64/mingw32/lib/python3.10/http/client.py", line 1329, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "E:/msys64/mingw32/lib/python3.10/http/client.py", line 1278, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "E:/msys64/mingw32/lib/python3.10/http/client.py", line 1038, in _send_output
    self.send(msg)
  File "E:/msys64/mingw32/lib/python3.10/http/client.py", line 976, in send
    self.connect()
  File "E:/msys64/mingw32/lib/python3.10/http/client.py", line 1455, in connect
    self.sock = self._context.wrap_socket(self.sock,
  File "E:/msys64/mingw32/lib/python3.10/ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "E:/msys64/mingw32/lib/python3.10/ssl.py", line 1071, in _create
    self.do_handshake()
  File "E:/msys64/mingw32/lib/python3.10/ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to
get local issuer certificate (_ssl.c:1007)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\msys64\home\Tritium\ESP8266_RTOS_SDK\tools\idf_tools.py", line 1250, in <module>
    main(sys.argv[1:])
  File "E:\msys64\home\Tritium\ESP8266_RTOS_SDK\tools\idf_tools.py", line 1246, in main
    action_func(args)
  File "E:\msys64\home\Tritium\ESP8266_RTOS_SDK\tools\idf_tools.py", line 1048, in action_install
    tool_obj.download(tool_version)
  File "E:\msys64\home\Tritium\ESP8266_RTOS_SDK\tools\idf_tools.py", line 526, in download
    urlretrieve(url, local_temp_path, report_progress if not global_non_interactive else None)
  File "E:/msys64/mingw32/lib/python3.10/urllib/request.py", line 241, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "E:/msys64/mingw32/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "E:/msys64/mingw32/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "E:/msys64/mingw32/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "E:/msys64/mingw32/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "E:/msys64/mingw32/lib/python3.10/urllib/request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "E:/msys64/mingw32/lib/python3.10/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: un
able to get local issuer certificate (_ssl.c:1007)>

image