Hi, I try to build an esphome project with this configuration:
substitutions:
friendly_name: 'Lolin'
device_name: 'lolin'
project_base: 'Wemos'
project_name: 'ESP32'
project_version: 'S3 mini'
device_description: 'Lolin Wemos ESP32-S3 mini'
esphome:
name: $device_name
friendly_name: $friendly_name
comment: $device_description
project:
name: ${project_base}.${project_name}
version: $project_version
platformio_options:
platform: https://github.com/platformio/platform-espressif32.git
board: lolin_s3_mini
framework: arduino
platform_packages:
- framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32
esp32:
variant: esp32s3
board: lolin_s3_mini
framework:
type: arduino
version: latest
but when compile it I receive this error message
HARDWARE: ESP32S3 240MHz, 320KB RAM, 4MB Flash
- framework-arduinoespressif32 @ 3.0.5+sha.7018cd1
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
KeyError: 'framework-arduinoespressif32-libs':
File "/usr/local/lib/python3.11/dist-packages/platformio/builder/main.py", line 173:
env.SConscript("$BUILD_SCRIPT")
File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/config/.esphome/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 "/config/.esphome/platformio/platforms/espressif32/builder/main.py", line 368:
target_elf = env.BuildProgram()
File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py", line 251:
return self.method(*nargs, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/platformio/builder/tools/piobuild.py", line 61:
env.ProcessProgramDeps()
File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py", line 251:
return self.method(*nargs, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/platformio/builder/tools/piobuild.py", line 121:
env.BuildFrameworks(env.get("PIOFRAMEWORK"))
File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py", line 251:
return self.method(*nargs, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/platformio/builder/tools/piobuild.py", line 347:
SConscript(env.GetFrameworkScript(name), exports="env")
File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 676:
return method(*args, **kw)
File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/config/.esphome/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 "/config/.esphome/platformio/platforms/espressif32/builder/frameworks/arduino.py", line 36:
SConscript(
File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 676:
return method(*args, **kw)
File "/config/.esphome/platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/config/.esphome/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 "/config/.esphome/platformio/packages/framework-arduinoespressif32@src-4942392190fa5de522c4d55bf2967706/tools/platformio-build.py", line 38:
FRAMEWORK_LIBS_DIR = platform.get_package_dir("framework-arduinoespressif32-libs")
File "/usr/local/lib/python3.11/dist-packages/platformio/platform/_packages.py", line 32:
pkg = self.get_package(name)
File "/usr/local/lib/python3.11/dist-packages/platformio/platform/_packages.py", line 29:
return self.pm.get_package(spec or self.get_package_spec(name))
File "/usr/local/lib/python3.11/dist-packages/platformio/platform/_packages.py", line 21:
owner=self.packages[name].get("owner"),
========================== [FAILED] Took 8.25 seconds ==========================
I don’t understand what is wrong, can anyone help me?