NEWS
ESPHome und Pillow
-
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
-
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:~ $
-
@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.
-
@thomas-braun
Deswegen versuche ich es mit virtueller Umgebung. -
@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?
-
Dann musst du schauen, welcher Path zuerst abgeklappert wird.
-
@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.
-
@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
Ich habe es schon mit pipx ausprobiert, es hat aber nicht funktioniert. Mit remove python3-pil habe ich Python oder pillow selbst deinstalliert? -
@wibear sagte in ESPHome und Pillow:
Mit remove python3-pil
passiert gar nichts, weil das kein gültiges Kommando ist.
-
@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
-
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.
-
@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: -
@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?_=1746465698773Da 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. -
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üßeraspi@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:~ $
-
Hallo, welches Paket hast Du deinstalliert und wie, sodass es am Ende klappte?
Danke, Grüße und ein schönes Wochenende.