neuralmagic / sparsezoo

Neural network model repository for highly sparse and sparse-quantized models with matching sparsification recipes
Apache License 2.0
362 stars 23 forks source link

Can Not Install Sparsezoo Using Pip #333

Closed YixuanSeanZhou closed 1 year ago

YixuanSeanZhou commented 1 year ago

Describe the bug Onnx cannot be installed when using pip.

Expected behavior pip install sparsezoo would work.

Environment Include all relevant environment information:

  1. OS [e.g. Ubuntu 18.04]: macOS Ventura Version 13.4
  2. Python version [e.g. 3.8]:
  3. SparseZoo version or commit hash [e.g. 0.1.0, f7245c8]:
  4. ML framework version(s) [e.g. torch 1.7.1]:
  5. Other Python package versions [e.g. SparseML, DeepSparse, numpy, ONNX]:
  6. Other relevant environment information [e.g. hardware, CUDA version]:

To Reproduce Exact steps to reproduce the behavior: pip install sparsezoo in a new venv

Errors If applicable, add a full print-out of any errors or exceptions that are raised or include screenshots to help explain your problem.

  Building wheel for onnx (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for onnx (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [618 lines of output]
      fatal: not a git repository (or any of the parent directories): .git
      running bdist_wheel
      running build
      running build_py
      running create_version
      running cmake_build
      Using cmake args: ['/opt/homebrew/bin/cmake', '-DPYTHON_INCLUDE_DIR=/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9', '-DPYTHON_EXECUTABLE=/Users/yixuanzhou/Desktop/Coding/python/ai/.sparse_env_3_dot_9/bin/python3.9', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-39-darwin.so', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada']
      -- The C compiler identification is AppleClang 14.0.3.14030022
      -- The CXX compiler identification is AppleClang 14.0.3.14030022
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found PythonInterp: /Users/yixuanzhou/Desktop/Coding/python/ai/.sparse_env_3_dot_9/bin/python3.9 (found version "3.9.17")
      -- Found PythonLibs: /opt/homebrew/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib (found version "3.9.17")
      CMake Warning at /opt/homebrew/Cellar/cmake/3.26.4/share/cmake/Modules/FindProtobuf.cmake:524 (message):
        Protobuf compiler version 23.2 doesn't match library version 4.23.2
      Call Stack (most recent call first):
        CMakeLists.txt:175 (find_package)

      -- Found Protobuf: /opt/homebrew/lib/libprotobuf.dylib (found version "4.23.2")
      Generated: /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.proto
      Generated: /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.proto
      Generated: /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.proto
      -- Could NOT find pybind11 (missing: pybind11_DIR)
      -- pybind11 v2.9.1
      -- Found PythonLibs: /opt/homebrew/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib
      -- Performing Test HAS_FLTO
      -- Performing Test HAS_FLTO - Success
      -- Performing Test HAS_FLTO_THIN
      -- Performing Test HAS_FLTO_THIN - Success
      --
      -- ******** Summary ********
      --   CMake version             : 3.26.4
      --   CMake command             : /opt/homebrew/Cellar/cmake/3.26.4/bin/cmake
      --   System                    : Darwin
      --   C++ compiler              : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
      --   C++ compiler version      : 14.0.3.14030022
      --   CXX flags                 :  -Wnon-virtual-dtor
      --   Build type                : Release
      --   Compile definitions       : __STDC_FORMAT_MACROS
      --   CMAKE_PREFIX_PATH         :
      --   CMAKE_INSTALL_PREFIX      : /usr/local
      --   CMAKE_MODULE_PATH         :
      --
      --   ONNX version              : 1.12.0
      --   ONNX NAMESPACE            : onnx
      --   ONNX_USE_LITE_PROTO       : OFF
      --   USE_PROTOBUF_SHARED_LIBS  : OFF
      --   Protobuf_USE_STATIC_LIBS  : ON
      --   ONNX_DISABLE_EXCEPTIONS   : OFF
      --   ONNX_WERROR               : OFF
      --   ONNX_BUILD_TESTS          : OFF
      --   ONNX_BUILD_BENCHMARKS     : OFF
      --   ONNXIFI_DUMMY_BACKEND     : OFF
      --   ONNXIFI_ENABLE_EXT        : OFF
      --
      --   Protobuf compiler         : /opt/homebrew/bin/protoc
      --   Protobuf includes         : /opt/homebrew/include
      --   Protobuf libraries        : /opt/homebrew/lib/libprotobuf.dylib
      --   BUILD_ONNX_PYTHON         : ON
      --     Python version        :
      --     Python executable     : /Users/yixuanzhou/Desktop/Coding/python/ai/.sparse_env_3_dot_9/bin/python3.9
      --     Python includes       : /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9
      -- Configuring done (1.1s)
      -- Generating done (0.0s)
      -- Build files have been written to: /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build
      [  4%] Building C object CMakeFiles/onnxifi_dummy.dir/onnx/onnxifi_dummy.c.o
      [  4%] Running gen_proto.py on onnx/onnx.in.proto
      [  4%] Building C object CMakeFiles/onnxifi_loader.dir/onnx/onnxifi_loader.c.o
      Processing /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/onnx/onnx.in.proto
      Writing /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.proto
      Writing /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.proto3
      generating /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx_pb.py
      [  5%] Running C++ protocol buffer compiler on /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.proto
      [  7%] Linking C static library libonnxifi_loader.a
      [  8%] Linking C shared library libonnxifi_dummy.dylib
      [  8%] Built target onnxifi_loader
      [  9%] Building C object CMakeFiles/onnxifi_wrapper.dir/onnx/onnxifi_wrapper.c.o
      [  9%] Built target onnxifi_dummy
      [ 11%] Linking C shared module libonnxifi.dylib
      [ 11%] Built target onnxifi_wrapper
      Failed to generate mypy stubs: No module named 'google'
      [ 11%] Built target gen_onnx_proto
      [ 14%] Running gen_proto.py on onnx/onnx-data.in.proto
      [ 14%] Running gen_proto.py on onnx/onnx-operators.in.proto
      Processing /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/onnx/onnx-data.in.proto
      Writing /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.proto
      Writing /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.proto3
      generating /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx_data_pb.py
      Processing /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/onnx/onnx-operators.in.proto
      Writing /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.proto
      Writing /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.proto3
      generating /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx_operators_pb.py
      [ 16%] Running C++ protocol buffer compiler on /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.proto
      [ 16%] Running C++ protocol buffer compiler on /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.proto
      Failed to generate mypy stubs: No module named 'google'
      Failed to generate mypy stubs: No module named 'google'
      [ 16%] Built target gen_onnx_data_proto
      [ 16%] Built target gen_onnx_operators_proto
      [ 21%] Building CXX object CMakeFiles/onnx_proto.dir/onnx/onnx-ml.pb.cc.o
      [ 21%] Building CXX object CMakeFiles/onnx_proto.dir/onnx/onnx-operators-ml.pb.cc.o
      [ 21%] Building CXX object CMakeFiles/onnx_proto.dir/onnx/onnx-data.pb.cc.o
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:11:
      /opt/homebrew/include/google/protobuf/port_def.inc:205:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
      static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.h:11:
      /opt/homebrew/include/google/protobuf/port_def.inc:205:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
      static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h:11:
      /opt/homebrew/include/google/protobuf/port_def.inc:205:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
      static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.ccIn file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.cc::/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc4::
      4In file included from :
      /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.hIn file included from 4/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:
      :In file included from 24/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h::2424:
      :
      :
      In file included from In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h/opt/homebrew/include/google/protobuf/io/coded_stream.h:130:
      In file included from /opt/homebrew/include/google/protobuf/stubs/common.h::In file included from 44130:
      :
      In file included from In file included from /opt/homebrew/include/absl/strings/string_view.h/opt/homebrew/include/google/protobuf/stubs/common.h:39:
      In file included from /opt/homebrew/include/absl/base/attributes.h:/opt/homebrew/include/google/protobuf/io/coded_stream.h37:44:
      :In file included from :
      130In file included from :
      /opt/homebrew/include/absl/base/config.hIn file included from :/opt/homebrew/include/absl/strings/string_view.h/opt/homebrew/include/google/protobuf/stubs/common.h::3944:
      :
      In file included from In file included from /opt/homebrew/include/absl/base/attributes.h/opt/homebrew/include/absl/strings/string_view.h::3739:
      86In file included from :
      /opt/homebrew/include/absl/base/config.h:/opt/homebrew/include/absl/base/policy_checks.h:
      :In file included from 79/opt/homebrew/include/absl/base/attributes.h:862:
      :/opt/homebrew/include/absl/base/policy_checks.h :error: 37"C++ versions less than C++14 are not supported.":

      :79:2:In file included from  /opt/homebrew/include/absl/base/config.herror: :"C++ versions less than C++14 are not supported."86
      :
      /opt/homebrew/include/absl/base/policy_checks.h:79#error "C++ versions less than C++14 are not supported."
       ^
      :#error "C++ versions less than C++14 are not supported."2
      : ^
      error: "C++ versions less than C++14 are not supported."
      #error "C++ versions less than C++14 are not supported."
       ^
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
      In file included from In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.cc/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h::424:
      :
      In file included from In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.h/opt/homebrew/include/google/protobuf/io/coded_stream.h::24130:
      :
      In file included from In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h/opt/homebrew/include/google/protobuf/stubs/common.h130::
      :In file included from 24/opt/homebrew/include/google/protobuf/stubs/common.h:
      :46In file included from :
      /opt/homebrew/include/google/protobuf/io/coded_stream.hIn file included from :/opt/homebrew/include/google/protobuf/stubs/port.h13046::
      45In file included from :
      /opt/homebrew/include/google/protobuf/stubs/port.h:
      In file included from /opt/homebrew/include/google/protobuf/stubs/common.h:46:
      :In file included from 45/opt/homebrew/include/google/protobuf/stubs/port.h:
      :/opt/homebrew/include/google/protobuf/port_def.inc45:205:/opt/homebrew/include/google/protobuf/port_def.inc1:: 205error: :static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."1:
      : /opt/homebrew/include/google/protobuf/port_def.incerror:
      static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
      :205:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
      static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
      static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:24:
      In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:130In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
      :
      In file included from /opt/homebrew/include/google/protobuf/stubs/common.hIn file included from :/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h56::
      24/opt/homebrew/include/google/protobuf/port_def.inc:
      :In file included from 205/opt/homebrew/include/google/protobuf/io/coded_stream.h::1130::
       In file included from error: /opt/homebrew/include/google/protobuf/stubs/common.hstatic_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."In file included from
      /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.cc::456:
      :
      In file included from /opt/homebrew/include/google/protobuf/port_def.inc/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.h::24:
      In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:205static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
      :1301:
      :In file included from  /opt/homebrew/include/google/protobuf/stubs/common.h^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~:
      56:
      /opt/homebrew/include/google/protobuf/port_def.inc:205:error: 1static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer.":
       error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
      static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");

      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      In file included from In file included from In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
      /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.ccIn file included from :/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h4::
      /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.ccIn file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.h24::
      24In file included from :
      /opt/homebrew/include/google/protobuf/io/coded_stream.hIn file included from :/opt/homebrew/include/google/protobuf/io/coded_stream.h132::
      4In file included from :
      /opt/homebrew/include/absl/log/absl_check.h::13238:
      :
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h:24:
      In file included from In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.hIn file included from /opt/homebrew/include/absl/log/absl_check.h/opt/homebrew/include/absl/log/internal/check_impl.h::3819:
      :
      In file included from In file included from /opt/homebrew/include/absl/log/internal/check_impl.h/opt/homebrew/include/absl/log/internal/check_op.h:::132:
      In file included from /opt/homebrew/include/absl/log/absl_check.h:193837:
      :
      In file included from :
      /opt/homebrew/include/absl/log/internal/check_impl.hIn file included from :/opt/homebrew/include/absl/log/internal/strip.hIn file included from :/opt/homebrew/include/absl/log/internal/check_op.h24::
      37In file included from :
      /opt/homebrew/include/absl/log/internal/log_message.h19::
      41In file included from :
      /opt/homebrew/include/absl/log/internal/check_op.hIn file included from :/opt/homebrew/include/absl/log/log_entry.h37In file included from :
      /opt/homebrew/include/absl/log/internal/strip.hIn file included from :/opt/homebrew/include/absl/log/internal/strip.h24::
      24In file included from :/opt/homebrew/include/absl/log/internal/log_message.h36::
      41:
      :
      In file included from In file included from /opt/homebrew/include/absl/log/internal/log_message.h/opt/homebrew/include/absl/log/log_entry.h::4136:
      :
      In file included from In file included from /opt/homebrew/include/absl/log/log_entry.h/opt/homebrew/include/absl/types/span.hIn file included from :/opt/homebrew/include/absl/types/span.h69::
      :/opt/homebrew/include/absl/types/internal/span.h36::
      In file included from /opt/homebrew/include/absl/types/span.h:69:
      69:
      /opt/homebrew/include/absl/types/internal/span.h/opt/homebrew/include/absl/types/internal/span.h:119::11921::21 : error: error: no template named 'remove_const_t' in namespace 'std'; did you mean simply 'remove_const_t'?
      119no template named 'remove_const_t' in namespace 'std'; did you mean simply 'remove_const_t'?:
      21: error: no template named 'remove_const_t' in namespace 'std'; did you mean simply 'remove_const_t'?
        using Container = std::remove_const_t<T>;  using Container = std::remove_const_t<T>;

                          ^~~~~
        using Container = std::remove_const_t<T>;
                          ^~~~~
                          ^~~~~
      /opt/homebrew/include/absl/meta/type_traits.h:592:1: note: 'remove_const_t' declared here/opt/homebrew/include/absl/meta/type_traits.h
      :/opt/homebrew/include/absl/meta/type_traits.h592::5921::1 :note:  'remove_const_t' declared herenote:
      using remove_const_t = typename std::remove_const<T>::type;
      ^
      'remove_const_t' declared here
      using remove_const_t = typename std::remove_const<T>::type;
      ^
      using remove_const_t = typename std::remove_const<T>::type;
      ^
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h:24:
      In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:132:
      In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
      In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
      In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
      In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
      In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
      In file included from /opt/homebrew/include/absl/log/log_entry.h:36:
      In file included from /opt/homebrew/include/absl/types/span.h:69:
      /opt/homebrew/include/absl/types/internal/span.h:130:24: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
      using EnableIfIsView = std::enable_if_t<IsView<T>::value, int>;
                             ^~~~~
      /opt/homebrew/include/absl/meta/type_traits.h:656:1: note: 'enable_if_t' declared here
      In file included from using enable_if_t = typename std::enable_if<B, T>::type;
      /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc^:
      4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:24:
      In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:132:
      In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
      In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.h:24:
      In file included from In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h/opt/homebrew/include/absl/log/internal/check_op.h::13237:
      :
      In file included from In file included from /opt/homebrew/include/absl/log/absl_check.h/opt/homebrew/include/absl/log/internal/strip.h::3824:
      :
      In file included from In file included from /opt/homebrew/include/absl/log/internal/check_impl.h/opt/homebrew/include/absl/log/internal/log_message.h::1941:
      :
      In file included from In file included from /opt/homebrew/include/absl/log/internal/check_op.h/opt/homebrew/include/absl/log/log_entry.h::3736:
      :
      In file included from In file included from /opt/homebrew/include/absl/types/span.h:69:
      /opt/homebrew/include/absl/types/internal/span.h:130:24: /opt/homebrew/include/absl/log/internal/strip.herror: :no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?24
      :
      In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
      In file included from /opt/homebrew/include/absl/log/log_entry.h:36:
      In file included from /opt/homebrew/include/absl/types/span.h:69using EnableIfIsView = std::enable_if_t<IsView<T>::value, int>;:

      /opt/homebrew/include/absl/types/internal/span.h                       ^~~~~:
      130:24: /opt/homebrew/include/absl/meta/type_traits.herror: :no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?656
      :1: note: 'enable_if_t' declared here
      using EnableIfIsView = std::enable_if_t<IsView<T>::value, int>;
                             ^~~~~
      using enable_if_t = typename std::enable_if<B, T>::type;/opt/homebrew/include/absl/meta/type_traits.h
      :^656
      :1: note: 'enable_if_t' declared here
      using enable_if_t = typename std::enable_if<B, T>::type;
      ^
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h:24:
      In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:132:
      In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
      In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
      In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
      In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
      In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
      In file included from /opt/homebrew/include/absl/log/log_entry.hIn file included from :/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc36::
      4In file included from :
      /opt/homebrew/include/absl/types/span.hIn file included from :/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h69::
      24/opt/homebrew/include/absl/types/internal/span.h:
      :In file included from 133/opt/homebrew/include/google/protobuf/io/coded_stream.h:132:
      In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
      In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19::
      27In file included from :/opt/homebrew/include/absl/log/internal/check_op.h :error: 37no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?:

      In file included from /opt/homebrew/include/absl/log/internal/strip.h:In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.h:2424:
      :
      In file included from In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h/opt/homebrew/include/absl/log/internal/log_message.h::13241using EnableIfNotIsView = std::enable_if_t<!IsView<T>::value, int>;:

      In file included from                           ^~~~~/opt/homebrew/include/absl/log/log_entry.h
      :36:
      In file included from :
      /opt/homebrew/include/absl/meta/type_traits.h:656:1: /opt/homebrew/include/absl/types/span.hnote: :'enable_if_t' declared here69
      :
      In file included from /opt/homebrew/include/absl/types/internal/span.h/opt/homebrew/include/absl/log/absl_check.h::13338::
      27In file included from :/opt/homebrew/include/absl/log/internal/check_impl.h :using enable_if_t = typename std::enable_if<B, T>::type;error:
      no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?^
      19:
      In file included from /opt/homebrew/include/absl/log/internal/check_op.h:
      37:
      In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
      In file included from using EnableIfNotIsView = std::enable_if_t<!IsView<T>::value, int>;/opt/homebrew/include/absl/log/internal/log_message.h
      :                          ^~~~~41
      :
      In file included from /opt/homebrew/include/absl/log/log_entry.h:36:
      In file included from /opt/homebrew/include/absl/meta/type_traits.h/opt/homebrew/include/absl/types/span.h::65669::
      1/opt/homebrew/include/absl/types/internal/span.h:: 133note: :'enable_if_t' declared here27
      : error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
      using enable_if_t = typename std::enable_if<B, T>::type;
      ^
      using EnableIfNotIsView = std::enable_if_t<!IsView<T>::value, int>;
                                ^~~~~
      /opt/homebrew/include/absl/meta/type_traits.h:656:1: note: 'enable_if_t' declared here
      using enable_if_t = typename std::enable_if<B, T>::type;
      ^
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.h:24:
      In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:132:
      In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
      In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
      In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
      In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
      In file included from /opt/homebrew/include/absl/log/internal/log_message.h:43:
      /opt/homebrew/include/absl/strings/internal/has_absl_stringify.h:46:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h    T, std::enable_if_t<std::is_void<decltype(AbslStringify(
             ^~~~~
      :24:
      In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h/opt/homebrew/include/absl/meta/type_traits.h::132656:
      :In file included from 1/opt/homebrew/include/absl/log/absl_check.h:: 38note: :
      'enable_if_t' declared hereIn file included from
      /opt/homebrew/include/absl/log/internal/check_impl.h:19:
      In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
      In file included from /opt/homebrew/include/absl/log/internal/strip.h:using enable_if_t = typename std::enable_if<B, T>::type;24
      :
      ^In file included from
      /opt/homebrew/include/absl/log/internal/log_message.h:43:
      /opt/homebrew/include/absl/strings/internal/has_absl_stringify.h:46:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
          T, std::enable_if_t<std::is_void<decltype(AbslStringify(
             ^~~~~
      /opt/homebrew/include/absl/meta/type_traits.h:656:1: note: 'enable_if_t' declared here
      using enable_if_t = typename std::enable_if<B, T>::type;
      ^
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:24:
      In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:132:
      In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
      In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
      In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
      In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
      In file included from /opt/homebrew/include/absl/log/internal/log_message.h:43:
      /opt/homebrew/include/absl/strings/internal/has_absl_stringify.h:46:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
          T, std::enable_if_t<std::is_void<decltype(AbslStringify(
             ^~~~~
      /opt/homebrew/include/absl/meta/type_traits.h:656:1: note: 'enable_if_t' declared here
      using enable_if_t = typename std::enable_if<B, T>::type;
      ^
      In file included from In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:::
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.h:424:
      :
      In file included from In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h/opt/homebrew/include/google/protobuf/io/coded_stream.h::244:
      :
      In file included from In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h::13424:
      :
      In file included from In file included from /opt/homebrew/include/absl/strings/cord.h134:
      In file included from /opt/homebrew/include/absl/strings/cord.h:/opt/homebrew/include/google/protobuf/io/coded_stream.h::78134:
      78In file included from :
      /opt/homebrew/include/absl/container/inlined_vector.hIn file included from ::
      53In file included from :
      /opt/homebrew/include/absl/strings/cord.hIn file included from :/opt/homebrew/include/absl/container/internal/inlined_vector.h78::
      30In file included from :
      /opt/homebrew/include/absl/container/inlined_vector.hIn file included from /opt/homebrew/include/absl/container/inlined_vector.h/opt/homebrew/include/absl/container/internal/compressed_tuple.h::5340:
      :
      In file included from /opt/homebrew/include/absl/container/internal/inlined_vector.h::5330:
      :
      In file included from In file included from /opt/homebrew/include/absl/container/internal/inlined_vector.h/opt/homebrew/include/absl/container/internal/compressed_tuple.h/opt/homebrew/include/absl/utility/utility.h::164::12:30 :
      error: 40no member named 'in_place_t' in namespace 'std'In file included from /opt/homebrew/include/absl/container/internal/compressed_tuple.h:40:
      :
      /opt/homebrew/include/absl/utility/utility.h/opt/homebrew/include/absl/utility/utility.h::164
      :12: 164error: :no member named 'in_place_t' in namespace 'std'12
      : error: no member named 'in_place_t' in namespace 'std'
      using std::in_place_t;
            ~~~~~^
      using std::in_place_t;using std::in_place_t;

            ~~~~~^      ~~~~~^

      /opt/homebrew/include/absl/utility/utility.h:165:12: error: no member named 'in_place' in namespace 'std'
      using std::in_place;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:165:12: error: no member named 'in_place' in namespace 'std'
      using std::in_place;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:165:12: error: no member named 'in_place' in namespace 'std'
      using std::in_place;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:181:12: error: no member named 'in_place_type' in namespace 'std'
      using std::in_place_type;
            ~~~~~^/opt/homebrew/include/absl/utility/utility.h
      :181:12: error: no member named 'in_place_type' in namespace 'std'
      using std::in_place_type;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:181:12: error: no member named 'in_place_type' in namespace 'std'
      using std::in_place_type;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:182:12: error: no member named 'in_place_type_t' in namespace 'std'
      using std::in_place_type_t;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:182:12: error: no member named 'in_place_type_t' in namespace 'std'
      using std::in_place_type_t;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:182:12: error: no member named 'in_place_type_t' in namespace 'std'
      using std::in_place_type_t;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:198:12: error: no member named 'in_place_index' in namespace 'std'
      using std::in_place_index;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:198:12: error: no member named 'in_place_index' in namespace 'std'
      using std::in_place_index;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:198:12: error: no member named 'in_place_index' in namespace 'std'
      using std::in_place_index;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:199:12: error: no member named 'in_place_index_t' in namespace 'std'
      using std::in_place_index_t;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:199:12: error: no member named 'in_place_index_t' in namespace 'std'
      using std::in_place_index_t;
            ~~~~~^
      /opt/homebrew/include/absl/utility/utility.h:199:12: error: no member named 'in_place_index_t' in namespace 'std'
      using std::in_place_index_t;
            ~~~~~^
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.h:24:
      In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:134:
      In file included from /opt/homebrew/include/absl/strings/cord.h:78:
      In file included from /opt/homebrew/include/absl/container/inlined_vector.h:53In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
      :
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h:24In file included from :
      /opt/homebrew/include/absl/container/internal/inlined_vector.hIn file included from :/opt/homebrew/include/google/protobuf/io/coded_stream.h30::
      134/opt/homebrew/include/absl/container/internal/compressed_tuple.h:
      :In file included from 107/opt/homebrew/include/absl/strings/cord.h::3678::
       In file included from In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:error: 4no type named 'in_place_t' in namespace 'absl':

      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h/opt/homebrew/include/absl/container/inlined_vector.h::2453:
      :
      In file included from In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h/opt/homebrew/include/absl/container/internal/inlined_vector.h::13430:
      :
      In file included from /opt/homebrew/include/absl/container/internal/compressed_tuple.h/opt/homebrew/include/absl/strings/cord.h::10778::
        explicit constexpr Storage(absl::in_place_t, V&& v)In file included from
      /opt/homebrew/include/absl/container/inlined_vector.h                             ~~~~~~^36
      : error: no type named 'in_place_t' in namespace 'absl'
      :53:
      In file included from /opt/homebrew/include/absl/container/internal/inlined_vector.h:30:
      /opt/homebrew/include/absl/container/internal/compressed_tuple.h:107:36: error: no type named 'in_place_t' in namespace 'absl'
        explicit constexpr Storage(absl::in_place_t, V&& v)
                                   ~~~~~~^
        explicit constexpr Storage(absl::in_place_t, V&& v)
                                   ~~~~~~^
      /opt/homebrew/include/absl/container/internal/compressed_tuple.h/opt/homebrew/include/absl/container/internal/compressed_tuple.h::120:36: error: no type named 'in_place_t' in namespace 'absl'
      120  explicit constexpr Storage(absl::in_place_t, V&& v)
      :36: error: no type named 'in_place_t' in namespace 'absl'
                                   ~~~~~~^
        explicit constexpr Storage(absl::in_place_t, V&& v)
                                   ~~~~~~^
      /opt/homebrew/include/absl/container/internal/compressed_tuple.h:120:36: error: no type named 'in_place_t' in namespace 'absl'
        explicit constexpr Storage(absl::in_place_t, V&& v)
                                   ~~~~~~^
      /opt/homebrew/include/absl/container/internal/compressed_tuple.h:143:48: error: no type named 'in_place_t' in namespace 'absl'
      /opt/homebrew/include/absl/container/internal/compressed_tuple.h:143:48/opt/homebrew/include/absl/container/internal/compressed_tuple.h  explicit constexpr CompressedTupleImpl(absl::in_place_t, Vs&&... args):
      143: error: no type named 'in_place_t' in namespace 'absl'
      :                                         ~~~~~~^
      48: error: no type named 'in_place_t' in namespace 'absl'
        explicit constexpr CompressedTupleImpl(absl::in_place_t, Vs&&... args)
                                               ~~~~~~^
        explicit constexpr CompressedTupleImpl(absl::in_place_t, Vs&&... args)
                                               ~~~~~~^
      /opt/homebrew/include/absl/container/internal/compressed_tuple.h:144:24: error: no member named 'in_place' in namespace 'absl'; did you mean 'isspace'?
      /opt/homebrew/include/absl/container/internal/compressed_tuple.h:144:24: error: no member named 'in_place' in namespace 'absl'; did you mean 'isspace'?
      /opt/homebrew/include/absl/container/internal/compressed_tuple.h:144:24:       : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}error:
      no member named 'in_place' in namespace 'absl'; did you mean 'isspace'?                       ^~~~~~

            : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
                             ^~~~~~
            : Storage<Ts, I>(absl::in_place, absl::forward<Vs>(args))... {}
                             ^~~~~~
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h::267267::11::  note: note: 'isspace' declared here'isspace' declared here

      isspace(int _c)isspace(int _c)

      ^^

      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h:267:1: note: 'isspace' declared here
      isspace(int _c)
      ^
      In file included from In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.cc/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.cc::44:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-ml.pb.h:24:
      In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:134:
      In file included from /opt/homebrew/include/absl/strings/cord.h:78:
      In file included from /opt/homebrew/include/absl/container/inlined_vector.h:In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc::
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-data.pb.h:4:
      In file included from /private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-install-xcvtyvur/onnx_a8e3034767014412b35d8dfc67546ada/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:2424:
      :
      In file included from In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h53/opt/homebrew/include/google/protobuf/io/coded_stream.h:
      :In file included from 134/opt/homebrew/include/absl/container/internal/inlined_vector.h:
      :In file included from 30/opt/homebrew/include/absl/strings/cord.h:
      :/opt/homebrew/include/absl/container/internal/compressed_tuple.h78::
      155In file included from :/opt/homebrew/include/absl/container/inlined_vector.h134::
      53In file included from :
      /opt/homebrew/include/absl/strings/cord.hIn file included from :/opt/homebrew/include/absl/container/internal/inlined_vector.h78::
      30In file included from :
      /opt/homebrew/include/absl/container/inlined_vector.h/opt/homebrew/include/absl/container/internal/compressed_tuple.h::5348:
      :In file included from  :error: 155no type named 'in_place_t' in namespace 'absl':
      48:/opt/homebrew/include/absl/container/internal/inlined_vector.h :error: 30no type named 'in_place_t' in namespace 'absl':

      /opt/homebrew/include/absl/container/internal/compressed_tuple.h:155:48: error: no type named 'in_place_t' in namespace 'absl'
        explicit constexpr CompressedTupleImpl(absl::in_place_t, Vs&&... args)
                                               ~~~~~~^
        explicit constexpr CompressedTupleImpl(absl::in_place_t, Vs&&... args)
                                               ~~~~~~^
        explicit constexpr CompressedTupleImpl(absl::in_place_t, Vs&&... args)
                                               ~~~~~~^
      fatal error: fatal error: too many errors emitted, stopping now [-ferror-limit=]too many errors emitted, stopping now [-ferror-limit=]

      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      20 errors generated.
      make[2]: *** [CMakeFiles/onnx_proto.dir/onnx/onnx-operators-ml.pb.cc.o] Error 1
      make[2]: *** Waiting for unfinished jobs....
      20 errors generated.
      make[2]: *** [CMakeFiles/onnx_proto.dir/onnx/onnx-data.pb.cc.o] Error 1
      20 errors generated.
      make[2]: *** [CMakeFiles/onnx_proto.dir/onnx/onnx-ml.pb.cc.o] Error 1
      make[1]: *** [CMakeFiles/onnx_proto.dir/all] Error 2
      make: *** [all] Error 2
      Traceback (most recent call last):
        File "/Users/yixuanzhou/Desktop/Coding/python/ai/.sparse_env_3_dot_9/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/yixuanzhou/Desktop/Coding/python/ai/.sparse_env_3_dot_9/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/yixuanzhou/Desktop/Coding/python/ai/.sparse_env_3_dot_9/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 416, in build_wheel
          return self._build_with_temp_dir(['bdist_wheel'], '.whl',
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 401, in _build_with_temp_dir
          self.run_setup()
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 487, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 332, in <module>
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 343, in run
          self.run_command("build")
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 223, in run
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/private/var/folders/lw/vyvyjgw97l7_z65y1g_kdn8c0000gn/T/pip-build-env-fzmpmp80/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 217, in run
        File "/opt/homebrew/Cellar/python@3.9/3.9.17/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/opt/homebrew/bin/cmake', '--build', '.', '--', '-j', '10']' 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 onnx
Failed to build onnx
ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects

Additional context Add any other context about the problem here. Also include any relevant files.

The fix should be upgrade onnx to version 13.4

bfineran commented 1 year ago

Hi @YixuanSeanZhou, we do not currently have out of the box support for onnx 1.13, it looks like you'd need to change your protobuf version to get it working. alternatively you could try using onnx 1.13 but support won't be guaranteed yet.

mgoin commented 1 year ago

Thanks for making the PR! I've also updated this for deepsparse and sparseml