[Image-SIG] PIL installation error

Fredrik Lundh fredrik at pythonware.com
Wed Nov 11 19:13:36 CET 2009


Your Python installation includes Tkinter but your Tcl/Tk installation
is incomplete; you either have to install the relevant Tcl/Tk
development packages, or tweak setup.py to disable Tkinter support.

</F>

On Wed, Nov 11, 2009 at 1:32 PM, Irena Efremenko
<irena.efremenko at weizmann.ac.il> wrote:
> Hi,
> I get the following error messages trying to install PIL:
>
> Imaging-1.1.6->70%  sudo python setup.py install
> running install
> running build
> running build_py
> running build_ext
> building '_imagingtk' extension
> creating build/temp.linux-x86_64-2.4
> creating build/temp.linux-x86_64-2.4/Tk
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -fmessage-length=0 -Wall
> -D_FORTIFY_SOURCE=2 -g -fPIC -IlibImaging -I/usr/include
> -I/usr/local/include -I/usr/include/python2.4 -c _imagingtk.c -o
> build/temp.linux-x86_64-2.4/_imagingtk.o
> _imagingtk.c:20:16: error: tk.h: No such file or directory
> _imagingtk.c:23: error: expected ')' before '*' token
> _imagingtk.c:31: error: expected specifier-qualifier-list before
> 'Tcl_Interp'
> _imagingtk.c: In function '_tkinit':
> _imagingtk.c:37: error: 'Tcl_Interp' undeclared (first use in this function)
> _imagingtk.c:37: error: (Each undeclared identifier is reported only once
> _imagingtk.c:37: error: for each function it appears in.)
> _imagingtk.c:37: error: 'interp' undeclared (first use in this function)
> _imagingtk.c:45: error: expected expression before ')' token
> _imagingtk.c:51: error: 'TkappObject' has no member named 'interp'
> _imagingtk.c:55: warning: implicit declaration of function 'TkImaging_Init'
> error: command 'gcc' failed with exit status 1
>
> I have Python 2.4 installed.
> Please, help. Thanks,
>
> ******
> Dr. Irena Efremenko
> Department of Organic Chemistry
> Weizmann Institute of Science
> 76100 Rehovot, Israel
> Phone: +972 8 9343680
> FAX:   +972 8 9344142
> Email: irena.efremenko at weizmann.ac.il
> ******
>
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>


More information about the Image-SIG mailing list