Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11151

[Python][Packaging] Fix Homebrew Install Python 3 NumPy not found failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Packaging, Python
    • None

    Description

      brew install apache-arrow --HEAD fails when there is no existing installation of NumPy.

      CMake Error at /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
        Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found
        version "3.9.1")
      Call Stack (most recent call first):
        /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE)
        /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/FindPython/Support.cmake:3148 (find_package_handle_standard_args)
        /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/FindPython3.cmake:398 (include)
        cmake_modules/FindPython3Alt.cmake:55 (find_package)
        src/arrow/python/CMakeLists.txt:22 (find_package)
      

      Workaround is to first install NumPy with pip3 install numpy.

      Tested in macOS Big Sur 11.1 on an Intel Mac with
      python --> Python 2.7.16
      python3 --> Python 3.9.1

      Attachments

        Activity

          People

            Unassigned Unassigned
            icook Ian Cook
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: