Page 1 of 1

ESP32-C3 compilation fails due to Python

Posted: Mon Jan 10, 2022 7:34 pm
by bstolk
When I try to build for ESP32-C3, I get the error:

Code: Select all

WARNING: Category '' in library ESP RainMaker is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library WiFiProv is not valid. Setting to 'Uncategorized'
Archiving built core (caching) in: /tmp/arduino_cache_105127/core/core_esp32_esp32_esp32c3_CDCOnBoot_default,PartitionScheme_default,CPUFreq_160,FlashMode_qio,FlashFreq_80,FlashSize_4M,UploadSpeed_921600,DebugLevel_info_b3962d70060a4db8999dbe72a998a796.a
exec: "python": executable file not found in $PATH
Error compiling for board ESP32C3 Dev Module.
The reason for this, is that the Python interpreter is not called python, but is python3.

This is true for Ubuntu, and all Debian derived Linux distributions.

So the IDE should not be calling python.

Re: ESP32-C3 compilation fails due to Python

Posted: Mon Jan 10, 2022 8:57 pm
by ESP_igrr
Hi bstolk,
Thanks for reporting this! There's an open issue about this on Github, please follow the link and use "Subscribe" if you'd like to get notified when the issue is fixed: https://github.com/espressif/arduino-esp32/issues/4717

Re: ESP32-C3 compilation fails due to Python

Posted: Tue Jan 11, 2022 1:39 pm
by ullixesp
The problem with Python and its version is omnipresent. The best you can do it to create virtual python environments, and use any version and name you want. I am developing in Python and can run multiple different versions in parallel, if I have to.

The creation of "venv"s is simple. Read my howto: https://sourceforge.net/projects/geiger ... f/download