-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Description
Environment
- Development Kit: ESP32-Wrover-Kit (not got that far though)
- Kit version (for WroverKit/PicoKit/DevKitC): v4.1
- Module or chip used: ESP32-WROVER
- IDF version: v4.1-dev-2263-g605da33c3
- Build System: Not sure - no instructions to find [Make|CMake|idf.py]
- Compiler version: -bash: xtensa-esp32-elf-gcc: command not found
- Operating System: macOS
- Using an IDE?: Have not got that far yet.
- Power Supply: USB (Have not got that far yet)
Problem Description
I am trying to install the ESP32 IDF tools on my Mac for the first time, following the guide https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html#get-started-get-esp-idf.
I have got to step 3 where you are to run the install.sh script and this is the output:
Keffords-Mac:esp-idf Kefford$ ./install.sh
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, esp32ulp-elf, esp32s2ulp-elf, openocd-esp32
Skipping xtensa-esp32-elf@esp-2019r2-8.2.0 (already installed)
Skipping xtensa-esp32s2-elf@esp-2019r2-8.2.0 (already installed)
Installing esp32ulp-elf@2.28.51-esp-20191205
Downloading binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz to /Users/Kefford/.espressif/dist/binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>
WARNING: Failed to download https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz to /Users/Kefford/.espressif/dist/binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz.tmp
Downloading binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz to /Users/Kefford/.espressif/dist/binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>
WARNING: Failed to download https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz to /Users/Kefford/.espressif/dist/binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz.tmp
Downloading binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz to /Users/Kefford/.espressif/dist/binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>
WARNING: Failed to download https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz to /Users/Kefford/.espressif/dist/binutils-esp32ulp-macos-2.28.51-esp-20191205.tar.gz.tmp
ERROR: Failed to download, and retry count has expired
Traceback (most recent call last):
File "/Users/Kefford/esp/esp-idf/tools/idf_tools.py", line 1487, in
main(sys.argv[1:])
File "/Users/Kefford/esp/esp-idf/tools/idf_tools.py", line 1483, in main
action_func(args)
File "/Users/Kefford/esp/esp-idf/tools/idf_tools.py", line 1181, in action_install
tool_obj.download(tool_version)
File "/Users/Kefford/esp/esp-idf/tools/idf_tools.py", line 598, in download
raise DownloadError()
main.DownloadError
Taking a suggestion from #4364 I tried adding python3 to the start of the two lines in install.sh:
python3 ${IDF_PATH}/tools/idf_tools.py install
python3 ${IDF_PATH}/tools/idf_tools.py install-python-env
This did not fix the problem for me though.
I also tried creating the ".espressif" folder as I noticed it was not created yet, but this is not allowed so I created an "espressif" folder instead (and the dist folder too) and changed my IDF_TOOLS_PATH by adding to ~/.bash_profile the following:
export IDF_TOOLS_PATH=/Users/Kefford/espressif
This didn't fix the problem either and produced the following output:
Keffords-Mac:esp-idf Kefford$ ./install.sh
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, esp32ulp-elf, esp32s2ulp-elf, openocd-esp32
Installing xtensa-esp32-elf@esp-2019r2-8.2.0
Downloading xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz to /Users/Kefford/espressif/dist/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>
WARNING: Failed to download https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz to /Users/Kefford/espressif/dist/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz.tmp
Downloading xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz to /Users/Kefford/espressif/dist/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>
WARNING: Failed to download https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz to /Users/Kefford/espressif/dist/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz.tmp
Downloading xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz to /Users/Kefford/espressif/dist/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>
WARNING: Failed to download https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz to /Users/Kefford/espressif/dist/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-macos.tar.gz.tmp
ERROR: Failed to download, and retry count has expired
Traceback (most recent call last):
File "/Users/Kefford/esp/esp-idf/tools/idf_tools.py", line 1487, in
main(sys.argv[1:])
File "/Users/Kefford/esp/esp-idf/tools/idf_tools.py", line 1483, in main
action_func(args)
File "/Users/Kefford/esp/esp-idf/tools/idf_tools.py", line 1181, in action_install
tool_obj.download(tool_version)
File "/Users/Kefford/esp/esp-idf/tools/idf_tools.py", line 598, in download
raise DownloadError()
main.DownloadError
Now I am stuck after hours of trying to get the tools installed and not sure what to do. My background is in electronics hardware and embedded C so I have done my best but I feel you have to be an expert in python and OS based development just to get going with the ESP32!
Hope someone can help, thanks.
Expected Behavior
That following the Getting Started guide allows installation of the tools.
Actual Behavior
Install script does not install tools.
Steps to reproduce
As mentioned, this is the first time installing these tools so should be a nice clean install. I do have python 2 and python 3 both installed and then for the rest just follow the Getting Started guide.