[
https://issues.apache.org/jira/browse/ARROW-14420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17434907#comment-17434907
]
Dragoș Moldovan-Grünfeld commented on ARROW-14420:
--------------------------------------------------
Some update. It looks like there might be some sort of issue with {{gcc}}
{code}
Python 3.9.7 (default, Oct 13 2021, 06:45:31)
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/numpy/core/__init__.py", line
22, in <module>
from . import multiarray
File "/usr/local/lib/python3.9/site-packages/numpy/core/multiarray.py", line
12, in <module>
from . import overrides
File "/usr/local/lib/python3.9/site-packages/numpy/core/overrides.py", line
7, in <module>
from numpy.core._multiarray_umath import (
ImportError:
dlopen(/usr/local/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so,
2): Symbol not found: ___addtf3
Referenced from: /usr/local/opt/gcc/lib/gcc/11/libquadmath.0.dylib
Expected in: /usr/local/lib/libgcc_s.1.dylib
in /usr/local/opt/gcc/lib/gcc/11/libquadmath.0.dylib
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/numpy/__init__.py", line 150, in
<module>
from . import core
File "/usr/local/lib/python3.9/site-packages/numpy/core/__init__.py", line
48, in <module>
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.9 from
"/usr/local/opt/[email protected]/bin/python3.9"
* The NumPy version is: "1.21.3"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was:
dlopen(/usr/local/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so,
2): Symbol not found: ___addtf3
Referenced from: /usr/local/opt/gcc/lib/gcc/11/libquadmath.0.dylib
Expected in: /usr/local/lib/libgcc_s.1.dylib
in /usr/local/opt/gcc/lib/gcc/11/libquadmath.0.dylib
{code}
> brew install apache-arrow --HEAD fails due to not finding Python3 and NumPy
> ---------------------------------------------------------------------------
>
> Key: ARROW-14420
> URL: https://issues.apache.org/jira/browse/ARROW-14420
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Developer Tools, Python
> Reporter: Dragoș Moldovan-Grünfeld
> Priority: Major
>
> For me this fails both on Intel and Apple silicone Macs, with similar error
> messages. It appears that what is in the brew formula alone is not sufficient
> to get an environment setup and built (via brew). Do we need to declare the
> numpy dependency here so that brew knows to install it in the version of
> python that it will be using in the build process later? Or specify this
> elswhere? (note ARROW-8998 would remove this dependency I believe, but it's
> not yet done).
> {code}
> (base) dragos@Dragoss-MacBook-Pro r % brew install apache-arrow --HEAD
> ==> Cloning https://github.com/apache/arrow.git
> Updating /Users/dragos/Library/Caches/Homebrew/apache-arrow--git
> From https://github.com/apache/arrow
> 29892ba5c..65c131321 master -> origin/master
> ==> Checking out branch master
> Already on 'master'
> Your branch is behind 'origin/master' by 20 commits, and can be
> fast-forwarded.
> (use "git pull" to update your local branch)
> HEAD is now at 65c131321 ARROW-14417: [R] Joins ignore projection on left
> dataset
> Entering 'cpp/submodules/parquet-testing'
> Entering 'testing'
> /Users/dragos/Library/Caches/Homebrew/apache-arrow--git/cpp/submodules/parquet-testing
> /Users/dragos/Library/Caches/Homebrew/apache-arrow--git/testing
> ==> cmake ../cpp -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE -DARROW_FLIGHT=ON
> -DARROW_GANDIVA=ON -DARROW_JEMALLOC=ON -DARROW_ORC=ON -DARROW_PARQUET=ON
> -DARROW_PLASMA=ON -DARROW_PROTOBUF_US
> Last 15 lines from /Users/dragos/Library/Logs/Homebrew/apache-arrow/01.cmake:
> -- Found approximate gRPC version: 1.36
> (ARROW_FLIGHT_REQUIRE_TLSCREDENTIALSOPTIONS=)
> CMake Error at
> /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230
> (message):
> Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found
> version "3.9.7")
> Call Stack (most recent call first):
>
> /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594
> (_FPHSA_FAILURE_MESSAGE)
>
> /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/FindPython/Support.cmake:3166
> (find_package_handle_standard_args)
> /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/FindPython3.cmake:485
> (include)
> cmake_modules/FindPython3Alt.cmake:54 (find_package)
> src/arrow/python/CMakeLists.txt:22 (find_package)
> -- Configuring incomplete, errors occurred!
> See also
> "/tmp/apache-arrow-20211021-75909-1pqubs7/build/CMakeFiles/CMakeOutput.log".
> See also
> "/tmp/apache-arrow-20211021-75909-1pqubs7/build/CMakeFiles/CMakeError.log".
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)