I had this happening to me as well someday.
I recall that first installing it (python setup.py install), and then
rerunning selftest, solved that error.

I tried that as well.
Here is the summary of the install process:

build/temp.linux-x86_64-2.4/libImaging/ZipEncode.o -L/usr/local/lib -L/usr/lib -ljpeg -lz -o build/lib.linux-x86_64-2.4/_imaging.so /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
building '_imagingft' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -IlibImaging -I/usr/local/include -I/usr/include -I/usr/local/include/python2.4 -c _imagingft.c -o build/temp.linux-x86_64-2.4/_imagingft.o gcc -pthread -shared build/temp.linux-x86_64-2.4/_imagingft.o -L/usr/local/lib -L/usr/lib -lfreetype -o build/lib.linux-x86_64-2.4/_imagingft.so /usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
building '_imagingmath' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -IlibImaging -I/usr/local/include -I/usr/include -I/usr/local/include/python2.4 -c _imagingmath.c -o build/temp.linux-x86_64-2.4/_imagingmath.o gcc -pthread -shared build/temp.linux-x86_64-2.4/_imagingmath.o -L/usr/local/lib -L/usr/lib -o build/lib.linux-x86_64-2.4/_imagingmath.so /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version       1.1.7
platform      linux2 2.4.6 (#1, Mar 16 2011, 11:33:33)
              [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.
running build_scripts
creating build/scripts-2.4
copying Scripts/pilfont.py -> build/scripts-2.4
copying and adjusting Scripts/pilconvert.py -> build/scripts-2.4
copying and adjusting Scripts/pilfile.py -> build/scripts-2.4
copying and adjusting Scripts/pilprint.py -> build/scripts-2.4
copying and adjusting Scripts/pildriver.py -> build/scripts-2.4
changing mode of build/scripts-2.4/pilfont.py from 644 to 755
changing mode of build/scripts-2.4/pilconvert.py from 644 to 755
changing mode of build/scripts-2.4/pilfile.py from 644 to 755
changing mode of build/scripts-2.4/pilprint.py from 644 to 755
changing mode of build/scripts-2.4/pildriver.py from 644 to 755
running install_lib
copying build/lib.linux-x86_64-2.4/_imagingft.so -> /usr/local/lib/python2.4/site-packages/PIL copying build/lib.linux-x86_64-2.4/_imagingmath.so -> /usr/local/lib/python2.4/site-packages/PIL copying build/lib.linux-x86_64-2.4/_imaging.so -> /usr/local/lib/python2.4/site-packages/PIL
running install_scripts
copying build/scripts-2.4/pilconvert.py -> /usr/local/bin
copying build/scripts-2.4/pilfile.py -> /usr/local/bin
copying build/scripts-2.4/pilprint.py -> /usr/local/bin
copying build/scripts-2.4/pildriver.py -> /usr/local/bin
changing mode of /usr/local/bin/pilfont.py to 755
changing mode of /usr/local/bin/pilconvert.py to 755
changing mode of /usr/local/bin/pilfile.py to 755
changing mode of /usr/local/bin/pilprint.py to 755
changing mode of /usr/local/bin/pildriver.py to 755
creating /usr/local/lib/python2.4/site-packages/PIL.pth

$ python selftest.py
*** The _imaging C module is not installed


Regards
Nico
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to