Code Monkey home page Code Monkey logo

Comments (7)

d-schmidt avatar d-schmidt commented on August 27, 2024

The selftest had an error and is showing wrong results, the other thing is just strange. I should work.

from pillow.

laurentpayot avatar laurentpayot commented on August 27, 2024

Exactly the same bug here with Python 3.2.3 and Ubuntu 12.10. I installed libjpeg8 and libjpeg8-dev to enable JPEG support, but there is an error saying jpeg encoder is not available.

from pillow.

laurentpayot avatar laurentpayot commented on August 27, 2024

PS: The bug only is only present on my AMD64 machine, jpeg encoder does work on my Intel32 based laptop (also with Python 3.2.3 and Ubuntu 12.10).

from pillow.

Sapphire64 avatar Sapphire64 commented on August 27, 2024

Well, this can explain a lot I think. I can confirm that my system is Intel with AMD64 architecture too.

Maybe expected that jpeg libs must be in folder like /usr/lib/i686-linux-gnu/libjpeg.so, not where they are now (/usr/lib/x86_64-linux-gnu/libjpeg.so)?

from pillow.

Sapphire64 avatar Sapphire64 commented on August 27, 2024

Yeap, look here:

Python 3.2.3 (default, Jun 25 2012, 23:10:56) 
[GCC 4.7.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.processor()
''

And now check this in setup.py:

if platform.processor() == "x86_64":
                _add_directory(library_dirs, "/lib64")
                _add_directory(library_dirs, "/usr/lib64")
                _add_directory(library_dirs, "/usr/lib/x86_64-linux-gnu")
            else:
                _add_directory(library_dirs, "/usr/lib/i386-linux-gnu")

from pillow.

laurentpayot avatar laurentpayot commented on August 27, 2024

I just applied your setup.py modifications and after a Pillow complete re-installation (removing build directory etc.) the jpeg encoder is finally working on my AMD64 machine. Thanks a lot!

from pillow.

Sapphire64 avatar Sapphire64 commented on August 27, 2024

I'm glad to hear that. Hope other distributions users will check this patch and it will be merged. Today I was moving my project to Py3.3 server and for another time I have faced this problem. Thanks for noting 'removing build directory', this helped me after I have installed libjpeg62-dev. After all, I hope Pillow's installation process will be improved at least with more friendly error messages.

from pillow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.