Skip to content

esptool and deprecation of Python 2 (ESPTOOL-188) #596

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

Closed
Martin-Laclaustra opened this issue Jan 17, 2021 · 1 comment
Closed

esptool and deprecation of Python 2 (ESPTOOL-188) #596

Martin-Laclaustra opened this issue Jan 17, 2021 · 1 comment

Comments

@Martin-Laclaustra
Copy link

Due to deprecation of Python 2 some Linux distributions have decided to remove the generic "python" executable from the path, forcing all code to explicitly declare which version of Python they require (A wise solution in my opinion, as it serves as "canary" for undefined code and prevents obscure errors, resolving the longstanding ambiguity, and still allows the use of older python 2 code). This change has been annoying when one's mind is in other tasks, but one must adapt to new times and deprecation was announced years ago.
I was proposing to change the shebang to #!/usr/bin/env python3 here espressif/arduino-esp32#4717 but me-no-dev suggested that a global upstream action might be suitable.

Best regards.

@dobairoland
Copy link
Collaborator

Hi @Martin-Laclaustra. My answer is essentially the same as in espressif/esp-idf#6421 (comment).

Esptool still supports Python 2 and the suggested change would break code for customers stuck with Python 2, eg. old computers in factories used only for flashing.

@github-actions github-actions bot changed the title esptool and deprecation of Python 2 esptool and deprecation of Python 2 (ESPTOOL-188) Jan 18, 2021
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