Aaron Lelevier
Aaron Lelevier

Reputation: 20818

PIL with Centos 7 and Python 3.4

Does anyone have a working implementation of PIL with Centos 7 and Python 3.4?

I tried to install the tarball from here, but when running "make" or "make test" got a lot of errors.

If anyone has a working implementation, could you please post the commands and configuration needed i.e. yum packages to get it to work?

I also found this blog post but it didn't help.

Here is one error that I am seeing when trying to convert a jpeg's size:

Traceback (most recent call last):
  File "<console>", line 2, in <module>
  File "/var/www/deploy/myproject/myproject-django/venv/lib/python3.4/site-packages/PIL/Image.py", line 1557, in resize
    self.load()
  File "/var/www/deploy/myproject/myproject-django/venv/lib/python3.4/site-packages/PIL/ImageFile.py", line 203, in load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "/var/www/deploy/myproject/myproject-django/venv/lib/python3.4/site-packages/PIL/Image.py", line 420, in _getdecoder
    raise IOError("decoder %s not available" % decoder_name)
OSError: decoder jpeg not available

Upvotes: 1

Views: 4329

Answers (1)

Hugo
Hugo

Reputation: 29354

Make sure you install the dependencies first, and then reinstall Pillow. Looks like you're missing libjpeg. See here for details.

http://pillow.readthedocs.org/en/3.0.x/installation.html

Upvotes: 1

Related Questions