ANTsX / ANTsPy

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.
https://antspyx.readthedocs.io
Apache License 2.0
608 stars 161 forks source link

ants.plot() issue on Mac M1 with python 3.11 #482

Closed roohy466 closed 1 year ago

roohy466 commented 1 year ago

Describe the bug It took very long time to install ants using pip. When I used the --verbose option from pip ,I could see lots of warnings. after successful installation I am able to read files but the plot function does not work!

To Reproduce

ants.plot(ants.get_ants_data('mni'))
  ---------------------------------------------------------------------------
  RuntimeError                              Traceback (most recent call last)
  Cell In[103], line 1
  ----> 1 ants.plot(ants.get_ants_data('mni'))

  File /opt/homebrew/lib/python3.11/site-packages/ants/viz/plot.py:2388, in plot(image, overlay, blend, alpha, cmap, overlay_cmap, overlay_alpha, vminol, vmaxol, cbar, cbar_length, cbar_dx, cbar_vertical, axis, nslices, slices, ncol, slice_buffer, black_bg, bg_thresh_quant, bg_val_quant, domain_image_map, crop, scale, reverse, title, title_fontsize, title_dx, title_dy, filename, dpi, figsize, reorient, resample)
     2385         overlay = overlay.resample_image(tuple(new_spacing))
     2387 if reorient:
  -> 2388     image = image.reorient_image2("LAI")
     2389 img_arr = image.numpy()
     2390 # reorder dims so that chosen axis is first

  File /opt/homebrew/lib/python3.11/site-packages/ants/registration/reorient_image.py:73, in reorient_image2(image, orientation)
       70     image = image.clone('float')
       72 libfn = utils.get_lib_fn('reorientImage2')
  ---> 73 itkimage = libfn(image.pointer, orientation)
       75 new_img = iio.ANTsImage(pixeltype='float', dimension=ndim,
       76                      components=image.components, pointer=itkimage)#.clone(inpixeltype)
       77 if inpixeltype != 'float':

  RuntimeError: Caught an unknown exception!

Desktop (please complete the following information): Model Name: Mac Studio Model Identifier: Mac13,2 Chip: Apple M1 Ultra Total Number of Cores: 20 (16 performance and 4 efficiency) Memory: 128 GB

Additional context Add any other context about the problem here.

stnava commented 1 year ago

try

ants.plot( ants.image_read(ants.get_ants_data('mni')))
roohy466 commented 1 year ago
  ants.image_read(ants.get_ants_data('mni'))
  ANTsImage (RPI)
      Pixel Type : float (float32)
      Components : 1
      Dimensions : (182, 218, 182)
      Spacing    : (1.0, 1.0, 1.0)
      Origin     : (-90.0, 126.0, -72.0)
      Direction  : [ 1.  0.  0.  0. -1.  0.  0.  0.  1.]

  ants.plot( ants.image_read(ants.get_ants_data('mni')))

  ---------------------------------------------------------------------------
  RuntimeError                              Traceback (most recent call last)
  Cell In[40], line 1
  ----> 1 ants.plot( ants.image_read(ants.get_ants_data('mni')))

  File /opt/homebrew/lib/python3.11/site-packages/ants/viz/plot.py:2388, in plot(image, overlay, blend, alpha, cmap, overlay_cmap, overlay_alpha, vminol, vmaxol, cbar, cbar_length, cbar_dx, cbar_vertical, axis, nslices, slices, ncol, slice_buffer, black_bg, bg_thresh_quant, bg_val_quant, domain_image_map, crop, scale, reverse, title, title_fontsize, title_dx, title_dy, filename, dpi, figsize, reorient, resample)
     2385         overlay = overlay.resample_image(tuple(new_spacing))
     2387 if reorient:
  -> 2388     image = image.reorient_image2("LAI")
     2389 img_arr = image.numpy()
     2390 # reorder dims so that chosen axis is first
stnava commented 1 year ago

cannot reproduce this on Apple M2

roohy466 commented 1 year ago

I tried with verbose!

     % pip install --verbose antspyx               
    Using pip 23.1.2 from /opt/homebrew/lib/python3.11/site-packages/pip (python 3.11)
    WARNING: Skipping /opt/homebrew/lib/python3.11/site-packages/protobuf-4.23.3-py3.11.egg-info due to invalid metadata entry 'name'
    WARNING: Skipping /opt/homebrew/lib/python3.11/site-packages/numpy-1.25.0-py3.11.egg-info due to invalid metadata entry 'name'
    WARNING: Skipping /opt/homebrew/lib/python3.11/site-packages/protobuf-4.23.3-py3.11.egg-info due to invalid metadata entry 'name'
    WARNING: Skipping /opt/homebrew/lib/python3.11/site-packages/numpy-1.25.0-py3.11.egg-info due to invalid metadata entry 'name'
    Collecting antspyx
      Using cached antspyx-0.3.8.tar.gz (248.7 MB)
      Running command python setup.py egg_info
      running egg_info
      creating /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-pip-egg-info-vxk_s0dl/antspyx.egg-info
      writing /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-pip-egg-info-vxk_s0dl/antspyx.egg-info/PKG-INFO
      writing dependency_links to /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-pip-egg-info-vxk_s0dl/antspyx.egg-info/dependency_links.txt
      writing requirements to /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-pip-egg-info-vxk_s0dl/antspyx.egg-info/requires.txt
      writing top-level names to /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-pip-egg-info-vxk_s0dl/antspyx.egg-info/top_level.txt
      writing manifest file '/private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-pip-egg-info-vxk_s0dl/antspyx.egg-info/SOURCES.txt'
      reading manifest file '/private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-pip-egg-info-vxk_s0dl/antspyx.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.sh'
      warning: no files found matching '*.so'
      adding license file 'LICENSE'
      writing manifest file '/private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-pip-egg-info-vxk_s0dl/antspyx.egg-info/SOURCES.txt'
      Preparing metadata (setup.py) ... done
    Requirement already satisfied: pandas in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (2.0.0)
    Requirement already satisfied: numpy in ./Library/Python/3.11/lib/python/site-packages (from antspyx) (1.25.0)
    Requirement already satisfied: scipy in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (1.10.1)
    Requirement already satisfied: scikit-image in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (0.21.0)
    Requirement already satisfied: scikit-learn in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (1.2.2)
    Requirement already satisfied: statsmodels in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (0.13.5)
    Requirement already satisfied: webcolors in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (1.13)
    Requirement already satisfied: matplotlib in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (3.7.1)
    Requirement already satisfied: pyyaml in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (6.0)
    Requirement already satisfied: chart_studio in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (1.1.0)
    Requirement already satisfied: Pillow in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (9.5.0)
    Requirement already satisfied: nibabel in /opt/homebrew/lib/python3.11/site-packages (from antspyx) (5.1.0)
    Requirement already satisfied: plotly in /opt/homebrew/lib/python3.11/site-packages (from chart_studio->antspyx) (5.15.0)
    Requirement already satisfied: requests in ./Library/Python/3.11/lib/python/site-packages (from chart_studio->antspyx) (2.31.0)
    Requirement already satisfied: retrying>=1.3.3 in /opt/homebrew/lib/python3.11/site-packages (from chart_studio->antspyx) (1.3.4)
    Requirement already satisfied: six in /opt/homebrew/lib/python3.11/site-packages (from chart_studio->antspyx) (1.16.0)
    Requirement already satisfied: contourpy>=1.0.1 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib->antspyx) (1.0.7)
    Requirement already satisfied: cycler>=0.10 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib->antspyx) (0.11.0)
    Requirement already satisfied: fonttools>=4.22.0 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib->antspyx) (4.39.3)
    Requirement already satisfied: kiwisolver>=1.0.1 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib->antspyx) (1.4.4)
    Requirement already satisfied: packaging>=20.0 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib->antspyx) (23.1)
    Requirement already satisfied: pyparsing>=2.3.1 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib->antspyx) (3.0.9)
    Requirement already satisfied: python-dateutil>=2.7 in /opt/homebrew/lib/python3.11/site-packages (from matplotlib->antspyx) (2.8.2)
    Requirement already satisfied: pytz>=2020.1 in /opt/homebrew/lib/python3.11/site-packages (from pandas->antspyx) (2023.3)
    Requirement already satisfied: tzdata>=2022.1 in /opt/homebrew/lib/python3.11/site-packages (from pandas->antspyx) (2023.3)
    Requirement already satisfied: networkx>=2.8 in /opt/homebrew/lib/python3.11/site-packages (from scikit-image->antspyx) (3.1)
    Requirement already satisfied: imageio>=2.27 in /opt/homebrew/lib/python3.11/site-packages (from scikit-image->antspyx) (2.31.1)
    Requirement already satisfied: tifffile>=2022.8.12 in /opt/homebrew/lib/python3.11/site-packages (from scikit-image->antspyx) (2023.4.12)
    Requirement already satisfied: PyWavelets>=1.1.1 in /opt/homebrew/lib/python3.11/site-packages (from scikit-image->antspyx) (1.4.1)
    Requirement already satisfied: lazy_loader>=0.2 in /opt/homebrew/lib/python3.11/site-packages (from scikit-image->antspyx) (0.2)
    Requirement already satisfied: joblib>=1.1.1 in /opt/homebrew/lib/python3.11/site-packages (from scikit-learn->antspyx) (1.2.0)
    Requirement already satisfied: threadpoolctl>=2.0.0 in /opt/homebrew/lib/python3.11/site-packages (from scikit-learn->antspyx) (3.1.0)
    Requirement already satisfied: patsy>=0.5.2 in /opt/homebrew/lib/python3.11/site-packages (from statsmodels->antspyx) (0.5.3)
    Requirement already satisfied: tenacity>=6.2.0 in /opt/homebrew/lib/python3.11/site-packages (from plotly->chart_studio->antspyx) (8.2.2)
    Requirement already satisfied: charset-normalizer<4,>=2 in /opt/homebrew/lib/python3.11/site-packages (from requests->chart_studio->antspyx) (3.1.0)
    Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/lib/python3.11/site-packages (from requests->chart_studio->antspyx) (3.4)
    Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/homebrew/lib/python3.11/site-packages (from requests->chart_studio->antspyx) (1.26.15)
    Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.11/site-packages (from requests->chart_studio->antspyx) (2022.12.7)
    Building wheels for collected packages: antspyx
      Running command python setup.py bdist_wheel
      running bdist_wheel
      running build
      running build_py
      running build_ext
      Configuring ITK
      Using Local ITK Installation at:
       /opt/homebrew/Cellar/itk/5.3.0_2
      Configuring ANTs core
      Cloning into 'pybind11'...
      Cloning into 'antsrepo'...
      Already on 'master'
      Your branch is up to date with 'origin/master'.
      Already up to date.
      Note: switching to '276cf0717945d3dd3c4298c607d9d6a788ba574e'.

      You are in 'detached HEAD' state. You can look around, make experimental
      changes and commit them, and you can discard any commits you make in this
      state without impacting any branches by switching back to a branch.

      If you want to create a new branch to retain commits you create, you may
      do so (now or later) by using -c with the switch command. Example:

        git switch -c <new-branch-name>

      Or undo this operation with:

        git switch -

      Turn off this advice by setting config variable advice.detachedHead to false

      HEAD is now at 276cf071 Merge pull request #1516 from ANTsX/parseWinPointers
      Configuring ANTsPy library
      /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/setup.py:109: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        cmake_version = LooseVersion(
      ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib', '-DPYTHON_EXECUTABLE=/opt/homebrew/opt/python@3.11/bin/python3.11', '-DCMAKE_BUILD_TYPE=Release']
      -- The C compiler identification is AppleClang 14.0.0.14000029
      -- The CXX compiler identification is AppleClang 14.0.0.14000029
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found HDF5: /opt/homebrew/Cellar/hdf5/1.14.1/lib/libhdf5_cpp.dylib;/opt/homebrew/Cellar/hdf5/1.14.1/lib/libhdf5.dylib;/opt/homebrew/opt/libaec/lib/libsz.dylib;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libz.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libdl.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libm.tbd;/opt/homebrew/Cellar/hdf5/1.14.1/lib/libhdf5.dylib;/opt/homebrew/opt/libaec/lib/libsz.dylib;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libz.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libdl.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libm.tbd (found version "1.14.1-2") found components: CXX C HL
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE
      -- Found GLEW: /opt/homebrew/lib/libGLEW.dylib
      -- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/OpenGL.framework  found components: OpenGL
      -- Found Python3: /opt/homebrew/Frameworks/Python.framework/Versions/3.11/bin/python3.11 (found suitable version "3.11.4", minimum required is "3.11") found components: Interpreter Development.Module Development.Embed
      -- Found FontConfig: /opt/homebrew/lib/libfontconfig.dylib
      -- Found HDF5: /opt/homebrew/Cellar/hdf5/1.14.1/lib/libhdf5.dylib;/opt/homebrew/opt/libaec/lib/libsz.dylib;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libz.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libdl.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libm.tbd (found version "1.14.1-2") found components: C HL
      -- Found utf8cpp: /opt/homebrew/include/utf8cpp
      -- Found OGG: /opt/homebrew/lib/libogg.dylib
      -- Found THEORA: /opt/homebrew/lib/libtheora.dylib
      -- Found NetCDF: /opt/homebrew/include (found version "4.9.2")
      -- Found JsonCpp: /opt/homebrew/lib/libjsoncpp.dylib (found suitable version "1.9.5", minimum required is "0.7.0")
      -- Found LibXml2: /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libxml2.tbd (found version "2.9.4")
      -- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libz.tbd (found version "1.2.11")
      -- Found GL2PS: /opt/homebrew/lib/libgl2ps.dylib (found suitable version "1.4.2", minimum required is "1.4.2")
      -- Found PNG: /opt/homebrew/lib/libpng.dylib (found version "1.6.40")
      -- Found Boost: /opt/homebrew/lib/cmake/Boost-1.82.0/BoostConfig.cmake (found suitable exact version "1.82.0")
      -- Found Boost: /opt/homebrew/lib/cmake/Boost-1.82.0/BoostConfig.cmake (found suitable exact version "1.82.0") found components: serialization
      -- Found SQLite3: /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include (found version "3.39.5")
      -- Found Eigen3: /opt/homebrew/include/eigen3 (found version "3.4.0")
      -- Found EXPAT: /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib/libexpat.tbd (found version "2.4.8")
      -- Found double-conversion: /opt/homebrew/lib/libdouble-conversion.dylib
      -- Found LZ4: /opt/homebrew/lib/liblz4.dylib (found version "1.9.4")
      -- Found LZMA: /opt/homebrew/lib/liblzma.dylib (found version "5.4.3")
      -- Found JPEG: /opt/homebrew/lib/libjpeg.dylib (found version "80")
      -- Found TIFF: /opt/homebrew/lib/libtiff.dylib (found version "4.5.1")
      -- pybind11 v2.10.3
      -- Performing Test HAS_FLTO
      -- Performing Test HAS_FLTO - Success
      -- Performing Test HAS_FLTO_THIN
      -- Performing Test HAS_FLTO_THIN - Success
      -- Configuring done (6.5s)
      -- Generating done (0.8s)
      CMake Warning:
        Manually-specified variables were not used by the project:

          PYTHON_EXECUTABLE

      -- Build files have been written to: /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/build/temp.macosx-12-arm64-cpython-311
      [  1%] Building CXX object CMakeFiles/antsUtilities.dir/antscore/antsUtilities.cxx.o
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:33:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageRegion.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkContinuousIndex.h:21:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkPoint.h:23:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkVector.h:351:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkVector.hxx:21:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMath.h:34:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_math.h:199:15: error: expected unqualified-id
        inline bool isinf(TArg arg) { return bool(std::isinf(arg)); }
                    ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:160:7: note: expanded from macro 'isinf'
          ( sizeof(x) == sizeof(float)  ? __inline_isinff((float)(x))          \
            ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:33:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageRegion.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkContinuousIndex.h:21:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkPoint.h:23:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkVector.h:351:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkVector.hxx:21:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMath.h:34:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_math.h:199:15: error: expected ')'
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:160:7: note: expanded from macro 'isinf'
          ( sizeof(x) == sizeof(float)  ? __inline_isinff((float)(x))          \
            ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_math.h:199:15: note: to match this '('
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:160:5: note: expanded from macro 'isinf'
          ( sizeof(x) == sizeof(float)  ? __inline_isinff((float)(x))          \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:33:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageRegion.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkContinuousIndex.h:21:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkPoint.h:23:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkVector.h:351:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkVector.hxx:21:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMath.h:326:12: error: expected unqualified-id
        if (std::signbit(x1) != std::signbit(x2))
                 ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:170:5: note: expanded from macro 'signbit'
          ( sizeof(x) == sizeof(float)  ? __inline_signbitf((float)(x))        \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:33:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageRegion.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkContinuousIndex.h:21:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkPoint.h:23:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkVector.h:351:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkVector.hxx:21:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMath.h:326:32: error: expected unqualified-id
        if (std::signbit(x1) != std::signbit(x2))
                                     ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:170:5: note: expanded from macro 'signbit'
          ( sizeof(x) == sizeof(float)  ? __inline_signbitf((float)(x))        \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:37:2: error: expected unqualified-id
       type_macro(float)
       ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:32:14: note: expanded from macro 'type_macro'
       inline bool isnan(std::complex<T >const& z) { return isnan(std::real(z)) || isnan(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
          ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
            ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:37:2: error: expected ')'
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:32:14: note: expanded from macro 'type_macro'
       inline bool isnan(std::complex<T >const& z) { return isnan(std::real(z)) || isnan(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
          ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
            ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:37:2: note: to match this '('
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:32:14: note: expanded from macro 'type_macro'
       inline bool isnan(std::complex<T >const& z) { return isnan(std::real(z)) || isnan(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
          ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:37:2: error: expected unqualified-id
       type_macro(float)
       ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:33:14: note: expanded from macro 'type_macro'
       inline bool isfinite(std::complex<T >const& z) { return isfinite(std::real(z)) && isfinite(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:7: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
            ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:37:2: error: expected ')'
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:33:14: note: expanded from macro 'type_macro'
       inline bool isfinite(std::complex<T >const& z) { return isfinite(std::real(z)) && isfinite(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:7: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
            ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:37:2: note: to match this '('
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:33:14: note: expanded from macro 'type_macro'
       inline bool isfinite(std::complex<T >const& z) { return isfinite(std::real(z)) && isfinite(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:5: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:38:2: error: expected unqualified-id
       type_macro(double)
       ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:32:14: note: expanded from macro 'type_macro'
       inline bool isnan(std::complex<T >const& z) { return isnan(std::real(z)) || isnan(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
          ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
            ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:38:2: error: expected ')'
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:32:14: note: expanded from macro 'type_macro'
       inline bool isnan(std::complex<T >const& z) { return isnan(std::real(z)) || isnan(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
          ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
            ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:38:2: note: to match this '('
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:32:14: note: expanded from macro 'type_macro'
       inline bool isnan(std::complex<T >const& z) { return isnan(std::real(z)) || isnan(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
          ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:38:2: error: expected unqualified-id
       type_macro(double)
       ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:33:14: note: expanded from macro 'type_macro'
       inline bool isfinite(std::complex<T >const& z) { return isfinite(std::real(z)) && isfinite(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:7: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
            ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:38:2: error: expected ')'
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:33:14: note: expanded from macro 'type_macro'
       inline bool isfinite(std::complex<T >const& z) { return isfinite(std::real(z)) && isfinite(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:7: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
            ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:38:2: note: to match this '('
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:33:14: note: expanded from macro 'type_macro'
       inline bool isfinite(std::complex<T >const& z) { return isfinite(std::real(z)) && isfinite(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:5: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:39:2: error: expected unqualified-id
       type_macro(long double)
       ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:32:14: note: expanded from macro 'type_macro'
       inline bool isnan(std::complex<T >const& z) { return isnan(std::real(z)) || isnan(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
          ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
            ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:39:2: error: expected ')'
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:32:14: note: expanded from macro 'type_macro'
       inline bool isnan(std::complex<T >const& z) { return isnan(std::real(z)) || isnan(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
          ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
            ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:39:2: note: to match this '('
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:32:14: note: expanded from macro 'type_macro'
       inline bool isnan(std::complex<T >const& z) { return isnan(std::real(z)) || isnan(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
          ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:39:2: error: expected unqualified-id
       type_macro(long double)
       ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:33:14: note: expanded from macro 'type_macro'
       inline bool isfinite(std::complex<T >const& z) { return isfinite(std::real(z)) && isfinite(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:7: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
            ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:18:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:39:2: error: expected ')'
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:33:14: note: expanded from macro 'type_macro'
       inline bool isfinite(std::complex<T >const& z) { return isfinite(std::real(z)) && isfinite(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:7: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
            ^
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:39:2: note: to match this '('
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_complex.h:33:14: note: expanded from macro 'type_macro'
       inline bool isfinite(std::complex<T >const& z) { return isfinite(std::real(z)) && isfinite(std::imag(z)); } \
                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:5: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:749:21: error: expected unqualified-id
            if (vnl_math::isnan(this->data_[i][j]))
                          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
          ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:761:22: error: expected unqualified-id
            if (!vnl_math::isfinite(this->data_[i][j]))
                           ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:5: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
          ^
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.cxx:2:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsUtilities.h:12:
      In file included from /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/ants/lib/antscore/antsAllocImage.h:3:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkImageBase.h:34:
      In file included from /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/itkMatrix.h:25:
      /opt/homebrew/Cellar/itk/5.3.0_2/include/ITK-5.3/vnl/vnl_matrix_fixed.hxx:787:37: error: expected unqualified-id
              std::cerr << char(vnl_math::isfinite(this->data_[i][ j]) ? '-' : '*');
                                          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:5: note: expanded from macro 'isfinite'
          ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
          ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      20 errors generated.
      make[2]: *** [CMakeFiles/antsUtilities.dir/antscore/antsUtilities.cxx.o] Error 1
      make[1]: *** [CMakeFiles/antsUtilities.dir/all] Error 2
      make: *** [all] Error 2
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/setup.py", line 177, in <module>
          setup(
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/homebrew/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 343, in run
          self.run_command("build")
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/setup.py", line 40, in run
          self.run_command("build_ext")
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/setup.py", line 116, in run
          self.build_extension(ext)
        File "/private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/setup.py", line 170, in build_extension
          subprocess.check_call(
        File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release']' returned non-zero exit status 2.
      error: subprocess-exited-with-error

      × python setup.py bdist_wheel did not run successfully.
      │ exit code: 1
      ╰─> See above for output.

      note: This error originates from a subprocess, and is likely not a problem with pip.
      full command: /opt/homebrew/opt/python@3.11/bin/python3.11 -u -c '
      exec(compile('"'"''"'"''"'"'
      # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
      #
      # - It imports setuptools before invoking setup.py, to enable projects that directly
      #   import from `distutils.core` to work with newer packaging standards.
      # - It provides a clear error message when setuptools is not installed.
      # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
      #   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
      #     manifest_maker: standard file '"'"'-c'"'"' not found".
      # - It generates a shim setup.py, for handling setup.cfg-only projects.
      import os, sys, tokenize

      try:
          import setuptools
      except ImportError as error:
          print(
              "ERROR: Can not execute `setup.py` since setuptools is not available in "
              "the build environment.",
              file=sys.stderr,
          )
          sys.exit(1)

      __file__ = %r
      sys.argv[0] = __file__

      if os.path.exists(__file__):
          filename = __file__
          with tokenize.open(__file__) as f:
              setup_py_code = f.read()
      else:
          filename = "<auto-generated setuptools caller>"
          setup_py_code = "from setuptools import setup; setup()"

      exec(compile(setup_py_code, filename, "exec"))
      '"'"''"'"''"'"' % ('"'"'/private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-wheel-sjg98aj3
      cwd: /private/var/folders/mc/b_zx4_ps5lvdnbdh813p_l3w0000gq/T/pip-install-bxr8zqwt/antspyx_07cda3da2c1246a4a5dc6f39ed465abd/
      Building wheel for antspyx (setup.py) ... error
      ERROR: Failed building wheel for antspyx
      Running setup.py clean for antspyx
      Running command python setup.py clean
      running clean
      removing 'build/temp.macosx-12-arm64-cpython-311' (and everything under it)
      'build/lib.macosx-12-arm64-cpython-311' does not exist -- can't clean it
      'build/bdist.macosx-12-arm64' does not exist -- can't clean it
      'build/scripts-3.11' does not exist -- can't clean it
      removing 'build'
    Failed to build antspyx
    ERROR: Could not build wheels for antspyx, which is required to install pyproject.toml-based projects
    WARNING: Skipping /opt/homebrew/lib/python3.11/site-packages/protobuf-4.23.3-py3.11.egg-info due to invalid metadata entry 'name'
    WARNING: Skipping /opt/homebrew/lib/python3.11/site-packages/numpy-1.25.0-py3.11.egg-info due to invalid metadata entry 'name' 
roohy466 commented 1 year ago

I have updated my Mac to latest version and problem solved!