diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-01-07 17:11:19 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-01-07 17:11:19 +0000 |
commit | 76e1565200dda04e4091be761c737042f9a15e67 (patch) | |
tree | 78833f8b4af7ed6aca48460ec0831546bce63c6e /synapse/media/v1 | |
parent | PEP8 and pyflakes warnings (diff) | |
download | synapse-76e1565200dda04e4091be761c737042f9a15e67.tar.xz |
Change error message for missing pillow libs.
Diffstat (limited to 'synapse/media/v1')
-rw-r--r-- | synapse/media/v1/__init__.py | 6 |
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 |