ESP32-C3 compilation fails due to Python

bstolk
Posts: 23
Joined: Fri Jan 07, 2022 6:44 am

ESP32-C3 compilation fails due to Python

Postby bstolk » Mon Jan 10, 2022 7:34 pm

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.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: ESP32-C3 compilation fails due to Python

Postby ESP_igrr » Mon Jan 10, 2022 8:57 pm

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

ullixesp
Posts: 83
Joined: Wed Oct 16, 2019 9:34 am
Location: Germany

Re: ESP32-C3 compilation fails due to Python

Postby ullixesp » Tue Jan 11, 2022 1:39 pm

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

Who is online

Users browsing this forum: No registered users and 81 guests