Help installing PIL/Sketch

Grant Edwards grante at visi.com
Thu Oct 19 14:43:43 EDT 2000


I've been trying (and failing to get PIL) installed on a
vanilla RH system so that I can install sketch.  So far I
haven't had much luck.  

I started by installing the python-imaging RPM.  Here's what's
installed currently:

$ rpm -q -a | grep python
python-1.5.2-13
python-docs-1.5.2-13
python-tools-1.5.2-13
pythonlib-1.23-1
rpm-python-3.0.4-0.48
python-imaging-1.0b1-3
python-devel-1.5.2-13

But when I try to congure sketch:

$ ./setup.py configure
looking for include dir for Imaging.h under
/usr/include/python1.5
Imaging.h not found under /usr/include/python1.5 !

Apparently the python-imaging RPM pointed to by the Sketch home
page doesn't contain the include files, so it isn't useful for
building Sketch.

Next, I tried building PIL from sources, but that fails also. I
followed the steps in the PIL README file, and a "make check"
worked OK, but my _imaging.so file is apparently bad. When I
get to step 8 in the PIL Readme, I get an unresolved symbol
error:

$ PYTHONPATH=.:./PIL ; export PYTHONPATH
$ python
Python 1.5.2 (#1, Feb  1 2000, 16:32:16)  [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import _imaging
Traceback (innermost last):
  File "<stdin>", line 1, in ?
ImportError: ./_imaging.so: undefined symbol: XCreateRegion
>>> 

Could somebody loan me a clue on how to get PIL installed under
RH 6.2?

-- 
Grant Edwards                   grante             Yow!  Mr and Mrs PED, can I
                                  at               borrow 26.7% of the RAYON
                               visi.com            TEXTILE production of the
                                                   INDONESIAN archipelago?



More information about the Python-list mailing list