vedderb / vesc_express

The source code for the VESC Express
GNU General Public License v3.0
39 stars 31 forks source link

/Users/[userName]/.espressif/espidf.constraints.v5.0.txt doesn't exist. #11

Closed bj97301 closed 1 year ago

bj97301 commented 1 year ago

First, love ya Vedder for making this amazing repo for all to use ♥️.

On to the issue: Is anyone else getting this error after trying to start the esp shell environment?


Bryan@bj-macbook-pro esp-idf-v5.0.2 % . ./export.sh 
Setting IDF_PATH to '/Users/Bryan/code/vesc_express/esp-idf-v5.0.2'
Detecting the Python interpreter
Checking "python3" ...
Python 3.11.4
"python3" has been detected
Checking Python compatibility
Checking other ESP-IDF version.
Adding ESP-IDF tools to PATH...
Checking if Python packages are up to date...
ERROR: /Users/Bryan/.espressif/espidf.constraints.v5.0.txt doesn't exist. Perhaps you've forgotten to run the install scripts. Please check the installation guide for more information.
Bryan@bj-macbook-pro esp-idf-v5.0.2 % 

Seems odd that it would be looking in my home directory and not in my code directory. Thank you in advance for your help with this.

bj97301 commented 1 year ago

Hold on, I believe I figured it out. Stupid SSL issues rearing its ugly head again...


WARNING: Download failure: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)>
WARNING: Failed to download https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.0.txt to /Users/Bryan/.espressif/espidf.constraints.v5.0.txt.tmp
Downloading https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.0.txt
Destination: /Users/Bryan/.espressif/espidf.constraints.v5.0.txt.tmp
WARNING: Download failure: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)>
WARNING: Failed to download https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.0.txt to /Users/Bryan/.espressif/espidf.constraints.v5.0.txt.tmp
Downloading https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.0.txt
Destination: /Users/Bryan/.espressif/espidf.constraints.v5.0.txt.tmp
WARNING: Download failure: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)>
WARNING: Failed to download https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.0.txt to /Users/Bryan/.espressif/espidf.constraints.v5.0.txt.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 "/Users/Bryan/.espressif/python_env/idf5.0_py3.11_env/bin/python3 -m pip install --upgrade certifi" can also resolve this issue in some cases.
See the help on how to disable constraints in order to work around this issue.
Bryan@bj-macbook-pro esp-idf-v5.0.2 % 
bj97301 commented 1 year ago

strange... had to download the file myself and put it in the directory. none of the suggestions seemed to work.