GithubHelp home page GithubHelp logo

Comments (5)

radarhere avatar radarhere commented on July 29, 2024

Hi. From your logs, Pillow is searching for raqm.h, but doesn't find it.

  Checking for include file raqm.h in /nix/store/fbq6rwbqpwpvgs6jm5bzgqi5zf5h92wj-freetype-2.13.2-dev/include
  Checking for include file raqm.h in /nix/store/0sksvw4kvr3j63md09z11b6q9xj776kj-libjpeg-turbo-2.1.5.1-dev/include
  Checking for include file raqm.h in /nix/store/0phdb1r6chn6ifindy9d1436sy7b8wn4-openjpeg-2.5.0-dev/include/openjpeg-2.5
  Checking for include file raqm.h in /nix/store/c8z6bw47x52fja2q85iqgi3gqnnp4854-libtiff-4.6.0-dev/include
  Checking for include file raqm.h in /nix/store/68289cwrk5pjj6nmlb7r76qqpw99s011-zlib-1.3-dev/include
  Checking for include file raqm.h in /nix/store/xg5p8vpqglfg9mlcvnchr8hhhf04m9ii-lcms2-2.15-dev/include
  Checking for include file raqm.h in /private/tmp/Pillow/venv/include
  Checking for include file raqm.h in /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include
  Checking for include file raqm.h in /usr/local/include
  Checking for include file raqm.h in /private/tmp/Pillow/venv/include
  Checking for include file raqm.h in /Users/laggron/.pyenv/versions/3.11.4/include/python3.11

So where is your raqm.h located?

Similarly, it goes looking for webp/encode.h and doesn't find it.

  Checking for include file webp/encode.h in /nix/store/fbq6rwbqpwpvgs6jm5bzgqi5zf5h92wj-freetype-2.13.2-dev/include
  Checking for include file webp/encode.h in /nix/store/0sksvw4kvr3j63md09z11b6q9xj776kj-libjpeg-turbo-2.1.5.1-dev/include
  Checking for include file webp/encode.h in /nix/store/0phdb1r6chn6ifindy9d1436sy7b8wn4-openjpeg-2.5.0-dev/include/openjpeg-2.5
  Checking for include file webp/encode.h in /nix/store/c8z6bw47x52fja2q85iqgi3gqnnp4854-libtiff-4.6.0-dev/include
  Checking for include file webp/encode.h in /nix/store/68289cwrk5pjj6nmlb7r76qqpw99s011-zlib-1.3-dev/include
  Checking for include file webp/encode.h in /nix/store/xg5p8vpqglfg9mlcvnchr8hhhf04m9ii-lcms2-2.15-dev/include
  Checking for include file webp/encode.h in /private/tmp/Pillow/venv/include
  Checking for include file webp/encode.h in /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include
  Checking for include file webp/encode.h in /usr/local/include
  Checking for include file webp/encode.h in /private/tmp/Pillow/venv/include
  Checking for include file webp/encode.h in /Users/laggron/.pyenv/versions/3.11.4/include/python3.11

So where is your webp/encode.h located?

from pillow.

Yay295 avatar Yay295 commented on July 29, 2024

There are two log files at the gist they linked. The second one has:

  Looking for Raqm
  Checking for include file raqm.h in /nix/store/fbq6rwbqpwpvgs6jm5bzgqi5zf5h92wj-freetype-2.13.2-dev/include
  Checking for include file raqm.h in /nix/store/0sksvw4kvr3j63md09z11b6q9xj776kj-libjpeg-turbo-2.1.5.1-dev/include
  Checking for include file raqm.h in /nix/store/0phdb1r6chn6ifindy9d1436sy7b8wn4-openjpeg-2.5.0-dev/include/openjpeg-2.5
  Checking for include file raqm.h in /nix/store/c8z6bw47x52fja2q85iqgi3gqnnp4854-libtiff-4.6.0-dev/include
  Checking for include file raqm.h in /nix/store/68289cwrk5pjj6nmlb7r76qqpw99s011-zlib-1.3-dev/include
  Checking for include file raqm.h in /nix/store/xg5p8vpqglfg9mlcvnchr8hhhf04m9ii-lcms2-2.15-dev/include
  Checking for include file raqm.h in /nix/store/5vg2xz1wmq9f6kjnrg465y6sikqwxsmf-libraqm-0.10.1/include
  Found raqm.h
  Found library raqm at /nix/store/5vg2xz1wmq9f6kjnrg465y6sikqwxsmf-libraqm-0.10.1/lib/libraqm.dylib

The WEBP files were not found in either log though.

from pillow.

radarhere avatar radarhere commented on July 29, 2024

If you're simply looking for a way to make it work without modifying setup.py, then you can add directories to search for header files with -I and directories to search for libraries with -L, like

CFLAGS="-I/usr/include -L/usr/lib" python3 -m pip install Pillow --no-binary :all:

I'm not familiar with nixpkgs. It looks like it is using a different include directory for each library, which seems unusual. If you'd like Pillow to work with that out of the box, then the local modification you've made sounds like something you could take and make into a pull request.

from pillow.

radarhere avatar radarhere commented on July 29, 2024

I've created #8142 with your change to resolve this.

from pillow.

laggron42 avatar laggron42 commented on July 29, 2024

Hi, sorry if that was unclear, but basically what is happening with most installations is that pkg-config would return a directory for one of the requested libs, and the include directory for raqm and webp would usually be in the same folder, so it worked for most users. The PR you opened fixes that problem, thanks!

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.