Description: Suggest apt instead of pip install.
From: Tristan Seligmann <mithrandi@debian.org>
Forwarded: not-needed
Last-Update: 2024-09-27

---
 src/trezorlib/cli/settings.py | 4 ++--
 src/trezorlib/toif.py         | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

--- a/src/trezorlib/cli/settings.py
+++ b/src/trezorlib/cli/settings.py
@@ -48,7 +48,7 @@ T1_TR_IMAGE_SIZE = (128, 64)
 def image_to_t1(filename: Path) -> bytes:
     if not PIL_AVAILABLE:
         raise click.ClickException(
-            "Image library is missing. Please install via 'pip install Pillow'."
+            "Image library is missing. Please install via 'apt install python3-pil'."
         )
 
     if filename.suffix == ".toif":
@@ -82,7 +82,7 @@ def image_to_toif(filename: Path, width:
 
     elif not PIL_AVAILABLE:
         raise click.ClickException(
-            "Image library is missing. Please install via 'pip install Pillow'."
+            "Image library is missing. Please install via 'apt install python3-pil'."
         )
 
     else:
--- a/src/trezorlib/toif.py
+++ b/src/trezorlib/toif.py
@@ -151,7 +151,7 @@ class Toif:
     def to_image(self) -> "Image.Image":
         if not PIL_AVAILABLE:
             raise RuntimeError(
-                "PIL is not available. Please install via 'pip install Pillow'"
+                "PIL is not available. Please install via 'apt install python3-pil'"
             )
 
         uncompressed = _decompress(self.data)
@@ -203,7 +203,7 @@ def from_image(
 ) -> Toif:
     if not PIL_AVAILABLE:
         raise RuntimeError(
-            "PIL is not available. Please install via 'pip install Pillow'"
+            "PIL is not available. Please install via 'apt install python3-pil'"
         )
 
     if image.mode == "RGBA":
