Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. ESPHome und Pillow

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    ESPHome und Pillow

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      HelmutLinner @bernd33-1 last edited by

      @bernd33-1 Hallo Bernd,
      ich hatte das selbe problem und bin im adapter auf Dashboard Version 2024.9.2 zurück gegangen. damit funktioniert es noch. Jede neuere Version funktioniert bei mir auch nicht.
      Gruß Helmut

      1 Reply Last reply Reply Quote 0
      • J
        JacquesNorris last edited by

        Ich hatte ein ähnliches Problem - eigentlich lief alles fein, bis ich ein display an ein ESP anschliessen wollte. Beim kompilieren bekam ich dann den Hinweis, dass ich mindestens pillow 10.2.0 haben müsste.

        Ich bin daraufhin in die Python-venv von esphome gegangen

        source /home/iobroker/.cache/autopy/venv/esphome/bin/activate
        

        dort hatte ich ebenfalls (ohne sudo in der venv - und nein, mach es bitte nicht nach)

        pip install --upgrade pip
        

        ausgeführt, was dann alle Pakete upgegradet hat.
        Danach funktionierte leider genau wie bei dir das Dashboard nicht mehr.
        Daraufhin habe ich den Adapter deinstalliert, den cache geleert

        sudo rm -rf /home/iobroker/.cache/autopy
        

        den adapter neu installiert. Danach wieder in die venv rein, und diesmal wirklich nur die geforderte pillow-version installiert:

        pip install "pillow==10.2.0"
        

        Seit dem läuft bei mir alles wunderbar.

        W 3 Replies Last reply Reply Quote 0
        • W
          wibear @JacquesNorris last edited by wibear

          Hallo zusammne, ich habe dasselbe Problem mit Pillow Aktualisierung. Ich versuche das über die virtuelle Umgebung und bekomme diese Meldung:

          msg1.jpg

          Wenn ich das eingebe:

           pip install "pillow==10.3.0"
          

          dann kommt diese Meldung:

           pip install "pillow==10.3.0"
          error: externally-managed-environment
          
          × This environment is externally managed
          ╰─> To install Python packages system-wide, try apt install
              python3-xyz, where xyz is the package you are trying to
              install.
          
              If you wish to install a non-Debian-packaged Python package,
              create a virtual environment using python3 -m venv path/to/venv.
              Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
              sure you have python3-full installed.
          
              For more information visit http://rptl.io/venv
          
          note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
          hint: See PEP 668 for the detailed specification.
          
          

          Es läuft auf einem Raspi 4, 4 Mb, 64-bit, Bookworm.
          Was würdet Ihr raten?
          Danke und Grüße

          1 Reply Last reply Reply Quote 0
          • W
            wibear @JacquesNorris last edited by wibear

            @jacquesnorris sagte in ESPHome und Pillow:

            Ich bin daraufhin in die Python-venv von esphome gegangen

            Nachdem ich

            source /home/iobroker/.cache/autopy/venv/esphome/bin/activate
            

            und dann

            pip install "pillow==10.3.0"
            

            ausgeführt habe, bekomme ich diese Fehlermeldung:

             sudo -Hu iobroker /home/iobroker/.cache/autopy/venv/esphome/bin/python3 -m pip install --upgrade pip
            Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
            Requirement already satisfied: pip in /home/iobroker/.cache/autopy/venv/esphome/lib/python3.11/site-packages (25.1.1)
            raspi@raspi:~ $ source /home/iobroker/.cache/autopy/venv/esphome/bin/activate
            (esphome) raspi@raspi:~ $ pip install "pillow==10.3.0"
            Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
            Collecting pillow==10.3.0
              Using cached pillow-10.3.0-cp311-cp311-manylinux_2_28_aarch64.whl.metadata (9.2 kB)
            Using cached pillow-10.3.0-cp311-cp311-manylinux_2_28_aarch64.whl (4.3 MB)
            Installing collected packages: pillow
              Attempting uninstall: pillow
                Found existing installation: Pillow 10.0.1
                Uninstalling Pillow-10.0.1:
            ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'BufrStubImagePlugin.py'
            Check the permissions.
            
            (esphome)
            

            Irgendeine Idee?

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

              @wibear

              Grundsätzlich würde ich den von Debian bereitgestellten Paketen den Vorzug geben und die per 'apt' installieren.
              Bringt dir aber in dem Fall nix, weil die Version aus Bookworm zu alt ist.

              apt policy python3-pil
              

              zeigt dir die Versionen an.

              Was passiert denn bei

              sudo -Hu iobroker python3 -m pip install --upgrade Pillow
              
              W 2 Replies Last reply Reply Quote 0
              • W
                wibear @Thomas Braun last edited by

                @thomas-braun

                Der Output:

                (esphome) raspi@raspi:~ $ apt policy python3-pil
                python3-pil:
                  Installed: 9.4.0-1.1+deb12u1
                  Candidate: 9.4.0-1.1+deb12u1
                  Version table:
                 *** 9.4.0-1.1+deb12u1 500
                        500 http://deb.debian.org/debian bookworm/main arm64 Packages
                        500 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages
                        100 /var/lib/dpkg/status
                (esphome) raspi@raspi:~ $ sudo -Hu iobroker python3 -m pip install --upgrade Pillow
                error: externally-managed-environment
                
                × This environment is externally managed
                ╰─> To install Python packages system-wide, try apt install
                    python3-xyz, where xyz is the package you are trying to
                    install.
                
                    If you wish to install a non-Debian-packaged Python package,
                    create a virtual environment using python3 -m venv path/to/venv.
                    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
                    sure you have python3-full installed.
                
                    For more information visit http://rptl.io/venv
                
                note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
                hint: See PEP 668 for the detailed specification.
                (esphome) raspi@raspi:~ $
                
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @wibear last edited by

                  @wibear sagte in ESPHome und Pillow:

                  Installed: 9.4.0-1.1+deb12u1

                  Dann würde ich das schon mal deinstallieren, wenn da ohnehin was aktuelleres her soll.

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    wibear @Thomas Braun last edited by

                    @thomas-braun
                    Deswegen versuche ich es mit virtueller Umgebung.

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • W
                      wibear @Thomas Braun last edited by

                      @thomas-braun sagte in ESPHome und Pillow:

                      Dann würde ich das schon mal deinstallieren, wenn da ohnehin was aktuelleres her soll.

                      Wie kann ich es bitte sauber de- und dann neu installieren?

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

                        @wibear

                        Dann musst du schauen, welcher Path zuerst abgeklappert wird.

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

                          @wibear sagte in ESPHome und Pillow:

                          Wie kann ich es bitte sauber de- und dann neu installieren?

                          sudo apt remove python3-pil
                          

                          Und dann nicht mehr (via apt) installieren, da kommt ja wieder die Version 9.4.0 ums Eck.

                          W 1 Reply Last reply Reply Quote 0
                          • W
                            wibear @Thomas Braun last edited by

                            @thomas-braun sagte in ESPHome und Pillow:

                            Und dann nicht mehr (via apt) installieren, da kommt ja wieder die Version 9.4.0 ums Eck.

                            Geht es so?

                            .venv/Pillow/bin/pip install pillow
                            pip install "pillow==10.3.0"
                            
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @wibear last edited by

                              @wibear sagte in ESPHome und Pillow:

                              Geht es so?

                              Keine Ahnung. Ich würde es mit pipx machen.

                              W 2 Replies Last reply Reply Quote 0
                              • W
                                wibear @Thomas Braun last edited by

                                @thomas-braun
                                Ich habe es schon mit pipx ausprobiert, es hat aber nicht funktioniert. Mit remove python3-pil habe ich Python oder pillow selbst deinstalliert?

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

                                  @wibear sagte in ESPHome und Pillow:

                                  Mit remove python3-pil

                                  passiert gar nichts, weil das kein gültiges Kommando ist.

                                  W 1 Reply Last reply Reply Quote 0
                                  • W
                                    wibear @Thomas Braun last edited by

                                    @thomas-braun sagte in ESPHome und Pillow:

                                    @wibear sagte in ESPHome und Pillow:

                                    Mit remove python3-pil

                                    passiert gar nichts, weil das kein gültiges Kommando ist.

                                    Sorry, ich meinte das

                                    
                                    sudo apt remove python3-pil
                                    
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @wibear last edited by

                                      @wibear

                                      Damit wird ein via Paketmanager installiertes Paket rausgeworfen. Alles was du nebenher 'irgendwie' daran vorbei gemacht hast bleibt stehen. Das muss dann entsprechend über andere Methoden gemacht werden.

                                      1 Reply Last reply Reply Quote 0
                                      • W
                                        wibear @Thomas Braun last edited by

                                        @thomas-braun sagte in ESPHome und Pillow:

                                        Ich würde es mit pipx machen.

                                        pipx liefert folgendes:

                                        raspi@raspi:~ $ pipx install pillow
                                        
                                        No apps associated with package pillow or its dependencies. If you are
                                        attempting to install a library, pipx should not be used. Consider using pip
                                        or a similar tool instead.
                                        

                                        Muss ein Pillow-Paket auf dem Raspi sein?
                                        Ich habe es in /tmp:

                                        paket.jpg

                                        R 1 Reply Last reply Reply Quote 0
                                        • R
                                          Ralf 2 @wibear last edited by

                                          @wibear
                                          Wir hatten das Thema doch bereits mehrfach Anfang des Jahres gehabt, vielleicht hilft dir auch folgender Thread weiter: https://forum.iobroker.net/topic/79561/esphome-kein-webinterface/33?_=1746465698773

                                          Da hatte AndreasE112 das auch hinbekommen, vielleicht einmal da nachlesen.
                                          Dort ist auch ein fork beschrieben, den Simon Fischer erstellt hat um das Pillow-Problem zu fixen. Dazu müßte man aber - was nicht gut ist - direkt von Github installieren.

                                          Jedoch hatte AndreasE112 das auch mit der jetzigen Version aus dem latest hinbekommen.
                                          Ich verstehe nur nicht, warum immer wieder das Pillow-Problem auftritt. Ich hatte vor einigen Wochen mein System komplett neu aufgesetzt und das Backup vom IOBroker eingespielt ohne vorher Pillow zu installieren. ESP-Home lief direkt wieder an - v0.5.0-beta.8.

                                          W 1 Reply Last reply Reply Quote 0
                                          • W
                                            wibear @Ralf 2 last edited by

                                            @ralf-2

                                            Ich versuche es über die virtuelle Umgebung. Es läuft zwar ohne Fehler, aber am Ende wird Pillow nicht installiert.
                                            Nur "Requirement already satisfied".
                                            Was kann da noch fehlen?
                                            Danke und Grüße

                                            raspi@raspi:~ $ sudo apt install python3-venv
                                            Reading package lists... Done
                                            Building dependency tree... Done
                                            Reading state information... Done
                                            python3-venv is already the newest version (3.11.2-1+b1).
                                            0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
                                            raspi@raspi:~ $ python3 -m venv .venv/Pillow
                                            raspi@raspi:~ $ source .venv/Pillow/bin/activate
                                            (Pillow) raspi@raspi:~ $ pip install -U pip
                                            Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                            Requirement already satisfied: pip in ./.venv/Pillow/lib/python3.11/site-packages (23.0.1)
                                            Collecting pip
                                              Using cached pip-25.1.1-py3-none-any.whl (1.8 MB)
                                            Installing collected packages: pip
                                              Attempting uninstall: pip
                                                Found existing installation: pip 23.0.1
                                                Uninstalling pip-23.0.1:
                                                  Successfully uninstalled pip-23.0.1
                                            Successfully installed pip-25.1.1
                                            (Pillow) raspi@raspi:~ $ pip install pillow
                                            Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                            Requirement already satisfied: pillow in ./.venv/Pillow/lib/python3.11/site-packages (11.2.1)
                                            (Pillow) raspi@raspi:~ $
                                            
                                            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

                                            924
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            22
                                            877
                                            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