Fail to install ESP32-IDF

patricktam
Posts: 4
Joined: Thu Nov 25, 2021 2:07 pm

Fail to install ESP32-IDF

Postby patricktam » Sat Dec 18, 2021 7:54 am

Hi, This is the first time I use Espressif product.
Was trying to install IDF on my MacBook Pro and got the following error:

MacBook-Pro-13:esp-idf sw$ ./install.sh esp32s3
Detecting the Python interpreter
Checking "python" ...
Checking "python3" ...
Python 3.10.0
"python3" has been detected
Installing ESP-IDF tools
Selected targets are: esp32, esp32c3, esp32s3, esp32s2
Installing tools: xtensa-esp32s3-elf, riscv32-esp-elf, esp32s2ulp-elf, openocd-esp32
Installing xtensa-esp32s3-elf@esp-2021r2-8.4.0
Using GitHub assets mirror for URL: https://github.com/espressif/crosstool- ... cos.tar.gz => https://dl.espressif.com/github_assets/ ... cos.tar.gz
Downloading xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-macos.tar.gz to /Users/sw/.espressif/dist/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-macos.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
WARNING: Failed to download https://dl.espressif.com/github_assets/ ... cos.tar.gz to /Users/sw/.espressif/dist/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-macos.tar.gz.tmp
Downloading xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-macos.tar.gz to /Users/sw/.espressif/dist/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-macos.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
WARNING: Failed to download https://dl.espressif.com/github_assets/ ... cos.tar.gz to /Users/sw/.espressif/dist/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-macos.tar.gz.tmp
Downloading xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-macos.tar.gz to /Users/sw/.espressif/dist/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-macos.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
WARNING: Failed to download https://dl.espressif.com/github_assets/ ... cos.tar.gz to /Users/sw/.espressif/dist/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-macos.tar.gz.tmp
ERROR: Failed to download, and retry count has expired
Traceback (most recent call last):
File "/Users/sw/esp/esp-idf/tools/idf_tools.py", line 1828, in <module>
main(sys.argv[1:])
File "/Users/sw/esp/esp-idf/tools/idf_tools.py", line 1824, in main
action_func(args)
File "/Users/sw/esp/esp-idf/tools/idf_tools.py", line 1467, in action_install
tool_obj.download(tool_version)
File "/Users/sw/esp/esp-idf/tools/idf_tools.py", line 720, in download
raise DownloadError()
__main__.DownloadError
MacBook-Pro-13:esp-idf sw$


The error message reported [SSL: CERTIFICATE_VERIFY_FAILED]. Please advice how to resolve this.
Many thanks.

ramier
Posts: 8
Joined: Sat Dec 18, 2021 9:01 pm

Re: Fail to install ESP32-IDF

Postby ramier » Sat Dec 18, 2021 9:25 pm

What branch are you on?

Maybe try this https://stackoverflow.com/a/43855394/9309705

patricktam
Posts: 4
Joined: Thu Nov 25, 2021 2:07 pm

Re: Fail to install ESP32-IDF

Postby patricktam » Sun Dec 19, 2021 5:25 am

Thanks for your reply.

I have try the master(latest) and v4.3.1 on https://docs.espressif.com/, both give me same error.

Also tried the some of the suggestions in https://stackoverflow.com/a/43855394/9309705, but still got the same
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>

patricktam
Posts: 4
Joined: Thu Nov 25, 2021 2:07 pm

Re: Fail to install ESP32-IDF

Postby patricktam » Mon Dec 20, 2021 7:34 am

Used a Window10 machine and make it work with the hello world program.
But IDF Version 4.3.1 doesn't work for ESP32s3, need to install version 4.4.

Now, coming back to my Mac and try to install ESP32-IDF...........

patricktam
Posts: 4
Joined: Thu Nov 25, 2021 2:07 pm

Re: Fail to install ESP32-IDF

Postby patricktam » Thu Dec 23, 2021 3:09 am

Please help.

Still face download error on Mac. The error msg :

WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
WARNING: Failed to download https://github.com/espressif/crosstool- ... cos.tar.gz to /Users/sw/.espressif/dist/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-macos.tar.gz.tmp

Who is online

Users browsing this forum: jsmith56x and 294 guests