Question: issues installing toolshed package_imaging_1_1_7 on Mac OS X 10.11
0
nils • 0 wrote:
The Python Imaging Library (package_imaging_1_1_7) that is required by matplotlib has a dependency on X11 headers. By default they are not available on Mac OS X 10.11, which leads to the following error:
_imaging.c:3017:5: warning: incompatible pointer types initializing 'lenfunc' (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry' (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
(inquiry) image_length, /*sq_length*/
^~~~~~~~~~~~~~~~~~~~~~
_imaging.c:3077:5: warning: incompatible pointer types initializing 'lenfunc' (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry' (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
(inquiry) NULL, /*mp_length*/
^~~~~~~~~~~~~~
2 warnings generated.
_imaging.c:3017:5: warning: incompatible pointer types initializing 'lenfunc' (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry' (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
(inquiry) image_length, /*sq_length*/
^~~~~~~~~~~~~~~~~~~~~~
_imaging.c:3077:5: warning: incompatible pointer types initializing 'lenfunc' (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry' (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
(inquiry) NULL, /*mp_length*/
^~~~~~~~~~~~~~
2 warnings generated.
libImaging/Quant.c:154:10: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
*valp=(void *)((*(int *)valp)+(*(int *)&newval));
^
1 warning generated.
clang: warning: -framework Tcl: 'linker' input unused
clang: warning: -framework Tk: 'linker' input unused
In file included from _imagingtk.c:19:
/usr/local/include/tk.h:71:13: fatal error: 'X11/Xlib.h' file not found
# include <X11/Xlib.h>
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
How can this be resolved?
