Comments (5)
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.
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.
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.
I've created #8142 with your change to resolve this.
from pillow.
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)
- Passing a numpy.ndarray as the size to Image.resize() works in 10.3.0, but not in 10.4.0 HOT 4
- WebP image saving broken from 10.3.0 to 10.4.0 HOT 8
- Python 3.13 free-threading compatibility HOT 6
- Pillow installed via Conda on Win10 errors with "ImportError: The _imaging extension was built for another version of Pillow or PIL" HOT 7
- Release Pillow 11.0.0 on October 15, 2024
- KHKT HOT 1
- GIF extents size change HOT 4
- Resize Error HOT 2
- GIF optimizer acts wrongly with black pixels when `disposal=2`
- Add CONTRIBUTORS.md HOT 1
- Save 16-bit PGM Image? HOT 2
- Possible to add an IFD to an image's EXIF data? HOT 2
- Having trouble installing libraqm HOT 23
- `Image.fromqimage()` raises `TypeError` HOT 2
- `alpha_composite` works poorly with transparency
- Windows Docker / nanoserver support HOT 8
- Save GIF without loss of quality HOT 22
- scientific-python-nightly-wheels-publish triggered in fork HOT 1
- `ImageFont` claims to load font sizes in pixels but seems to use points? HOT 6
- Problems HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pillow.