Skip to content

Error installing pyvips on Mac OS #459

Closed
@agforte

Description

@agforte

I could not find this issue listed in current issues. Apologies if I missed it.

I have followed the instructions for MacOS (MacOS Sonoma version 14 - MacBook Air M1) and ran:

  1. brew install vips python pkg-config which installed: vips 8.15.2, python@3.12 3.12.2_1, pkg-config 0.29.2_3
  2. pip3 install pyvips gives a bunch of errors (see below):
Defaulting to user installation because normal site-packages is not writeable
Collecting pyvips
  Using cached pyvips-2.2.2.tar.gz (51 kB)
Requirement already satisfied: cffi>=1.0.0 in /Users/andrea/Library/Python/3.9/lib/python/site-packages (from pyvips) (1.16.0)
Requirement already satisfied: pkgconfig in /Users/andrea/Library/Python/3.9/lib/python/site-packages (from pyvips) (1.5.5)
Requirement already satisfied: pycparser in /Users/andrea/Library/Python/3.9/lib/python/site-packages (from cffi>=1.0.0->pyvips) (2.21)
Building wheels for collected packages: pyvips
  Building wheel for pyvips (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-install-ibjgb58x/pyvips_feab40013bfd403ebc1c24a7452c644c/setup.py'"'"'; __file__='"'"'/private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-install-ibjgb58x/pyvips_feab40013bfd403ebc1c24a7452c644c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-wheel-z8bh6zsi
       cwd: /private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-install-ibjgb58x/pyvips_feab40013bfd403ebc1c24a7452c644c/
  Complete output (73 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-universal2-3.9
  creating build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/vinterpolate.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/enums.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/vsourcecustom.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/version.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/vobject.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/error.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/vtargetcustom.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/vregion.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/__init__.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/vimage.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/vdecls.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/gvalue.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/voperation.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/vtarget.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/pyvips_build.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/gobject.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/base.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/vsource.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  copying pyvips/vconnection.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
  running build_ext
  generating cffi module 'build/temp.macosx-10.9-universal2-3.9/_libvips.c'
  creating build/temp.macosx-10.9-universal2-3.9
  building '_libvips' extension
  creating build/temp.macosx-10.9-universal2-3.9/build
  creating build/temp.macosx-10.9-universal2-3.9/build/temp.macosx-10.9-universal2-3.9
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DHWY_SHARED_DEFINE -I/opt/homebrew/Cellar/libarchive/3.7.2/include -I/opt/homebrew/Cellar/vips/8.15.2/include -I/opt/homebrew/Cellar/fftw/3.3.10_1/include -I/opt/homebrew/Cellar/cfitsio/4.4.0/include -I/opt/homebrew/Cellar/libimagequant/4.3.0/include -I/opt/homebrew/Cellar/cgif/0.3.2/include -I/opt/homebrew/Cellar/libexif/0.6.24/include -I/opt/homebrew/Cellar/libspng/0.7.4/include -I/opt/homebrew/Cellar/webp/1.3.2/include -I/opt/homebrew/Cellar/webp/1.3.2/include/webp -I/opt/homebrew/Cellar/pango/1.52.1/include/pango-1.0 -I/opt/homebrew/Cellar/harfbuzz/8.3.1/include/harfbuzz -I/opt/homebrew/Cellar/pango/1.52.1/include/pango-1.0 -I/opt/homebrew/Cellar/fribidi/1.0.13/include/fribidi -I/opt/homebrew/Cellar/harfbuzz/8.3.1/include/harfbuzz -I/opt/homebrew/Cellar/graphite2/1.3.14/include -I/opt/homebrew/Cellar/librsvg/2.58.0/include/librsvg-2.0 -I/opt/homebrew/Cellar/gdk-pixbuf/2.42.10_1/include/gdk-pixbuf-2.0 -I/opt/homebrew/Cellar/libtiff/4.6.0/include -I/opt/homebrew/Cellar/zstd/1.5.5/include -I/opt/homebrew/Cellar/xz/5.6.1/include -I/opt/homebrew/Cellar/jpeg-turbo/3.0.2/include -I/opt/homebrew/Cellar/cairo/1.18.0/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.8/include -I/opt/homebrew/Cellar/libxcb/1.16.1/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.42.2/include/pixman-1 -I/opt/homebrew/Cellar/libmatio/1.5.26/include -I/opt/homebrew/opt/hdf5/include -I/opt/homebrew/Cellar/little-cms2/2.16/include -I/opt/homebrew/Cellar/openexr/3.2.4/include -I/opt/homebrew/Cellar/openexr/3.2.4/include/OpenEXR -I/opt/homebrew/Cellar/imath/3.1.11/include -I/opt/homebrew/Cellar/imath/3.1.11/include/Imath -I/opt/homebrew/Cellar/openjpeg/2.5.2/include/openjpeg-2.5 -I/opt/homebrew/Cellar/highway/1.1.0/include -I/opt/homebrew/Cellar/glib/2.80.0_2/include -I/opt/homebrew/Cellar/glib/2.80.0_2/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.0_2/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.43/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/ffi -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c build/temp.macosx-10.9-universal2-3.9/_libvips.c -o build/temp.macosx-10.9-universal2-3.9/build/temp.macosx-10.9-universal2-3.9/_libvips.o
  build/temp.macosx-10.9-universal2-3.9/_libvips.c:5718:28: error: incompatible function pointer types passing 'void *(*)(uint64_t, void *, void *)' (aka 'void *(*)(unsigned long long, void *, void *)') to parameter of type 'VipsTypeMap2Fn' (aka 'void *(*)(unsigned long, void *, void *)') [-Wincompatible-function-pointer-types]
    return vips_type_map(x0, x1, x2, x3);
                             ^~
  /opt/homebrew/Cellar/vips/8.15.2/include/vips/object.h:676:48: note: passing argument to parameter 'fn' here
  void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b);
                                                 ^
  build/temp.macosx-10.9-universal2-3.9/_libvips.c:5768:32: error: incompatible function pointer types passing 'void *(*)(uint64_t, void *, void *)' (aka 'void *(*)(unsigned long long, void *, void *)') to parameter of type 'VipsTypeMap2Fn' (aka 'void *(*)(unsigned long, void *, void *)') [-Wincompatible-function-pointer-types]
    { result = vips_type_map(x0, x1, x2, x3); }
                                 ^~
  /opt/homebrew/Cellar/vips/8.15.2/include/vips/object.h:676:48: note: passing argument to parameter 'fn' here
  void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b);
                                                 ^
  build/temp.macosx-10.9-universal2-3.9/_libvips.c:6208:27: error: incompatible function pointer types passing 'void (*)(void *)' to parameter of type 'VipsCallbackFn' (aka 'int (*)(void *, void *)') [-Wincompatible-function-pointer-types]
    vips_value_set_blob(x0, x1, x2, x3);
                            ^~
  /opt/homebrew/Cellar/vips/8.15.2/include/vips/type.h:275:17: note: passing argument to parameter 'free_fn' here
          VipsCallbackFn free_fn, const void *data, size_t length);
                         ^
  build/temp.macosx-10.9-universal2-3.9/_libvips.c:6256:29: error: incompatible function pointer types passing 'void (*)(void *)' to parameter of type 'VipsCallbackFn' (aka 'int (*)(void *, void *)') [-Wincompatible-function-pointer-types]
    { vips_value_set_blob(x0, x1, x2, x3); }
                              ^~
  /opt/homebrew/Cellar/vips/8.15.2/include/vips/type.h:275:17: note: passing argument to parameter 'free_fn' here
          VipsCallbackFn free_fn, const void *data, size_t length);
                         ^
  build/temp.macosx-10.9-universal2-3.9/_libvips.c:6433:19: warning: incompatible pointer types initializing 'GTypeClass **' (aka 'struct _GTypeClass **') with an expression of type 'GTypeClass *' (aka 'struct _GTypeClass *') [-Wincompatible-pointer-types]
    { GTypeClass * *tmp = &p->g_type_class; (void)tmp; }
                    ^     ~~~~~~~~~~~~~~~~
  build/temp.macosx-10.9-universal2-3.9/_libvips.c:6457:19: warning: incompatible pointer types initializing 'GTypeClass **' (aka 'struct _GTypeClass **') with an expression of type 'GTypeClass *' (aka 'struct _GTypeClass *') [-Wincompatible-pointer-types]
    { GTypeClass * *tmp = &p->g_type_class; (void)tmp; }
                    ^     ~~~~~~~~~~~~~~~~
  build/temp.macosx-10.9-universal2-3.9/_libvips.c:6519:15: warning: incompatible pointer types initializing 'uint64_t (*)[2]' (aka 'unsigned long long (*)[2]') with an expression of type 'union (unnamed union at /opt/homebrew/Cellar/glib/2.80.0_2/include/glib-2.0/gobject/gvalue.h:119:3) (*)[2]' [-Wincompatible-pointer-types]
    { uint64_t(*tmp)[2] = &p->data; (void)tmp; }
                ^         ~~~~~~~~
  build/temp.macosx-10.9-universal2-3.9/_libvips.c:6589:13: warning: incompatible pointer types initializing 'void **' with an expression of type 'VipsArgumentTable **' (aka 'struct _GHashTable **') [-Wincompatible-pointer-types]
    { void * *tmp = &p->argument_table; (void)tmp; }
              ^     ~~~~~~~~~~~~~~~~~~
  build/temp.macosx-10.9-universal2-3.9/_libvips.c:6619:13: warning: incompatible pointer types initializing 'void **' with an expression of type 'GTimer **' (aka 'struct _GTimer **') [-Wincompatible-pointer-types]
    { void * *tmp = &p->start; (void)tmp; }
              ^     ~~~~~~~~~
  5 warnings and 4 errors generated.
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for pyvips
  Running setup.py clean for pyvips
Failed to build pyvips
Installing collected packages: pyvips
    Running setup.py install for pyvips ... error
    ERROR: Command errored out with exit status 1:
     command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-install-ibjgb58x/pyvips_feab40013bfd403ebc1c24a7452c644c/setup.py'"'"'; __file__='"'"'/private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-install-ibjgb58x/pyvips_feab40013bfd403ebc1c24a7452c644c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-record-5i0zqa4j/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/andrea/Library/Python/3.9/include/python3.9/pyvips
         cwd: /private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-install-ibjgb58x/pyvips_feab40013bfd403ebc1c24a7452c644c/
    Complete output (73 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-universal2-3.9
    creating build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/vinterpolate.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/enums.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/vsourcecustom.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/version.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/vobject.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/error.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/vtargetcustom.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/vregion.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/__init__.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/vimage.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/vdecls.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/gvalue.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/voperation.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/vtarget.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/pyvips_build.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/gobject.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/base.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/vsource.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    copying pyvips/vconnection.py -> build/lib.macosx-10.9-universal2-3.9/pyvips
    running build_ext
    generating cffi module 'build/temp.macosx-10.9-universal2-3.9/_libvips.c'
    creating build/temp.macosx-10.9-universal2-3.9
    building '_libvips' extension
    creating build/temp.macosx-10.9-universal2-3.9/build
    creating build/temp.macosx-10.9-universal2-3.9/build/temp.macosx-10.9-universal2-3.9
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DHWY_SHARED_DEFINE -I/opt/homebrew/Cellar/libarchive/3.7.2/include -I/opt/homebrew/Cellar/vips/8.15.2/include -I/opt/homebrew/Cellar/fftw/3.3.10_1/include -I/opt/homebrew/Cellar/cfitsio/4.4.0/include -I/opt/homebrew/Cellar/libimagequant/4.3.0/include -I/opt/homebrew/Cellar/cgif/0.3.2/include -I/opt/homebrew/Cellar/libexif/0.6.24/include -I/opt/homebrew/Cellar/libspng/0.7.4/include -I/opt/homebrew/Cellar/webp/1.3.2/include -I/opt/homebrew/Cellar/webp/1.3.2/include/webp -I/opt/homebrew/Cellar/pango/1.52.1/include/pango-1.0 -I/opt/homebrew/Cellar/harfbuzz/8.3.1/include/harfbuzz -I/opt/homebrew/Cellar/pango/1.52.1/include/pango-1.0 -I/opt/homebrew/Cellar/fribidi/1.0.13/include/fribidi -I/opt/homebrew/Cellar/harfbuzz/8.3.1/include/harfbuzz -I/opt/homebrew/Cellar/graphite2/1.3.14/include -I/opt/homebrew/Cellar/librsvg/2.58.0/include/librsvg-2.0 -I/opt/homebrew/Cellar/gdk-pixbuf/2.42.10_1/include/gdk-pixbuf-2.0 -I/opt/homebrew/Cellar/libtiff/4.6.0/include -I/opt/homebrew/Cellar/zstd/1.5.5/include -I/opt/homebrew/Cellar/xz/5.6.1/include -I/opt/homebrew/Cellar/jpeg-turbo/3.0.2/include -I/opt/homebrew/Cellar/cairo/1.18.0/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.8/include -I/opt/homebrew/Cellar/libxcb/1.16.1/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.42.2/include/pixman-1 -I/opt/homebrew/Cellar/libmatio/1.5.26/include -I/opt/homebrew/opt/hdf5/include -I/opt/homebrew/Cellar/little-cms2/2.16/include -I/opt/homebrew/Cellar/openexr/3.2.4/include -I/opt/homebrew/Cellar/openexr/3.2.4/include/OpenEXR -I/opt/homebrew/Cellar/imath/3.1.11/include -I/opt/homebrew/Cellar/imath/3.1.11/include/Imath -I/opt/homebrew/Cellar/openjpeg/2.5.2/include/openjpeg-2.5 -I/opt/homebrew/Cellar/highway/1.1.0/include -I/opt/homebrew/Cellar/glib/2.80.0_2/include -I/opt/homebrew/Cellar/glib/2.80.0_2/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.0_2/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.43/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/ffi -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c build/temp.macosx-10.9-universal2-3.9/_libvips.c -o build/temp.macosx-10.9-universal2-3.9/build/temp.macosx-10.9-universal2-3.9/_libvips.o
    build/temp.macosx-10.9-universal2-3.9/_libvips.c:5718:28: error: incompatible function pointer types passing 'void *(*)(uint64_t, void *, void *)' (aka 'void *(*)(unsigned long long, void *, void *)') to parameter of type 'VipsTypeMap2Fn' (aka 'void *(*)(unsigned long, void *, void *)') [-Wincompatible-function-pointer-types]
      return vips_type_map(x0, x1, x2, x3);
                               ^~
    /opt/homebrew/Cellar/vips/8.15.2/include/vips/object.h:676:48: note: passing argument to parameter 'fn' here
    void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b);
                                                   ^
    build/temp.macosx-10.9-universal2-3.9/_libvips.c:5768:32: error: incompatible function pointer types passing 'void *(*)(uint64_t, void *, void *)' (aka 'void *(*)(unsigned long long, void *, void *)') to parameter of type 'VipsTypeMap2Fn' (aka 'void *(*)(unsigned long, void *, void *)') [-Wincompatible-function-pointer-types]
      { result = vips_type_map(x0, x1, x2, x3); }
                                   ^~
    /opt/homebrew/Cellar/vips/8.15.2/include/vips/object.h:676:48: note: passing argument to parameter 'fn' here
    void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b);
                                                   ^
    build/temp.macosx-10.9-universal2-3.9/_libvips.c:6208:27: error: incompatible function pointer types passing 'void (*)(void *)' to parameter of type 'VipsCallbackFn' (aka 'int (*)(void *, void *)') [-Wincompatible-function-pointer-types]
      vips_value_set_blob(x0, x1, x2, x3);
                              ^~
    /opt/homebrew/Cellar/vips/8.15.2/include/vips/type.h:275:17: note: passing argument to parameter 'free_fn' here
            VipsCallbackFn free_fn, const void *data, size_t length);
                           ^
    build/temp.macosx-10.9-universal2-3.9/_libvips.c:6256:29: error: incompatible function pointer types passing 'void (*)(void *)' to parameter of type 'VipsCallbackFn' (aka 'int (*)(void *, void *)') [-Wincompatible-function-pointer-types]
      { vips_value_set_blob(x0, x1, x2, x3); }
                                ^~
    /opt/homebrew/Cellar/vips/8.15.2/include/vips/type.h:275:17: note: passing argument to parameter 'free_fn' here
            VipsCallbackFn free_fn, const void *data, size_t length);
                           ^
    build/temp.macosx-10.9-universal2-3.9/_libvips.c:6433:19: warning: incompatible pointer types initializing 'GTypeClass **' (aka 'struct _GTypeClass **') with an expression of type 'GTypeClass *' (aka 'struct _GTypeClass *') [-Wincompatible-pointer-types]
      { GTypeClass * *tmp = &p->g_type_class; (void)tmp; }
                      ^     ~~~~~~~~~~~~~~~~
    build/temp.macosx-10.9-universal2-3.9/_libvips.c:6457:19: warning: incompatible pointer types initializing 'GTypeClass **' (aka 'struct _GTypeClass **') with an expression of type 'GTypeClass *' (aka 'struct _GTypeClass *') [-Wincompatible-pointer-types]
      { GTypeClass * *tmp = &p->g_type_class; (void)tmp; }
                      ^     ~~~~~~~~~~~~~~~~
    build/temp.macosx-10.9-universal2-3.9/_libvips.c:6519:15: warning: incompatible pointer types initializing 'uint64_t (*)[2]' (aka 'unsigned long long (*)[2]') with an expression of type 'union (unnamed union at /opt/homebrew/Cellar/glib/2.80.0_2/include/glib-2.0/gobject/gvalue.h:119:3) (*)[2]' [-Wincompatible-pointer-types]
      { uint64_t(*tmp)[2] = &p->data; (void)tmp; }
                  ^         ~~~~~~~~
    build/temp.macosx-10.9-universal2-3.9/_libvips.c:6589:13: warning: incompatible pointer types initializing 'void **' with an expression of type 'VipsArgumentTable **' (aka 'struct _GHashTable **') [-Wincompatible-pointer-types]
      { void * *tmp = &p->argument_table; (void)tmp; }
                ^     ~~~~~~~~~~~~~~~~~~
    build/temp.macosx-10.9-universal2-3.9/_libvips.c:6619:13: warning: incompatible pointer types initializing 'void **' with an expression of type 'GTimer **' (aka 'struct _GTimer **') [-Wincompatible-pointer-types]
      { void * *tmp = &p->start; (void)tmp; }
                ^     ~~~~~~~~~
    5 warnings and 4 errors generated.
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-install-ibjgb58x/pyvips_feab40013bfd403ebc1c24a7452c644c/setup.py'"'"'; __file__='"'"'/private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-install-ibjgb58x/pyvips_feab40013bfd403ebc1c24a7452c644c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/v6/p_r0gtgx2b16tt6gbbzgf0sh0000gn/T/pip-record-5i0zqa4j/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/andrea/Library/Python/3.9/include/python3.9/pyvips Check the logs for full command output.
WARNING: You are using pip version 21.2.4; however, version 24.0 is available.
You should consider upgrading via the '/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install --upgrade pip' command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions