Build errors after upgrade to 2025.8.0 on Pi 5/16GB?

Following the prompt to switch the framework: from aurduino to esp-idf, which I have done successfully on x86 Home Assistant server, it is not going so well on a Raspberry Pi 5?
This is the start of the build output:

INFO ESPHome 2025.8.0
INFO Reading configuration /config/esphome/victron-reader.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing victron-reader (board: lolin_s2_mini; framework: espidf; platform: https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip)
--------------------------------------------------------------------------------
ERROR idf_tools.py installation failed
INFO Package configuration completed successfully
Library Manager: Installing bblanchon/ArduinoJson @ 7.4.2
INFO Installing bblanchon/ArduinoJson @ 7.4.2
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
ERROR idf_tools.py installation failed
INFO Package configuration completed successfully
idf_tools.py installation failed
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
 - framework-espidf @ 3.50402.0 (5.4.2) 
 - tool-cmake @ 3.30.2 
 - tool-esp-rom-elfs @ 2024.10.11 
 - tool-esptoolpy @ 5.0.2 
 - tool-mklittlefs @ 3.2.0 
 - tool-ninja @ 1.13.1 
 - tool-scons @ 4.40801.0 (4.8.1) 
 - toolchain-esp32ulp @ 2.35.0-20220830 
 - toolchain-xtensa-esp-elf @ 14.2.0+20241119
Reading CMake configuration...
FileNotFoundError: [Errno 2] No such file or directory: '/data/cache/platformio/packages/tool-cmake/bin/cmake':
  File "/usr/local/lib/python3.12/site-packages/platformio/builder/main.py", line 173:
    env.SConscript("$BUILD_SCRIPT")
  File "/data/cache/platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.py", line 620:
    return _SConscript(self.fs, *files, **subst_kw)

It looks (to me) as if the idf_tools.py has a problem? Any thoughts?

Regards, Martin

Have a look at this:

Seems to be a common issue

Workaround is at this post:

For me the problem was just using the Git Bash terminal in windows. Exectuing directly the affected Python script gave me this error:

olli@myPS MINGW64 ~/.platformio/packages/tool-esp_install/tools
$ python idf_tools.py
ERROR: MSys/Mingw is not supported. Please follow the getting started guide of the documentation to set up a supported environment

switched to PowerShell and everything went well

1 Like