You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2021/01/06 19:21:00 UTC

[jira] [Commented] (ARROW-11151) [Python][Packaging] Fix Homebrew Install Python 3 NumPy not found failure

    [ https://issues.apache.org/jira/browse/ARROW-11151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17260010#comment-17260010 ] 

Neal Richardson commented on ARROW-11151:
-----------------------------------------

This is odd because the apache-arrow.rb formula says it depends on numpy: https://github.com/Homebrew/homebrew-core/blob/master/Formula/apache-arrow.rb#L29

Do you see output indicating that it tried to install numpy? Or did it succeed, and then the arrow build can't find it (similar to ARROW-9532)?

Unfortunately, our nightly homebrew formula tests aren't running due to the Travis-CI issues, so we can't tell whether a change we made recently broke this, or whether it is a quirk of homebrew's version of things.

> [Python][Packaging] Fix Homebrew Install Python 3 NumPy not found failure
> -------------------------------------------------------------------------
>
>                 Key: ARROW-11151
>                 URL: https://issues.apache.org/jira/browse/ARROW-11151
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Packaging, Python
>            Reporter: Ian Cook
>            Priority: Major
>
> {{brew install apache-arrow --HEAD}} fails when there is no existing installation of NumPy.
> {code:java}
> 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)
> {code}
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)