Skip to content
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

Download error while set up the env with the install.sh (IDFGH-3956) #5842

Closed
WuYingzheng opened this issue Sep 9, 2020 · 2 comments
Closed

Comments

@WuYingzheng
Copy link

I will get an SSL error when I try to set up the environment with the script install.sh

i use python3.
❯ ./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-2020r2-8.2.0
Downloading xtensa-esp32-elf-gcc8_2_0-esp-2020r2-linux-amd64.tar.gz to /home/wyz/.espressif/dist/xtensa-esp32-elf-gcc8_2_0-esp-2020r2-linux-amd64.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)>
WARNING: Failed to download https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp-2020r2-linux-amd64.tar.gz to /home/wyz/.espressif/dist/xtensa-esp32-elf-gcc8_2_0-esp-2020r2-linux-amd64.tar.gz.tmp

The following code will solve this issue. Can you merge it into mater? It will save a lot of time for people who also enconter this problem.
import ssl ssl._create_default_https_context = ssl._create_unverified_context
Thank you.

@github-actions github-actions bot changed the title Download error while set up the env with the install.sh Download error while set up the env with the install.sh (IDFGH-3956) Sep 9, 2020
@igrr
Copy link
Member

igrr commented Sep 9, 2020

Hi @WuYingzheng, thanks for posting this solution.

While it does solve the problem, we would not like to suggest our users to ignore certificate validation issues, especially when downloading executable files from the Internet, as nasty things may happen.

Usually this error is caused by an outdated set of TLS root certificates. If you share which Linux distribution (and which version) you use, and also how you installed Python 3, I can give some suggestions about updating the TLS root certificate bundle.

@WuYingzheng
Copy link
Author

Thank you for your reply!

I use window sub-system linux. Now i have migrated to ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants