Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-4265

Onnx uses incorrect python executable to build wheel

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Wheel Package Index
    • None
    • AIPCC Accelerators 13

      When building for onnx 1.18.0, cmake uses `/usr/bin/python3` which version is "3.9.21". 
      Required python version is 3.12.
      The following error prevents wheel building for onnx.

       

        running build_ext
        running cmake_build
        Using cmake args: ['/usr/bin/cmake3', '-DPython3_EXECUTABLE=/usr/bin/python3', '-DONNX_BUILD_PYTHON=ON', '-DONNX_NAMESPACE=onnx', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '/work/bootstrap-output/work-dir/onnx-1.18.0/onnx-1.18.0']
        -- The C compiler identification is GNU 11.5.0
        -- The CXX compiler identification is GNU 11.5.0
        -- Detecting C compiler ABI info
        -- Detecting C compiler ABI info - done
        -- Check for working C compiler: /usr/lib64/ccache/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: /usr/lib64/ccache/c++ - skipped
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
          Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Development.Module)
          (found version "3.9.21")
        Call Stack (most recent call first):
          /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
          /usr/share/cmake/Modules/FindPython/Support.cmake:3766 (find_package_handle_standard_args)
          /usr/share/cmake/Modules/FindPython3.cmake:551 (include)
          CMakeLists.txt:124 (find_package)
       

       

       

              rh-ee-aoguntay Anu Oguntayo
              rh-ee-aoguntay Anu Oguntayo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: