Open MedievalMatt opened 6 years ago
Are you referring to this section of the install docs?
The output should (and MUST!) include these lines:
[...] --- JPEG support available [...] --- ZLIB (PNG/ZIP) support available --- LIBTIFF support available --- FREETYPE2 support available --- LITTLECMS2 support available --- WEBP support available --- WEBPMUX support available [...]
Pillow probably won’t install correctly if you don’t have the required dependencies, so if "pip install Pillow" succeeds, I think you’re okay. Can you paste your entire Pillow installation log?
If you want to manually verify everything was installed correctly, you can inspect your apt-get installed packages with:
$ apt list --installed
That's exactly the section I'm referring to. I've installed the dependencies as the instructions indicate, they show up on apt list --installed
, and just to be on the safe side I've reinstalled them again after confirming that PIL, Pillow, and python-imaging are uninstalled:
sudo apt-get install libjpeg-turbo8-dev libfreetype6-dev zlib1g-dev \
> liblcms2-dev liblcms2-utils libtiff5-dev python-dev libwebp-dev apache2 \
> libapache2-mod-wsgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-wsgi is already the newest version (4.3.0-1.1build1).
libjpeg-turbo8-dev is already the newest version (1.4.2-0ubuntu3).
liblcms2-dev is already the newest version (2.6-3ubuntu2).
liblcms2-utils is already the newest version (2.6-3ubuntu2).
libwebp-dev is already the newest version (0.4.4-1).
apache2 is already the newest version (2.4.18-2ubuntu3.5).
libfreetype6-dev is already the newest version (2.6.1-0.1ubuntu2.3).
libtiff5-dev is already the newest version (4.0.6-1ubuntu0.2).
python-dev is already the newest version (2.7.12-1~16.04).
zlib1g-dev is already the newest version (1:1.2.8.dfsg-2ubuntu4.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
However, when I go to the next step and type sudo pip install Pillow
this is all I get as a response:
sudo pip install Pillow
Collecting Pillow
Downloading Pillow-5.0.0-cp27-cp27mu-manylinux1_x86_64.whl (5.8MB)
100% |████████████████████████████████| 5.9MB 17.7MB/s
Installing collected packages: Pillow
Successfully installed Pillow-5.0.0
There's obviously a step somewhere I'm missing, but based on the directions provided I cannot find it.
@MedievalMatt unfortunately, the docs need to be updated. Please try the following, instead of "sudo pip install Pillow": sudo pip install Pillow==4.3.0 Does that help?
Unfortunately, no. I get this (I added --no-cache-dir to be sure it downloads in case the package is cached):
sudo pip install --no-cache-dir Pillow==4.3.0
Collecting Pillow==4.3.0
Downloading Pillow-4.3.0-cp27-cp27mu-manylinux1_x86_64.whl (5.8MB)
100% |████████████████████████████████| 5.8MB 57.0MB/s
Requirement already satisfied: olefile in /usr/local/lib/python2.7/dist-packages (from Pillow==4.3.0)
Installing collected packages: Pillow
Successfully installed Pillow-4.3.0
I haven't moved past this point to see if it works without the dependencies being displayed, as it didn't before. Should I go ahead and do so?
@MedievalMatt yes, go ahead and see if it works. It may be that Pillow's output has changed.
Well, the setup ran, but failed on trying to install cryptography 2.1.4:
Installed /usr/local/lib/python2.7/dist-packages/Loris-2.3.1-py2.7.egg
Processing dependencies for Loris==2.3.1
Searching for cryptography==2.1.4
Reading https://pypi.python.org/simple/cryptography/
Best match: cryptography 2.1.4
Downloading https://pypi.python.org/packages/78/c5/7188f15a92413096c93053d5304718e1f6ba88b818357d05d19250ebff85/cryptography-2.1.4.tar.gz#md5=9f39d4d8f2b05f295fa0ff52475ec4f2
Processing cryptography-2.1.4.tar.gz
Writing /tmp/easy_install-um3vSo/cryptography-2.1.4/setup.cfg
Running cryptography-2.1.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-um3vSo/cryptography-2.1.4/egg-dist-tmp-lOak_4
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
I may just need to see if I can copy the version I'm using on my livesite over and have it work until the instructions are updated.
What was the command you were trying to run at the time? What was your version of python and pip?
It may be helpful to look at some other install scripts: https://github.com/wellcometrust/loris-docker https://github.com/Brown-University-Library/loris_install
Hello, I'm returning to trying to install Loris on Ubuntu 16.0.4, and I'm having an issue with the instructions when it comes to installing Pillow. I install the dependencies fine, but "sudo pip install Pillow" simply results in the package being collected and installed, with no expected list of dependencies. Is there a way to confirm the dependencies are linked other than through the pip install process?
I also want to apologize if this is a stupid question. I have it working on another environment but I want to move away from that hosting provider and so I need to reinstall everything, but I can't for the life of me get Loris up and running.