You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When only having Python versions "older" than 3.7 installed the tools/detect_python.sh script throws some very cryptic error message.
Expected Behavior
Some meaningful error message about outdated Python version.
Actual Behavior
esp-idf/tools/detect_python.sh: line 24: ESP_PYTHON: unbound variable
Steps to reproduce
Clone the latest master
Only have Python 3.6 installed
Try to install IDF with install.sh
Cause and suggested fix
I believe this is caused by the recent changes in addd647 to the file. Reintroducing ESP_PYTHON=python at the top of the file should fix the issue. It will print the expected error message RuntimeError: ESP-IDF supports Python 3.7 or newer but you are using Python 2.7.17. Please upgrade your installation as described in the documentation.
The text was updated successfully, but these errors were encountered:
fpedd
changed the title
Not having recent Python Versions install leads to unclear error in detect_python.sh
Not having recent Python versions installed leads to unclear error in detect_python.shMar 11, 2022
github-actionsbot
changed the title
Not having recent Python versions installed leads to unclear error in detect_python.sh
Not having recent Python versions installed leads to unclear error in detect_python.sh (IDFGH-6929)
Mar 11, 2022
Environment
Problem Description
When only having Python versions "older" than 3.7 installed the
tools/detect_python.sh
script throws some very cryptic error message.Expected Behavior
Some meaningful error message about outdated Python version.
Actual Behavior
esp-idf/tools/detect_python.sh: line 24: ESP_PYTHON: unbound variable
Steps to reproduce
install.sh
Cause and suggested fix
I believe this is caused by the recent changes in addd647 to the file. Reintroducing
ESP_PYTHON=python
at the top of the file should fix the issue. It will print the expected error messageRuntimeError: ESP-IDF supports Python 3.7 or newer but you are using Python 2.7.17. Please upgrade your installation as described in the documentation.
The text was updated successfully, but these errors were encountered: