ESP Devide Builder Fatal Error bei basic config 2025.9.3

Hallo zusammen,

ich hab ein dolles Problem: ich kann keine ESPs mehr programmieren…

Seit 2025.9.3 bekomme ich dieses Problem:

Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.39.5")
-- git rev-parse returned 'fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).'
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /data/cache/platformio/packages/toolchain-xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /data/cache/platformio/packages/toolchain-xtensa-esp-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Configuring incomplete, errors occurred!

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
**CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/build.cmake:620 (message):**
  Traceback (most recent call last):

    File "<frozen runpy>", line 189, in _run_module_as_main
    File "<frozen runpy>", line 112, in _get_module_details
    File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/idf_component_manager/__init__.py", line 6, in <module>
      from idf_component_tools.environment import ComponentManagerSettings
    File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/idf_component_tools/__init__.py", line 9, in <module>
      if ComponentManagerSettings().DEBUG_MODE:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/pydantic_settings/main.py", line 193, in __init__
      super().__init__(
    File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/pydantic/main.py", line 250, in __init__
      validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/idf_component_tools/environment.py", line 148, in fallback_to_default
      if field.validation_alias:
         ^^^^^^^^^^^^^^^^^^^^^^

  AttributeError: 'NoneType' object has no attribute 'validation_alias'

Call Stack (most recent call first):
  /data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:718 (idf_build_process)
  CMakeLists.txt:3 (project)



========================== [FAILED] Took 4.97 seconds ==========================

Dabei habe ich nur einen neuen ESP angelegt und diese drei Zeilen angehängt:

esp32_ble_tracker:
bluetooth_proxy:
  active: true

…auch ohne die drei Zeilen, quasi der “Standard”, kann nicht mehr kompilieren…

ChatGPT schreibt hier:

AttributeError: ‘NoneType’ object has no attribute ‘validation_alias’

Ursache: ESP-IDF 5.4.2 nutzt die Python-Bibliothek pydantic für das Component Manager-Tool.

Laut Log benutzt du Python 3.12, ESP-IDF 5.x unterstützt offiziell nur Python 3.10.

In Python 3.12 gibt es Kompatibilitätsprobleme, daher bricht das Skript ab.

Da steige ich allerdings aus, wovon hier geredet wird. Wie kann ich das Problem beseitigen? Mit Arduino Framework statt ESP-IDF gehts, aber da gibts diese Meldung (kein Abbruch):

WARNING Bluetooth Proxy with active connections on Arduino framework has suboptimal performance. If BLE connections fail, they can waste connection slots for 10 seconds because Arduino doesn’t allow configuring the BLE connection timeout (fixed at 30s). ESP-IDF framework allows setting it to 20s to match client timeouts.

Danke Euch!

MikeE

Bekannter Bug der eher mit Github zu tun hat als mit ESPHome, Add-On deinstallieren und das Häckchen setzen das die Daten auch entfernt werden. Keine Angst deine yaml etc bleiben alle erhalten. Dann wieder Add-On instalieren und danach HA neustarten.

Musste da auch vor 2 Tagen durch :zany_face:

Wird mit 2025.10 gelöst, dort kommt dann eine grosse Aufräumaktion beim Update.

Uh - Puh! :sweat_smile:

Dann ists nich so schlimm wie befürchtet…

Danke Dir für die Info. Werd mich das Wochenende dann mal dran machen.

Gruß,

MikeE