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

Not having recent Python versions installed leads to unclear error in detect_python.sh (IDFGH-6929) #8549

Closed
fpedd opened this issue Mar 11, 2022 · 1 comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@fpedd
Copy link
Contributor

fpedd commented Mar 11, 2022

Environment

  • Development Kit: n.a.
  • IDF version: v5.0-dev-1959-g4cdf2459f0
  • Build System: idf.py
  • Operating System: Linux, Ubuntu 18.04
  • Python 3.6

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

  1. Clone the latest master
  2. Only have Python 3.6 installed
  3. 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.

@fpedd 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.sh Mar 11, 2022
@espressif-bot espressif-bot added the Status: Opened Issue is new label Mar 11, 2022
@github-actions github-actions bot 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
@dobairoland
Copy link
Collaborator

@fabianpedd Thank you for letting us know about this. We will fix it soon.

@espressif-bot espressif-bot added Status: In Progress Work is in progress Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new Status: In Progress Work is in progress Resolution: NA Issue resolution is unavailable labels Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants