1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
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":
|