patrick-kidger / signatory

Differentiable computations of the signature and logsignature transforms, on both CPU and GPU. (ICLR 2021)
Apache License 2.0
261 stars 34 forks source link

"ERROR: Could not build wheels for signatory, which is required to install pyproject.toml-based projects" on Mac OS Ventura #66

Closed amp1590 closed 5 months ago

amp1590 commented 5 months ago

[Update: I followed the solution mentioned in issue #43 but it didn't work for me! Still causing the same error.] I have PyTorch version 1.9.0 and I'm trying to install signatory version 1.2.6 on my Mac OS Ventura. I'm running the following command( reference: https://signatory.readthedocs.io/en/latest/pages/usage/installation.html#usage-install-from-source) on the terminal creating a virtual environment: pip install signatory==1.2.6.1.9.0 --no-cache-dir --force-reinstall And that is giving me the following result:

  Downloading signatory-1.2.6.1.9.0.tar.gz (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 1.7 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: signatory
  Building wheel for signatory (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [111 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-x86_64-cpython-38
      creating build/lib.macosx-10.9-x86_64-cpython-38/signatory
      copying src/signatory/signature_inversion_module.py -> build/lib.macosx-10.9-x86_64-cpython-38/signatory
      copying src/signatory/logsignature_module.py -> build/lib.macosx-10.9-x86_64-cpython-38/signatory
      copying src/signatory/signature_module.py -> build/lib.macosx-10.9-x86_64-cpython-38/signatory
      copying src/signatory/unstable.py -> build/lib.macosx-10.9-x86_64-cpython-38/signatory
      copying src/signatory/utility.py -> build/lib.macosx-10.9-x86_64-cpython-38/signatory
      copying src/signatory/deprecated.py -> build/lib.macosx-10.9-x86_64-cpython-38/signatory
      copying src/signatory/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-38/signatory
      copying src/signatory/augment.py -> build/lib.macosx-10.9-x86_64-cpython-38/signatory
      copying src/signatory/impl.py -> build/lib.macosx-10.9-x86_64-cpython-38/signatory
      copying src/signatory/path.py -> build/lib.macosx-10.9-x86_64-cpython-38/signatory
      running build_ext
      building '_impl' extension
      creating /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38
      creating /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src
      Emitting ninja build file /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/build.ninja...
      Compiling objects...
      Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
      [1/6] c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/tensor_algebra_ops.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/tensor_algebra_ops.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/tensor_algebra_ops.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      FAILED: /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/tensor_algebra_ops.o
      c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/tensor_algebra_ops.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/tensor_algebra_ops.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/tensor_algebra_ops.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      clang: error: unsupported option '-fopenmp'
      [2/6] c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/lyndon.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/lyndon.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/lyndon.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      FAILED: /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/lyndon.o
      c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/lyndon.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/lyndon.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/lyndon.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      clang: error: unsupported option '-fopenmp'
      [3/6] c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/pytorchbind.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/pytorchbind.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/pytorchbind.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      FAILED: /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/pytorchbind.o
      c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/pytorchbind.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/pytorchbind.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/pytorchbind.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      clang: error: unsupported option '-fopenmp'
      [4/6] c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/logsignature.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/logsignature.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/logsignature.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      FAILED: /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/logsignature.o
      c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/logsignature.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/logsignature.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/logsignature.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      clang: error: unsupported option '-fopenmp'
      [5/6] c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/misc.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/misc.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/misc.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      FAILED: /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/misc.o
      c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/misc.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/misc.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/misc.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      clang: error: unsupported option '-fopenmp'
      [6/6] c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/signature.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/signature.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/signature.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      FAILED: /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/signature.o
      c++ -MMD -MF /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/signature.o.d -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include -arch x86_64 -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/TH -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/include/THC -I/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/include/python3.8 -c -c /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/src/signature.cpp -o /private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/build/temp.macosx-10.9-x86_64-cpython-38/src/signature.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
      clang: error: unsupported option '-fopenmp'
      ninja: build stopped: subcommand failed.
      Traceback (most recent call last):
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1666, in _run_ninja_build
          subprocess.run(
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/subprocess.py", line 516, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

      The above exception was the direct cause of the following exception:

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/y8/gdd4mh0n7q58jm7jhk5y_0lh0000gp/T/pip-install-4bn6f7p1/signatory_6570383a9e5642b29056c023375ada2a/setup.py", line 53, in <module>
          setuptools.setup(name=metadata.project,
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
          super().run_command(command)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 364, in run
          self.run_command("build")
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
          super().run_command(command)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
          super().run_command(command)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 88, in run
          _build_ext.run(self)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 709, in build_extensions
          build_ext.build_extensions(self)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
          self._build_extensions_serial()
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
          self.build_extension(ext)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
          _build_ext.build_extension(self, ext)
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
          objects = self.compiler.compile(
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 530, in unix_wrap_ninja_compile
          _write_ninja_file_and_compile_objects(
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1355, in _write_ninja_file_and_compile_objects
          _run_ninja_build(
        File "/Users/aruni/research/stock_prediction/fingat_sig/venv_fingat_sig/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1682, in _run_ninja_build
          raise RuntimeError(message) from e
      RuntimeError: Error compiling objects for extension
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for signatory
  Running setup.py clean for signatory
Failed to build signatory
ERROR: Could not build wheels for signatory, which is required to install pyproject.toml-based projects

I've searched on Google but found no reference to this ERROR: Could not build wheels for signatory, which is required to install pyproject.toml-based projects.
Any suggestions would be highly appreciated! Thanks.

amp1590 commented 5 months ago

Okay I found the solution and putting it here in case anybody else facing the same issue!

After I tried the solution mentioned in issue #43 , it was still giving me the same error. So I just restarted my device, ran that MACOSX_DEPLOYMENT_TARGET=13.4.1 CC=clang CXX=clang++ pip install signatory==1.2.6.1.9.0 --no-binary signatory command and then signatory was successfully installed! So after following the solution in #43 , restart your device and then run only the final installation command again. That successfully installed signatory in my case.