New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DownloadError while installing esp-idf tools, when running install.sh. MacOS Mojave 10.14.6 (IDFGH-2704) #4775
Comments
Hi @mattkefford, sorry that it didn't work out of the box. It looks like the problem is related to SSL certificates:
Could you please give a couple extra details:
|
Also, until we figure out the cause of the issue, there is a workaround which should let you continue: copy the URL printed in the console into your web browser, and download the file into the |
Hi Ivan thanks for the help!
Regarding the ".espressif" folder; I couldn't create it with that name as it said "You can’t use a name that begins with a dot because these names are reserved for the system. Please choose another name." So will I be ok continuing with the "espressif" folder for your workaround? |
You can still do this in Terminal: run |
By the way, this article looks like it addresses the certificate problem with python.org python installations: https://www.dev2qa.com/how-to-fix-python-error-certificate-verify-failed-unable-to-get-local-issuer-certificate-in-mac-os/. Can you please try that? |
Hi, just wanted to add that after this step I get a message saying that python requirements are not satisfied and that I should follow step 3 of Getting Started. However there are no instructions on updating python dependencies. I googled and found on the esp32 forum that I needed to run the command "python -m pip install --user -r $IDF_PATH/requirements.txt". I think it would be a good idea to add this to the getting started guide, otherwise the user would end up trying ./install.sh again and going round in circles. Thanks again :) |
Linking similar issue #4081 |
my 2 cents: for bigger |
Issue resolved with this solution. M1 MacBook Air, Python 3.10 |
Hello, |
I've just had the same issue in macOS Big Sur 11.5.2. Thanks for the help !
That article solved for me ! |
Thank you... This is the official fix for M1 Mac |
Just want to add a side note: this initially didn't work for me because running After that, everything worked perfectly :) |
Fix the problem in Mac Ventura as well (https://www.dev2qa.com/how-to-fix-python-error-certificate-verify-failed-unable-to-get-local-issuer-certificate-in-mac-os/) |
I believe working on the esp32 idf is very worst it took a lot of time developers to fix issues of the esp32 installation. |
For me above steps did not work to resolve the certificate issues on macOS 14 Sonoma, but |
Environment
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.
The text was updated successfully, but these errors were encountered: