Type
bug
Priority
major
Status
new
Component
pil-core
Version
pil-1.1.7
Watchers
1

selftest picks up installed PIL even if build fails

Fredrik Lundh avatarFredrik Lundh created an issue

(adapted from a mail thread)

On a newly installed Ubuntu, the build bombs out with:

creating build
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/libImaging
gcc -pthread -fno-strict-aliasing -DNDEBUG -g
-fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -
IlibImaging -I/usr/include -I/usr/local/include
-I/usr/include/python2.6 -c _imaging.c -o
build/temp.linux-x86_64-2.6/_imaging.o
_imaging.c:75:20: error: Python.h: No such file or directory
...
error: command 'gcc' failed with exit status 1
--------------------------------------------------------------------
PIL 1.1.7 TEST SUMMARY 
--------------------------------------------------------------------
Python modules loaded from ./PIL
Binary modules loaded from /usr/lib/python2.6/dist-packages/PIL
--------------------------------------------------------------------
*** PIL CORE support not installed
*** TKINTER support not installed
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
*** FREETYPE2 support not installed
*** LITTLECMS support not installed
--------------------------------------------------------------------
Running selftest:
--- 57 tests passed.

Note that despite the errors, some tests appear to work. These tests apparently pick up a PIL version that's already installed under site-packages.

Doing a "apt-get install python-dev" fixes the local build. The tests now use the local build:

To check the build, run the selftest.py script.
--------------------------------------------------------------------
PIL 1.1.7 TEST SUMMARY 
--------------------------------------------------------------------
Python modules loaded from ./PIL
Binary modules loaded from ./PIL
--------------------------------------------------------------------
--- PIL CORE support ok
*** TKINTER support not installed
*** JPEG support not installed
*** ZLIB (PNG/ZIP) support not installed
*** FREETYPE2 support not installed
*** LITTLECMS support not installed
--------------------------------------------------------------------

To fix the "not installed" issues, install the development libraries mentioned in the README.

Comments (0)

  1. Log in to comment »
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.