VSC - PlatformIO -Umzug auf neuen Rechner macht Probleme

Die alternative Firmware für ESP8266 based devices

Moderatoren: seppy, udo1toni

Antworten
Benutzeravatar
peter-pan
Beiträge: 2810
Registriert: 28. Nov 2018 12:03
Answers: 30
Wohnort: Schwäbisch Gmünd

VSC - PlatformIO -Umzug auf neuen Rechner macht Probleme

Beitrag von peter-pan »

Seit ich hier im Forum bin, benutze ich, Dank der Infos und Hilfe von Udo, den VSC-Editor zur Erstellung meines textbasierenden SetUp's und das klappt ganz toll mit der Erweiterung um das Modul "openHAB".
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 ====================

und

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. 
Auf dem "alten" Rechner klappt alles wunderbar.

Wer kann und mag mir weiterhelfen ?

Cheers - Peter
Pi5/8GB(PiOS Lite 64-bit(trixie)/SSD 120GB - OH5.0.2 openhabian

Benutzeravatar
udo1toni
Beiträge: 15419
Registriert: 11. Apr 2018 18:05
Answers: 247
Wohnort: Darmstadt

Re: VSC - PlatformIO -Umzug auf neuen Rechner macht Probleme

Beitrag von udo1toni »

Nun heißt Du ja nicht Claudia ;)

Die Fehlermeldung besagt lediglich, dass ein Modul nicht gefunden wurde.
Der Name des Moduls scheint zopfli zu lauten und angefordert wird es in der Datei C:\Users\claudia\.platformio\penv\Lib\site-packages\zopfli\gzip.py (sic!)

Laut Google handelt es sich bei zopfli um eine Kompressionsbibliothek.

Meine Vermutung ist, dass Du entweder unter einem Konto arbeitest, in dem PlatformIO nicht installiert wurde, oder eben beim Einrichten des Plugins irgendetwas schief gegangen ist.
Mutmaßlich sollte es ausreichen, das PlatformIO Plugin zu entfernen und erneut zu installieren.
openHAB5.0.1 stable in einem Debian-Container (trixie, OpenJDK 21 headless runtime) (Proxmox 9.0.11, LXC)

Benutzeravatar
peter-pan
Beiträge: 2810
Registriert: 28. Nov 2018 12:03
Answers: 30
Wohnort: Schwäbisch Gmünd

Re: VSC - PlatformIO -Umzug auf neuen Rechner macht Probleme

Beitrag von peter-pan »

udo1toni hat geschrieben: 27. Okt 2025 12:33 Nun heißt Du ja nicht Claudia ;)
...nee :) . Ich hab halt einen anderen Anmeldenamen als auf dem alten Rechner haben wollen und meine Frau freut's :lol:

Ich hab PlatformIO deinstalliert, VSC verlassen, den Rechner neu gestartet, PlatformIO wieder installiert, aber leider kein Erfolg.

Fehlermeldung:

Code: Alles auswählen

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\platformio\__main__.py", line 21, in <module>

    from platformio import __version__, exception, maintenance
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\platformio\maintenance.py", line 25, in <module>

    from platformio.package.manager.core import update_core_packages
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\platformio\package\manager\core.py", line 20, in <module>

    from platformio.package.manager.tool import ToolPackageManager
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\platformio\package\manager\tool.py", line 15, in <module>

    from platformio.package.manager.base import BasePackageManager
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\platformio\package\manager\base.py", line 28, in <module>
    from platformio.package.manager._download import PackageManagerDownloadMixin
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\platformio\package\manager\_download.py", line 24, in <module>

    from platformio.package.download import FileDownloader
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\platformio\package\download.py", line 24, in <module>
    from platformio.http import HTTPSession
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\platformio\http.py", line 19, in <module>
    import requests.adapters

  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\requests\__init__.py", line 45, in <module>
    from .exceptions import RequestsDependencyWarning
  File "C:\Users\claudia\.platformio\penv\Lib\site-packages\requests\exceptions.py", line 7, in <module>
    from urllib3.exceptions import HTTPError as BaseHTTPError
ModuleNotFoundError: No module named 'urllib3.exceptions'

------------------------------------------------------------------------------------------------------------------------------------------

Pi5/8GB(PiOS Lite 64-bit(trixie)/SSD 120GB - OH5.0.2 openhabian

Benutzeravatar
udo1toni
Beiträge: 15419
Registriert: 11. Apr 2018 18:05
Answers: 247
Wohnort: Darmstadt

Re: VSC - PlatformIO -Umzug auf neuen Rechner macht Probleme

Beitrag von udo1toni »

Strange. Nun geht das Ganze schon vorher schief...

Code: Alles auswählen

ModuleNotFoundError: No module named 'urllib3.exceptions'
Hast Du irgendwelche besondere Dinge in Deinem LAN (z.B. PiHole) die eventuell teilweise den Netzwerkverkehr kontrollieren?
openHAB5.0.1 stable in einem Debian-Container (trixie, OpenJDK 21 headless runtime) (Proxmox 9.0.11, LXC)

Benutzeravatar
peter-pan
Beiträge: 2810
Registriert: 28. Nov 2018 12:03
Answers: 30
Wohnort: Schwäbisch Gmünd

Re: VSC - PlatformIO -Umzug auf neuen Rechner macht Probleme

Beitrag von peter-pan »

udo1toni hat geschrieben: 28. Okt 2025 12:16 Hast Du irgendwelche besondere Dinge in Deinem LAN (z.B. PiHole) die eventuell teilweise den Netzwerkverkehr kontrollieren?
...eigentlich nicht.
Router ist eine ganz normal Fritz-Box 7590AX.
Ich habe jetz nochmal PlatformIO aus VSC deinstalliert und dann VSC auch noch aus Wndows denstalliert.
Zur Sicherheit hab ich dann aus dem Benutzerordner (claudia) die Unterornder ".platformio und .vscode" gelöscht.

Und danach die ganze Installation von neuem.
Ergebnis:

Code: Alles auswählen

Installing PlatformIO IDE...
It may take a few minutes depending on your connection speed
Please do not close this window and do not open other folders until this process is completed.

Debugging information is available via VSCode > Help > Toggle Developer Tools > Console.
PlatformIO IDE installed successfully.

Please restart VSCode.


-----------------------------------------------------------------------------------------------------


Resolving tasmota dependencies...
Platform Manager: Installing https://github.com/tasmota/platform-espressif8266/releases/download/2025.10.00/platform-espressif8266.zip
Downloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90%
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Platform Manager: espressif8266@2025.10.0 has been installed!
Tool Manager: Installing https://github.com/pioarduino/esp_install/releases/download/v5.3.2/esp_install-v5.3.2.zip
Downloading 0% 10% 20% 30% 40% 50% 60% 70%
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Tool Manager: tool-esp_install@5.3.2 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/xtensa-4.8.2.zip
Downloading 0% 10%
Unpacking 0% 10% 20%
Tool Manager: toolchain-xtensa@2.40802.200502 has been installed!
Tool Manager: Installing https://github.com/tasmota/Arduino/releases/download/2.7.8/esp8266-2.7.8.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-arduinoespressif8266@2.7.8 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/esptoolpy-v5.1.0.zip
Downloading 0% 10%
Unpacking 0% 10% 20%
Tool Manager: tool-esptoolpy@5.1.0 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/scons-4.8.1.zip
Downloading 0% 10%
Unpacking 0% 10% 20%
Tool Manager: tool-scons@4.40801.0 has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40801.0
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: tool-scons@4.40801.0 has been installed!
Updating metadata for the vscode IDE...
UserSideException: Processing tasmota (platform: https://github.com/tasmota/platform-espressif8266/releases/download/2025.10.00/platform-espressif8266.zip; framework: arduino; board: esp8266_1M)
--------------------------------------------------------------------------------
Tool Manager: Installing file://C:\Users\claudia\.platformio\tools\tool-esptoolpy
Tool Manager: tool-esptoolpy@5.1.0 has been installed!
Tool Manager: Installing file://C:\Users\claudia\.platformio\tools\toolchain-xtensa
Tool Manager: toolchain-xtensa@2.40802.200502 has been installed!
Installed esptool from tl-install path: C:\Users\claudia\.platformio\packages\tool-esptoolpy
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 "D:\Tasmota-master15.1.cli\Tasmota-master\pio-tools\custom_target.py", line 19:
    import tasmotapiolib
  File "D:\Tasmota-master15.1.cli\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 42.45 seconds =========================

Environment    Status    Duration
-------------  --------  ------------
tasmota        FAILED    00:00:42.446
==================== 1 failed, 0 succeeded in 00:00:42.446 ====================



den Ordner "zopfli" gib es aber.
2025-10-29_161734.jpg
Bin ratlos. ??? :cry: Auf dem "alten Rechner" geht das kompilieren einwandfrei
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Pi5/8GB(PiOS Lite 64-bit(trixie)/SSD 120GB - OH5.0.2 openhabian

Benutzeravatar
udo1toni
Beiträge: 15419
Registriert: 11. Apr 2018 18:05
Answers: 247
Wohnort: Darmstadt

Re: VSC - PlatformIO -Umzug auf neuen Rechner macht Probleme

Beitrag von udo1toni »

Dennoch fehlt da was.

Schau doch mal auf dem alten Rechner nach, was in dem entsprechenden Verzeichnis so rumliegt.
openHAB5.0.1 stable in einem Debian-Container (trixie, OpenJDK 21 headless runtime) (Proxmox 9.0.11, LXC)

Antworten