[Image-SIG] error installing PIL

Chris Cogdon chris at cogdon.org
Wed Sep 15 17:27:28 CEST 2004


On Sep 15, 2004, at 08:22, daniele wrote:

> i got this errors while executing the command 'python setup.py build'
> in PIL installation:
>
> _imagingtk.c:23: error: syntax error before '*' token
> _imagingtk.c:31: error: syntax error before "Tcl_Interp"
> _imagingtk.c:31: warning: no semicolon at end of struct or union
> _imagingtk.c:32: warning: data definition has no type or storage class
> _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: syntax error before ')' token
> _imagingtk.c:50: error: `app' undeclared (first use in this function)
> _imagingtk.c:50: error: syntax error before ')' token
> _imagingtk.c: At top level:
> _imagingtk.c:55: warning: parameter names (without types) in function 
> declaration
> _imagingtk.c:55: error: conflicting types for `TkImaging_Init'
> _imagingtk.c:23: error: previous declaration of `TkImaging_Init'
> _imagingtk.c:55: warning: data definition has no type or storage class
> _imagingtk.c:57: error: syntax error before '&' token
> error: command 'gcc' failed with exit status 1

Try disabling tcl/tk in the setup.py file and trying again. If that 
works, then its possible that you don't have the tcl/tk development 
libraries/headers installed on your system, or the setup can't find 
them.


-- 
    ("`-/")_.-'"``-._        Chris Cogdon <chris at cogdon.org>
     . . `; -._    )-;-,_`)
    (v_,)'  _  )`-.\  ``-'
   _.- _..-_/ / ((.'
((,.-'   ((,/   fL



More information about the Image-SIG mailing list