Question: issues installing toolshed package_imaging_1_1_7 on Mac OS X 10.11
0
gravatar for nils
2.8 years ago by
nils0
nils0 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?

ADD COMMENTlink modified 2.8 years ago • written 2.8 years ago by nils0
1
gravatar for nils
2.8 years ago by
nils0
nils0 wrote:

The issue can be addressed by running xcode-select --install in a terminal window to install xcode command line developer tools. Once this has been completed, the package will install successfully.

ADD COMMENTlink written 2.8 years ago by nils0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 172 users visited in the last hour