Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. esphome - ERROR: Process exited with code 25

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    esphome - ERROR: Process exited with code 25

    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      LE-R.Kelly last edited by

      Systemdata
      Hardwaresystem: Pi4
      Arbeitsspeicher: 4GB
      Festplattenart: SD-Karte
      Betriebssystem: Raspian Buster
      Node-Version: 14.19.1
      Nodejs-Version: 14.19.1
      NPM-Version: 6.14.16

      Hallo,
      ich habe versucht, den esphome-Adapter zu installieren. Die Installation scheitert aber mit dem Code 25. Ich sehe im Log aber das Problem nicht. Kann einer von Euch mal drüberschauen? Danke

      $ iobroker add esphome auto --host raspberrypi
      NPM version: 6.14.16
      Installing iobroker.esphome@0.2.4... (System call)
      > iobroker.esphome@0.2.4 install /opt/iobroker/node_modules/iobroker.esphome> npip install
      No python_modules directory; installing pip locally if needed.
      Successfully completed pip check.
      Collecting esphome>=2021.8
      Using cached esphome-2022.2.6-py2.py3-none-any.whl (2.1 MB)
      Collecting tornado>=3.2
      Using cached tornado-6.1.tar.gz (497 kB)
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'done'
      Collecting tzdata>=2021.1
      Using cached tzdata-2022.1-py2.py3-none-any.whl (339 kB)
      Collecting platformio==5.2.5
      Using cached platformio-5.2.5.tar.gz (218 kB)
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'done'
      Collecting aioesphomeapi==10.8.2
      Using cached aioesphomeapi-10.8.2-py2.py3-none-any.whl (49 kB)
      Collecting PyYAML==6.0
      Using cached PyYAML-6.0.tar.gz (124 kB)
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Getting requirements to build wheel: started
      Getting requirements to build wheel: finished with status 'done'
      Preparing metadata (pyproject.toml): started
      Preparing metadata (pyproject.toml): finished with status 'done'
      Collecting colorama==0.4.4
      Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
      Collecting esptool==3.2
      Using cached esptool-3.2.tar.gz (206 kB)
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'done'
      Collecting zeroconf==0.38.3
      Using cached zeroconf-0.38.3-py3-none-any.whl (106 kB)
      Collecting kconfiglib==13.7.1
      Using cached kconfiglib-13.7.1-py2.py3-none-any.whl (145 kB)
      Collecting pyserial==3.5
      Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
      Collecting paho-mqtt==1.6.1
      Using cached paho-mqtt-1.6.1.tar.gz (99 kB)
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'done'
      Collecting tzlocal==4.1
      Using cached tzlocal-4.1-py3-none-any.whl (19 kB)
      Collecting click==8.0.3
      Using cached click-8.0.3-py3-none-any.whl (97 kB)
      Collecting voluptuous==0.12.2
      Using cached voluptuous-0.12.2.tar.gz (48 kB)
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'done'
      Collecting esphome-dashboard==20220209.0
      Using cached esphome_dashboard-20220209.0-py3-none-any.whl (592 kB)
      Collecting noiseprotocol<1.0,>=0.3.1
      Using cached noiseprotocol-0.3.1-py3-none-any.whl (20 kB)
      Collecting protobuf<4.0,>=3.12.2
      Using cached protobuf-3.20.0-py2.py3-none-any.whl (162 kB)
      Collecting importlib-metadata
      Using cached importlib_metadata-4.11.3-py3-none-any.whl (18 kB)
      Collecting bitstring>=3.1.6
      Using cached bitstring-3.1.9-py3-none-any.whl (38 kB)
      Collecting cryptography>=2.1.4
      Using cached cryptography-36.0.2.tar.gz (572 kB)
      Installing build dependencies: started
      Installing build dependencies: still running...
      Installing build dependencies: finished with status 'error'
      host.raspberrypi Cannot install iobroker.esphome@0.2.4: 1
      ERROR: Process exited with code 25
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @LE-R.Kelly last edited by Thomas Braun

        @le-r-kelly

        python --version
        python3 --version
        

        Liefert?

        L 1 Reply Last reply Reply Quote 0
        • L
          LE-R.Kelly @Thomas Braun last edited by

          @thomas-braun

          pi@raspberrypi:~ $ python --version
          Python 2.7.16
          
          pi@raspberrypi:~ $ python3 --version
          Python 3.7.3
          

          Ok, da ist wohl meine Python-Version zu alt...

          4f2cde89-44c1-4094-bf31-50df411f5479-image.png

          L Thomas Braun 2 Replies Last reply Reply Quote 0
          • L
            LE-R.Kelly @LE-R.Kelly last edited by

            @le-r-kelly

            Wenn ich das bei meiner Netzrecherche richtig verstanden habe ist Python = Python2 und auf einem Raspbian der Standard. Python3 ist zwar drauf, aber wird standardmäßig nicht verwendet, oder?

            Da die Version von Python3 genügt, reicht es diese zum Standard zu machen? Ich habe dazu diese Seite gefunden: https://raspberrytips.com/install-latest-python-raspberry-pi/ unter "Make Python 3 the Default Version on Raspberry Pi OS"

            haus-automatisierung 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @LE-R.Kelly last edited by Thomas Braun

              @le-r-kelly

              Ja. Und python sollte auch zu python3 verlinkt werden.
              Da gab es aber soweit ich mich erinnere einen 'besseren' Weg als der von dir da aufgetriebene.

              update-alternatives --config python
              
              L 1 Reply Last reply Reply Quote 0
              • L
                LE-R.Kelly @Thomas Braun last edited by LE-R.Kelly

                @thomas-braun

                Ich hab noch das gefunden: https://wiki.ico.de/display/WIKI/Python+3+als+Standard+einstellen

                Das mit dem Verlinken verstehe ich nicht 😞

                pi@raspberrypi:~ $ update-alternatives --config python
                update-alternatives: Fehler: keine Alternativen für python
                

                Achso: Danke für Deine Hilfe 👍

                Thomas Braun 2 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @LE-R.Kelly last edited by

                  @le-r-kelly

                  https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux

                  Ab

                  Change python version system-wide with update-alternatives python

                  wird es interessant.

                  1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @LE-R.Kelly last edited by

                    @le-r-kelly

                    update-alternatives setzt die Links richtig. Mach das nach den beiden letzten HowTos, die machen beide das gleiche.

                    1 Reply Last reply Reply Quote 0
                    • L
                      LE-R.Kelly last edited by

                      Das war wohl nicht das Problem:

                      pi@raspberrypi:~ $ python --version
                      Python 3.7.3
                      

                      Die Installation des esphome-Adapters endet aber noch immer mit dem Fehlercode 25 😞

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @LE-R.Kelly last edited by

                        @le-r-kelly

                        Mit welchen Meldungen?

                        L 1 Reply Last reply Reply Quote 0
                        • L
                          LE-R.Kelly @Thomas Braun last edited by

                          @thomas-braun sagte in esphome - ERROR: Process exited with code 25:

                          @le-r-kelly

                          Mit welchen Meldungen?

                          $ iobroker add esphome auto --host raspberrypi
                          NPM version: 6.14.16
                          Installing iobroker.esphome@0.2.4... (System call)
                          > iobroker.esphome@0.2.4 install /opt/iobroker/node_modules/iobroker.esphome> npip install
                          No python_modules directory; installing pip locally if needed.
                          Successfully completed pip check.
                          Collecting esphome>=2021.8
                          Using cached esphome-2022.2.6-py2.py3-none-any.whl (2.1 MB)
                          Collecting tornado>=3.2
                          Using cached tornado-6.1.tar.gz (497 kB)
                          Preparing metadata (setup.py): started
                          Preparing metadata (setup.py): finished with status 'done'
                          Collecting platformio==5.2.5
                          Using cached platformio-5.2.5.tar.gz (218 kB)
                          Preparing metadata (setup.py): started
                          Preparing metadata (setup.py): finished with status 'done'
                          Collecting aioesphomeapi==10.8.2
                          Using cached aioesphomeapi-10.8.2-py2.py3-none-any.whl (49 kB)
                          Collecting voluptuous==0.12.2
                          Using cached voluptuous-0.12.2.tar.gz (48 kB)
                          Preparing metadata (setup.py): started
                          Preparing metadata (setup.py): finished with status 'done'
                          Collecting kconfiglib==13.7.1
                          Using cached kconfiglib-13.7.1-py2.py3-none-any.whl (145 kB)
                          Collecting esptool==3.2
                          Using cached esptool-3.2.tar.gz (206 kB)
                          Preparing metadata (setup.py): started
                          Preparing metadata (setup.py): finished with status 'done'
                          Collecting tzdata>=2021.1
                          Using cached tzdata-2022.1-py2.py3-none-any.whl (339 kB)
                          Collecting click==8.0.3
                          Using cached click-8.0.3-py3-none-any.whl (97 kB)
                          Collecting paho-mqtt==1.6.1
                          Using cached paho-mqtt-1.6.1.tar.gz (99 kB)
                          Preparing metadata (setup.py): started
                          Preparing metadata (setup.py): finished with status 'done'
                          Collecting esphome-dashboard==20220209.0
                          Using cached esphome_dashboard-20220209.0-py3-none-any.whl (592 kB)
                          Collecting tzlocal==4.1
                          Using cached tzlocal-4.1-py3-none-any.whl (19 kB)
                          Collecting colorama==0.4.4
                          Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
                          Collecting zeroconf==0.38.3
                          Using cached zeroconf-0.38.3-py3-none-any.whl (106 kB)
                          Collecting PyYAML==6.0
                          Using cached PyYAML-6.0.tar.gz (124 kB)
                          Installing build dependencies: started
                          Installing build dependencies: finished with status 'done'
                          Getting requirements to build wheel: started
                          Getting requirements to build wheel: finished with status 'done'
                          Preparing metadata (pyproject.toml): started
                          Preparing metadata (pyproject.toml): finished with status 'done'
                          Collecting pyserial==3.5
                          Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
                          Collecting noiseprotocol<1.0,>=0.3.1
                          Using cached noiseprotocol-0.3.1-py3-none-any.whl (20 kB)
                          Collecting protobuf<4.0,>=3.12.2
                          Using cached protobuf-3.20.0-py2.py3-none-any.whl (162 kB)
                          Collecting importlib-metadata
                          Using cached importlib_metadata-4.11.3-py3-none-any.whl (18 kB)
                          Collecting bitstring>=3.1.6
                          Using cached bitstring-3.1.9-py3-none-any.whl (38 kB)
                          Collecting cryptography>=2.1.4
                          Using cached cryptography-36.0.2.tar.gz (572 kB)
                          Installing build dependencies: started
                          Installing build dependencies: finished with status 'error'
                          host.raspberrypi Cannot install iobroker.esphome@0.2.4: 1
                          ERROR: Process exited with code 25
                          
                          1 Reply Last reply Reply Quote 0
                          • haus-automatisierung
                            haus-automatisierung Developer Most Active @LE-R.Kelly last edited by

                            @le-r-kelly sagte in esphome - ERROR: Process exited with code 25:

                            Wenn ich das bei meiner Netzrecherche richtig verstanden habe ist Python = Python2 und auf einem Raspbian der Standard.

                            Nicht unbedingt. Auf einer frischen Bullseye Installation ist python 3 installiert und der Befehl python führt dann auch python3 aus:

                            python --version
                            Python 3.9.2
                            

                            Das Problem ist, dass der ioBroker installer aktuell python-dev installiert.

                            Das wiederum installiert python, was auf stable (aktuell bullseye) dazu führt, dass python-is-python2 installiert wird.

                            Also hat man danach einen Symlink von python auf python2, obwohl vorher alles gut war:

                            python --version
                            Python 2.7.18
                            

                            Zu dem Thema habe ich gerade auch einen Issue geöffnet:

                            https://github.com/ioBroker/ioBroker/issues/383

                            (heute getestet mit Raspbian Lite OS 64-Bit)

                            klein0r created this issue in ioBroker/ioBroker

                            closed [Installer] avoid python 2 installation - python-dev to python3-dev #383

                            S Homoran 2 Replies Last reply Reply Quote 1
                            • S
                              Sushibomba @haus-automatisierung last edited by

                              @haus-automatisierung

                              Verstehe ich noch nicht so ganz. Bei mir schlägt die Installation von ESP Home auch fehl.
                              Was muss ich denn jetzt tun um ESP Home installieren zu können? :-S

                              Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators @haus-automatisierung last edited by

                                @haus-automatisierung sagte in esphome - ERROR: Process exited with code 25:

                                @le-r-kelly sagte in esphome - ERROR: Process exited with code 25:

                                Wenn ich das bei meiner Netzrecherche richtig verstanden habe ist Python = Python2 und auf einem Raspbian der Standard.

                                Nicht unbedingt.

                                das wird eine ältere Information gewesen sein. Bei Aufkommen von python3 wurde noch von sehr vielen Programmen python2 benutzt, resp. waren diese nicht python3 kompatibel.
                                Deswegen blieb der Aufruf python für python2 bestehen und python3 musste explizit so aufgerufen werden.
                                Mittlerweile sieht dies anders aus.

                                1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @Sushibomba last edited by

                                  @sushibomba mach es mal in der konsole mit zusätzlichem --debug und poste den Output in code-tags

                                  1 Reply Last reply Reply Quote 1
                                  • Thomas Braun
                                    Thomas Braun Most Active @Sushibomba last edited by

                                    @sushibomba

                                    sudo apt update
                                    sudo apt install python-is-python3 python-dev-is-python3
                                    
                                    S 2 Replies Last reply Reply Quote 0
                                    • S
                                      Sushibomba last edited by Sushibomba

                                      @Homoran Soll ich das erst mal probieren was @Thomas-braun vorgeschlagen hat?

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sushibomba @Thomas Braun last edited by

                                        @thomas-braun

                                        Also das machen und danach nochmal versuchen über die Beta Repo zu installieren?

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Sushibomba last edited by

                                          @sushibomba python kannst du wie oben geschrieben sauber installieren.
                                          Von Beta würde ich ohne triftigen Grund die Finger lassen. Versuch erstmal mit der stable Version dein Glück.
                                          Die mit --debug-Option installieren.

                                          FredF 1 Reply Last reply Reply Quote 0
                                          • FredF
                                            FredF Most Active Forum Testing @Thomas Braun last edited by

                                            @thomas-braun sagte in esphome - ERROR: Process exited with code 25:

                                            Versuch erstmal mit der stable Version dein Glück.

                                            Den ESPHome Adapter gibt es nur als beta

                                            2021.02.27	
                                            github:	0.2.4
                                            latest:	0.2.4 for 11 months
                                            stable:	-.-.-
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            637
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            12
                                            162
                                            9944
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo