You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ryan Williams (Jira)" <ji...@apache.org> on 2021/07/22 14:24:00 UTC

[jira] [Commented] (ARROW-13053) [Python] Build fails on MacOS Big Sur using homebrewed Arrow libraries

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

Ryan Williams commented on ARROW-13053:
---------------------------------------

Will pyarrow 5.0.0 be released with this fix? It seems I'm unable to {{pip install pyarrow}} today, due to this issue. [Here's a separate write-up|https://github.com/python-poetry/poetry/issues/3627#issuecomment-884943058].

> [Python] Build fails on MacOS Big Sur using homebrewed Arrow libraries
> ----------------------------------------------------------------------
>
>                 Key: ARROW-13053
>                 URL: https://issues.apache.org/jira/browse/ARROW-13053
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 4.0.1
>         Environment: MacOS BigSur 11.4 (Apple Silicon)
> Python 3.9.5
> apache-arrow 4.0.1 (via Homebrew)
>            Reporter: Dorian Kind
>            Assignee: Dorian Kind
>            Priority: Major
>              Labels: build-failure, pull-request-available
>             Fix For: 5.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When installing pyarrow 4.0.1 from source, the install step fails with 
> {{error: can't copy 'build/lib.macosx-11.3-arm64-3.9/pyarrow/include/arrow': doesn't exist or not a regular file}}
> because the headers directory
> {{build/lib.macosx-11.3-arm64-3.9/pyarrow/include/arrow}}
> is a relative symlink to {{../Cellar/apache-arrow/4.0.1/include/arrow}}
> I believe this is caused by the build system including the header files from {{/opt/homebrew/include/arrow}}, which is the above symlink:
> {\{ls -hl /opt/homebrew/include/arrow}}
> {{lrwxr-xr-x  1 dki  admin    42B Jun  8 15:35 /opt/homebrew/include/arrow -> ../Cellar/apache-arrow/4.0.1/include/arrow}}
> I was able work around this issue by modifying line 334 in {{CMakeLists.txt}} from
> {{#Always bundle includes}}
>  {{file(COPY ${ARROW_INCLUDE_DIR}/arrow DESTINATION ${BUILD_OUTPUT_ROOT_DIRECTORY}/include)}}
> to
> {{#Always bundle includes}}
>  {{get_filename_component(REAL_ARROW_INCLUDE_DIR "${ARROW_INCLUDE_DIR}/arrow" REALPATH)}}
>  {{file(COPY ${}}{{REAL_ARROW_INCLUDE_DIR}}{{} DESTINATION ${BUILD_OUTPUT_ROOT_DIRECTORY}/include)}}
> But I'm not familiar with CMake, so maybe there is a more appropriate way to fix this.



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