┌─╼[WetlandCraft@termux]-[~/espstuff]
└────╼ ❯❯❯
platformio run
Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2)
----------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (4.2.1) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- toolchain-xtensa @ 1.40802.0 (4.8.2)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
AttributeError: 'SConsEnvironment' object has no attribute 'ElfToBin':
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/platformio/builder/main.py", line 173:
env.SConscript("$BUILD_SCRIPT")
File "/data/data/com.termux/files/home/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/data/data/com.termux/files/home/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/data/data/com.termux/files/home/.platformio/platforms/espressif8266/builder/main.py", line 247:
target_firm = env.ElfToBin(
================== [FAILED] Took 2.60 seconds ==================
Looks a little bit like this solved problem. Probably your platformio.ini has no framework entry.