Gelegentlich benutze ich VSC auch mit der Erweiterung "PlatformIO", um mir bestimmte Firmware-Versionen, die es nicht als Standard gibt, selbst anzupassen, soweit ich das auch selbst kann und zu kompilieren (built), z.B. für meinen Smartmeter.
Mein Windows-PC ist schon ziemlich betagt (10 Jahre), läuft momentan aber noch unter Windows11. Aber der Plattenplatz auf der C-Platte wird langsam eng und es lassen sich Updates nur noch mit allen möglichen Tricks und Kniffen aufspielen. Deshalb habe ich mir einen neuen PC zugelegt und bin dabei Step by Step umzuziehen.
Nun zum eigentlichen Problem:
Ich habe den VSC-Edior auf dem neuen Rechner installiert und auch die Erweiterungen "openHAB und PlatformIO" eingebunden. Das Arbeit mit "openHAB" und das Editiern der Textdateien, klappt einwandfrei, aber das Kompilieren mit "PlatformIO".......
Wenn ich aber ein "Built" auf dem neuen Rechner erstellen will, erhalte ich Fehlermeldungen, mit denen ich nichts anfangen kann, da ich nur ein "Dummy" bin, der das Wissen anderer Benutzer für sich in Anspruch genommen hat, also keine KI, sondern richtiges Wissen, aber keine Ahnung davon hat und hatte, was er damals gemacht hat.
Die Fehlermeldungen:
Code: Alles auswählen
Resolving tasmota32c3 dependencies...
Platform Manager: Installing https://github.com/tasmota/platform-espressif32/releases/download/2025.10.30/platform-espressif32.zip
Downloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Platform Manager: espressif32@2025.10.30 has been installed!
Tool Manager: Installing https://github.com/tasmota/arduino-esp32/releases/download/v3.1.4/framework-arduinoespressif32.zip
Downloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Tool Manager: framework-arduinoespressif32@3.1.4 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/riscv32-esp-elf-13.2.0_20250707.zip
Downloading 0% 10%
Unpacking 0% 10% 20%
Tool Manager: toolchain-riscv32-esp@13.2.0+20250707 has been installed!
Updating metadata for the vscode IDE...
UserSideException: Processing tasmota32c3 (board: esp32c3; framework: arduino; platform: https://github.com/tasmota/platform-espressif32/releases/download/2025.10.30/platform-espressif32.zip)
--------------------------------------------------------------------------------
Tool Manager: Installing file://C:\Users\claudia\.platformio\tools\toolchain-riscv32-esp
Tool Manager: toolchain-riscv32-esp@13.2.0+20250707 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/riscv32-esp-elf-13.2.0_20250707.zip
Unpacking 0% 10% 20%
Tool Manager: toolchain-riscv32-esp@13.2.0+20250707 has been installed!
Tool Manager: Installing file://C:\Users\claudia\.platformio\tools\toolchain-riscv32-esp
Tool Manager: toolchain-riscv32-esp@13.2.0+20250707 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
Nothing more to solidify
ImportError: DLL load failed while importing zopfli: Das angegebene Modul wurde nicht gefunden.:
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 167:
    env.SConscript(env.GetExtraScripts("pre"), exports="env")
  File "C:\Users\claudia\.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Script\SConscript.py", line 620:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\claudia\.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Script\SConscript.py", line 280:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "G:\platformio\Tasmota-15.1.0-master\Tasmota-15.1.0-master\pio-tools\custom_target.py", line 19:
    import tasmotapiolib
  File "G:\platformio\Tasmota-15.1.0-master\Tasmota-15.1.0-master\pio-tools\tasmotapiolib.py", line 155:
    import zopfli.gzip
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\zopfli\gzip.py", line 2:
    import zopfli.zopfli
========================= [FAILED] Took 131.48 seconds =========================
Environment    Status    Duration
-------------  --------  ------------
tasmota32c3    FAILED    00:02:11.481
==================== 1 failed, 0 succeeded in 00:02:11.481 ====================
Code: Alles auswählen
 *  Task wird ausgeführt: C:\Users\claudia\.platformio\penv\Scripts\platformio.exe run --environment tasmota-4M 
Processing tasmota-4M (board: esp8266_4M2M; platform: https://github.com/tasmota/platform-espressif8266/releases/download/2025.10.00/platform-espressif8266.zip; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
ImportError: DLL load failed while importing zopfli: Das angegebene Modul wurde nicht gefunden.:
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 167:
    env.SConscript(env.GetExtraScripts("pre"), exports="env")
  File "C:\Users\claudia\.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Script\SConscript.py", line 620:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\claudia\.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Script\SConscript.py", line 280:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "G:\platformio\Tasmota-master_15.1.0_test\Tasmota-master\pio-tools\custom_target.py", line 19:
    import tasmotapiolib
  File "G:\platformio\Tasmota-master_15.1.0_test\Tasmota-master\pio-tools\tasmotapiolib.py", line 155:
    import zopfli.gzip
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\zopfli\gzip.py", line 2:
    import zopfli.zopfli
================================================================================================== [FAILED] Took 9.70 seconds ==================================================================================================
Environment    Status    Duration
-------------  --------  ------------
tasmota-4M     FAILED    00:00:09.700
============================================================================================= 1 failed, 0 succeeded in 00:00:09.700 =============================================================================================
 *  Der Terminalprozess "C:\Users\claudia\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'tasmota-4M'" wurde mit folgendem Exitcode beendet: 1. 
 *  Das Terminal wird von Aufgaben wiederverwendet, drücken Sie zum Schließen eine beliebige Taste. 
Wer kann und mag mir weiterhelfen ?
Cheers - Peter



 .  Ich hab halt einen anderen Anmeldenamen als auf dem alten Rechner haben wollen und meine Frau freut's
 .  Ich hab halt einen anderen Anmeldenamen als auf dem alten Rechner haben wollen und meine Frau freut's   
  Auf dem "alten Rechner" geht das kompilieren einwandfrei
  Auf dem "alten Rechner" geht das kompilieren einwandfrei