[Image-SIG] installation error of PIL1.1.6

Fredrik Lundh fredrik at pythonware.com
Sat Jan 31 23:26:38 CET 2009

You're missing the Tcl/Tk developer files; see e.g.


  "This probably means that you have enough of Tcl/Tk installed for the
  installation process to think it's worth building the Tkinter support,
  but, as Karsten points out, not enough of it to actually be able to
  build that support.  To fix this, either install tcl-dev/tk-dev (or
  whatever the packages are called on your machine), or tweak setup.py
  to skip that part of the process."


PS. Next time you get an unexpected error message, try googling for a
representative part of the message.  Chances are that you're not the
first one that's seen the same message.

On Fri, Jan 30, 2009 at 4:00 PM, Hwang, Youngha,Ph.D.
<YHWANG1 at partners.org> wrote:
> Hi, could someone explain to me what the following error means?
> Thanks, Youngha.
> building '_imagingtk' extension
> creating build/temp.linux-i686-2.5/Tk
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
> -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -IlibImaging
> -I/programs/l/python/2.5.2/include -I/usr/local/include -I/usr/include
> -I/programs/l/python/2.5.2/include/python2.5 -c _imagingtk.c -o
> build/temp.linux-i686-2.5/_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
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig

More information about the Image-SIG mailing list