summary refs log tree commit diff
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-01-07 17:11:19 +0000
committerKegan Dougal <kegan@matrix.org>2015-01-07 17:11:19 +0000
commit76e1565200dda04e4091be761c737042f9a15e67 (patch)
tree78833f8b4af7ed6aca48460ec0831546bce63c6e
parentPEP8 and pyflakes warnings (diff)
downloadsynapse-76e1565200dda04e4091be761c737042f9a15e67.tar.xz
Change error message for missing pillow libs.
Diffstat (limited to '')
-rw-r--r--synapse/media/v1/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/media/v1/__init__.py b/synapse/media/v1/__init__.py
index 619999d268..d6c6690577 100644
--- a/synapse/media/v1/__init__.py
+++ b/synapse/media/v1/__init__.py
@@ -22,7 +22,8 @@ except IOError as e:
     if str(e).startswith("decoder jpeg not available"):
         raise Exception(
             "FATAL: jpeg codec not supported. Install pillow correctly! "
-            " 'sudo apt-get install libjpeg-dev' then 'pip install -I pillow'"
+            " 'sudo apt-get install libjpeg-dev' then 'pip uninstall pillow &&"
+            " pip install pillow --user'"
         )
 except Exception:
     # any other exception is fine
@@ -36,7 +37,8 @@ except IOError as e:
     if str(e).startswith("decoder zip not available"):
         raise Exception(
             "FATAL: zip codec not supported. Install pillow correctly! "
-            " 'sudo apt-get install libjpeg-dev' then 'pip install -I pillow'"
+            " 'sudo apt-get install libjpeg-dev' then 'pip uninstall pillow &&"
+            " pip install pillow --user'"
         )
 except Exception:
     # any other exception is fine