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

./install.sh fails to download the packages due to certificate error (IDFGH-13637) #14520

Closed
3 tasks done
nakajimayoshi opened this issue Sep 6, 2024 · 2 comments
Closed
3 tasks done
Assignees
Labels
Resolution: Cannot Reproduce Issue cannot be reproduced Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@nakajimayoshi
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.4-dev-2744-g59e1838270

Operating System used.

macOS

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

What is the expected behavior?

installs the packages without error

What is the actual behavior?

Throws a download error

Steps to reproduce.

  1. Clone the repo
  2. cd esp-idf
  3. run ./install.sh
    ...

Build or installation Logs.

esp-idf nakajimayoshi$ ./install.sh                                                                                   
Detecting the Python interpreter
Checking "python3" ...
Python 3.10.0
"python3" has been detected
Checking Python compatibility
Installing ESP-IDF tools
Updating /Users/nakajimayoshi/.espressif/idf-env.json
Selected targets are: esp32c61, esp32s3, esp32s2, esp32c3, esp32h2, esp32p4, esp32c5, esp32c2, esp32, esp32c6
Current system platform: macos-arm64
Installing tools: xtensa-esp-elf-gdb, riscv32-esp-elf-gdb, xtensa-esp-elf, riscv32-esp-elf, esp32ulp-elf, openocd-esp32, esp-rom-elfs
Installing xtensa-esp-elf-gdb@14.2_20240403
Downloading https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v14.2_20240403/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.tar.gz
Destination: /Users/nakajimayoshi/.espressif/dist/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.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://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v14.2_20240403/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.tar.gz to /Users/nakajimayoshi/.espressif/dist/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.tar.gz.tmp
Downloading https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v14.2_20240403/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.tar.gz
Destination: /Users/nakajimayoshi/.espressif/dist/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.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://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v14.2_20240403/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.tar.gz to /Users/nakajimayoshi/.espressif/dist/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.tar.gz.tmp
Downloading https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v14.2_20240403/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.tar.gz
Destination: /Users/nakajimayoshi/.espressif/dist/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.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://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v14.2_20240403/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.tar.gz to /Users/nakajimayoshi/.espressif/dist/xtensa-esp-elf-gdb-14.2_20240403-aarch64-apple-darwin21.1.tar.gz.tmp
ERROR: Failed to download, and retry count has expired
Please make sure you have a working Internet connection.
Certificate issues are usually caused by an outdated certificate database on your computer.
Please check the documentation of your operating system for how to upgrade it.
Running "./Install\ Certificates.command" might be able to fix this issue.
Running "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -m pip install --upgrade certifi" can also resolve this issue in some cases.

More Information.

I tried the following commands:

./Install\ Certificates.command
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -m pip install --upgrade certifi
/Applications/Python\ 3.12/Install\ Certificates.command                                       

none have fixed the issue

@nakajimayoshi nakajimayoshi added the Type: Bug bugs in IDF label Sep 6, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Sep 6, 2024
@github-actions github-actions bot changed the title ./install.sh fails to download the packages due to certificate error ./install.sh fails to download the packages due to certificate error (IDFGH-13637) Sep 6, 2024
@nakajimayoshi
Copy link
Author

A workaround for this is to go into the tools/detec_python.sh file and delete all the python versions listed except for the one you have installed

@dobairoland
Copy link
Collaborator

Hi @nakajimayoshi. And now you use 3.12?

The path to Install Certificates contains 3.12 which looks weird to me.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Cannot Reproduce Issue cannot be reproduced and removed Status: Opened Issue is new labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Cannot Reproduce Issue cannot be reproduced Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants