http://www.pythonware.com/products/pil/ says this is the place to send
bug reports for PIL.
Imaging-1.1.6 selftest.py fails, even after a successful build.
Observed on
Solaris 10, Python 2.5.2, GCC 4.1.1
Red Hat Enterprise 4 Linux, Python 2.5.1, GCC 3.4.6
# location of correct libraries
% setenv LDFLAGS -L/usr/stsci/Python-2.5.2/lib/
% python setup.py build
...
--------------------------------------------------------------------
PIL 1.1.6 BUILD SUMMARY
--------------------------------------------------------------------
version 1.1.6
platform sunos5 2.5.2 (r252:60911, Jul 10 2008, 19:47:53)
[GCC 4.1.1]
--------------------------------------------------------------------
--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
--------------------------------------------------------------------
To check the build, run the selftest.py script.
...
% python selftest.py
Traceback (most recent call last)
File "selftest.py", line 11, in <module>
import ImageMath
File "PIL/ImageMath.py", line 19, in <module>
import _imagingmath
ImportError: No module named _imagingmath
Looking in selftest.py, it appears that it expects to find _imagingmath
by inserting "." and "PIL" on sys.path, but _imagingmath is not in
either of those places.
% find . -name '_imagingmath*'
./_imagingmath.c
./build/lib.solaris-2.10-sun4u-2.5/_imagingmath.so
./build/temp.solaris-2.10-sun4u-2.5/_imagingmath.o
You can make it work by
% python setup.py install --install-lib=$wherever
% setenv PYTHONPATH $wherever
% rm -rf PIL
% ln -s $wherever/PIL .
% python selftest.py
I install too much software to read all the mailing lists, so if you
have questions please contact me directly.
Mark Sienkiewicz
_______________________________________________
Image-SIG maillist - Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig