(test_pysap) christophermarouani@dhcp-172-30-36-180 MRI_msk % pip install python-pysap Collecting python-pysap Using cached python-PySAP-0.2.1.tar.gz (52 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: scipy>=1.5.4 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from python-pysap) (1.13.0) Requirement already satisfied: numpy>=1.19.5 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from python-pysap) (1.26.4) Requirement already satisfied: matplotlib>=3.3.4 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from python-pysap) (3.8.4) Collecting astropy>=4.1 (from python-pysap) Using cached astropy-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl.metadata (9.8 kB) Collecting nibabel>=3.2.1 (from python-pysap) Using cached nibabel-5.2.1-py3-none-any.whl.metadata (8.8 kB) Requirement already satisfied: progressbar2>=3.53.1 in /Users/christophermarouani/.local/lib/python3.12/site-packages (from python-pysap) (4.4.2) Requirement already satisfied: modopt>=1.6.1 in /Users/christophermarouani/.local/lib/python3.12/site-packages (from python-pysap) (1.7.2) Requirement already satisfied: scikit-learn>=0.24.1 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from python-pysap) (1.4.2) Requirement already satisfied: scikit-image>=0.17.2 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from python-pysap) (0.23.1) Collecting PyWavelets>=1.1.1 (from python-pysap) Using cached pywavelets-1.6.0-cp312-cp312-macosx_10_9_x86_64.whl.metadata (9.0 kB) Collecting pyerfa>=2.0.1.1 (from astropy>=4.1->python-pysap) Using cached pyerfa-2.0.1.4-cp39-abi3-macosx_10_9_x86_64.whl.metadata (5.7 kB) Collecting astropy-iers-data>=0.2024.2.26.0.28.55 (from astropy>=4.1->python-pysap) Using cached astropy_iers_data-0.2024.4.22.0.29.50-py3-none-any.whl.metadata (5.1 kB) Collecting PyYAML>=3.13 (from astropy>=4.1->python-pysap) Using cached PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl.metadata (2.1 kB) Requirement already satisfied: packaging>=19.0 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from astropy>=4.1->python-pysap) (24.0) Requirement already satisfied: contourpy>=1.0.1 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from matplotlib>=3.3.4->python-pysap) (1.2.1) Requirement already satisfied: cycler>=0.10 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from matplotlib>=3.3.4->python-pysap) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from matplotlib>=3.3.4->python-pysap) (4.51.0) Requirement already satisfied: kiwisolver>=1.3.1 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from matplotlib>=3.3.4->python-pysap) (1.4.5) Requirement already satisfied: pillow>=8 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from matplotlib>=3.3.4->python-pysap) (10.3.0) Requirement already satisfied: pyparsing>=2.3.1 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from matplotlib>=3.3.4->python-pysap) (3.1.2) Requirement already satisfied: python-dateutil>=2.7 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from matplotlib>=3.3.4->python-pysap) (2.9.0) Requirement already satisfied: tqdm in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from modopt>=1.6.1->python-pysap) (4.66.2) Requirement already satisfied: importlib-metadata in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from modopt>=1.6.1->python-pysap) (7.1.0) Requirement already satisfied: python-utils>=3.8.1 in /Users/christophermarouani/.local/lib/python3.12/site-packages (from progressbar2>=3.53.1->python-pysap) (3.8.2) Requirement already satisfied: networkx>=2.8 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from scikit-image>=0.17.2->python-pysap) (3.3) Requirement already satisfied: imageio>=2.33 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from scikit-image>=0.17.2->python-pysap) (2.34.0) Requirement already satisfied: tifffile>=2022.8.12 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from scikit-image>=0.17.2->python-pysap) (2024.4.18) Requirement already satisfied: lazy-loader>=0.4 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from scikit-image>=0.17.2->python-pysap) (0.4) Requirement already satisfied: joblib>=1.2.0 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from scikit-learn>=0.24.1->python-pysap) (1.4.0) Requirement already satisfied: threadpoolctl>=2.0.0 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from scikit-learn>=0.24.1->python-pysap) (3.4.0) Requirement already satisfied: six>=1.5 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from python-dateutil>=2.7->matplotlib>=3.3.4->python-pysap) (1.16.0) Requirement already satisfied: typing-extensions>3.10.0.2 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from python-utils>=3.8.1->progressbar2>=3.53.1->python-pysap) (4.11.0) Requirement already satisfied: zipp>=0.5 in /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages (from importlib-metadata->modopt>=1.6.1->python-pysap) (3.17.0) Using cached astropy-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl (6.5 MB) Using cached nibabel-5.2.1-py3-none-any.whl (3.3 MB) Using cached pywavelets-1.6.0-cp312-cp312-macosx_10_9_x86_64.whl (4.4 MB) Using cached astropy_iers_data-0.2024.4.22.0.29.50-py3-none-any.whl (1.9 MB) Using cached pyerfa-2.0.1.4-cp39-abi3-macosx_10_9_x86_64.whl (341 kB) Using cached PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl (178 kB) Building wheels for collected packages: python-pysap Building wheel for python-pysap (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [183 lines of output] /Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead. By 2024-Sep-26, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-cpython-312 creating build/lib.macosx-10.9-x86_64-cpython-312/pysap copying pysap/configure.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap copying pysap/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap copying pysap/utils.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap copying pysap/info.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap copying pysap/data.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap creating build/lib.macosx-10.9-x86_64-cpython-312/pysap/plugins copying pysap/plugins/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/plugins creating build/lib.macosx-10.9-x86_64-cpython-312/pysap/extensions copying pysap/extensions/wrapper.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/extensions copying pysap/extensions/tools.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/extensions copying pysap/extensions/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/extensions copying pysap/extensions/sparse2d.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/extensions copying pysap/extensions/transform.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/extensions copying pysap/extensions/formating.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/extensions creating build/lib.macosx-10.9-x86_64-cpython-312/pysap/plotting copying pysap/plotting/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/plotting copying pysap/plotting/utils.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/plotting copying pysap/plotting/transform.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/plotting copying pysap/plotting/image.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/plotting creating build/lib.macosx-10.9-x86_64-cpython-312/pysap/apps copying pysap/apps/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/apps creating build/lib.macosx-10.9-x86_64-cpython-312/pysap/base copying pysap/base/plugins.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base copying pysap/base/io.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base copying pysap/base/observable.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base copying pysap/base/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base copying pysap/base/utils.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base copying pysap/base/transform.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base copying pysap/base/exceptions.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base copying pysap/base/image.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base creating build/lib.macosx-10.9-x86_64-cpython-312/pysap/base/loaders copying pysap/base/loaders/tif.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base/loaders copying pysap/base/loaders/numpy_binary.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base/loaders copying pysap/base/loaders/fits.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base/loaders copying pysap/base/loaders/loader_base.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base/loaders copying pysap/base/loaders/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base/loaders copying pysap/base/loaders/mat.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base/loaders copying pysap/base/loaders/nifti.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/base/loaders creating build/lib.macosx-10.9-x86_64-cpython-312/pysap/test copying pysap/test/test_examples.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/test copying pysap/test/test_binding.py -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/test copying pysap/test/errors.json -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/test copying pysap/apps/pypipe_config.json -> build/lib.macosx-10.9-x86_64-cpython-312/pysap/apps running build_ext /private/var/folders/q3/sl_3k64s2ldb0zk8pjw9qplc0000gn/T/pip-install-gokhpolf/python-pysap_02b9ddfe18f64b1084d91e66a7f783f6/setup.py:97: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. cmake_version = LooseVersion( Building "pysparse" in build/temp.macosx-10.9-x86_64-cpython-312... Cmake args: ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/q3/sl_3k64s2ldb0zk8pjw9qplc0000gn/T/pip-install-gokhpolf/python-pysap_02b9ddfe18f64b1084d91e66a7f783f6/build/lib.macosx-10.9-x86_64-cpython-312', '-DPYTHON_EXECUTABLE=/Users/christophermarouani/opt/anaconda3/envs/msk_v/bin/python3.12', '-DCMAKE_BUILD_TYPE=Release'] Cmake build args: ['--config', 'Release', '--', '-j8'] -- 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 -- Binary output path : /Users/christophermarouani/opt/anaconda3/envs/msk_v/bin -- Configuring done (1.9s) -- Generating done (0.0s) -- Build files have been written to: /private/var/folders/q3/sl_3k64s2ldb0zk8pjw9qplc0000gn/T/pip-install-gokhpolf/python-pysap_02b9ddfe18f64b1084d91e66a7f783f6/build/temp.macosx-10.9-x86_64-cpython-312 [ 12%] Creating directories for 'sparse2d' [ 25%] Performing download step (git clone) for 'sparse2d' Cloning into 'sparse2d'... Already on 'master' Your branch is up to date with 'origin/master'. [ 37%] Performing update step for 'sparse2d' [ 50%] No patch step for 'sparse2d' [ 62%] Performing configure step for 'sparse2d' -- The CXX compiler identification is AppleClang 14.0.0.14000029 -- 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 PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") -- CMake Build Type: RELEASE -- Found Python: /opt/homebrew/Frameworks/Python.framework/Versions/3.12/bin/python3.12 (found version "3.12.3") found components: Interpreter Development Development.Module Development.Embed CMake Deprecation Warning at /private/var/folders/q3/sl_3k64s2ldb0zk8pjw9qplc0000gn/T/pip-install-gokhpolf/python-pysap_02b9ddfe18f64b1084d91e66a7f783f6/build/temp.macosx-10.9-x86_64-cpython-312/sparse2d/src/sparse2d-build/_deps/pybind11-src/CMakeLists.txt:8 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- pybind11 v2.10.3 -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- Performing Test HAS_FLTO_THIN -- Performing Test HAS_FLTO_THIN - Success CMake Error at CMakeLists.txt:75 (find_package): By not providing "FindBigMac.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "BigMac", but CMake did not find one. Could not find a package configuration file provided by "BigMac" (requested version 0.0.6) with any of the following names: BigMacConfig.cmake bigmac-config.cmake Add the installation prefix of "BigMac" to CMAKE_PREFIX_PATH or set "BigMac_DIR" to a directory containing one of the above files. If "BigMac" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! make[2]: *** [sparse2d/src/sparse2d-stamp/sparse2d-configure] Error 1 make[1]: *** [CMakeFiles/sparse2d.dir/all] Error 2 make: *** [all] Error 2 Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/private/var/folders/q3/sl_3k64s2ldb0zk8pjw9qplc0000gn/T/pip-install-gokhpolf/python-pysap_02b9ddfe18f64b1084d91e66a7f783f6/setup.py", line 204, in setup( File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/__init__.py", line 104, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 200, in run_commands dist.run_commands() File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/wheel/bdist_wheel.py", line 368, in run self.run_command("build") File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 132, in run self.run_command(cmd_name) File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/private/var/folders/q3/sl_3k64s2ldb0zk8pjw9qplc0000gn/T/pip-install-gokhpolf/python-pysap_02b9ddfe18f64b1084d91e66a7f783f6/setup.py", line 105, in run self.build_extension(ext) File "/private/var/folders/q3/sl_3k64s2ldb0zk8pjw9qplc0000gn/T/pip-install-gokhpolf/python-pysap_02b9ddfe18f64b1084d91e66a7f783f6/setup.py", line 151, in build_extension subprocess.check_call( File "/Users/christophermarouani/opt/anaconda3/envs/msk_v/lib/python3.12/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j8']' returned non-zero exit status 2. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for python-pysap Running setup.py clean for python-pysap Failed to build python-pysap ERROR: Could not build wheels for python-pysap, which is required to install pyproject.toml-based projects