Hi Mathieu, The error in your case is new to me but still similar to what I was getting. I tried - downgrading Python from 3.10. to 3.9 (building latest Arrow release), - updating Xcode and the Command Line Tools, - added -DARROW_INSTALL_NAME_RPATH=OFF to cmake. There is a ticket for cmake in Jira:
https://issues.apache.org/jira/browse/ARROW-14570 <https://github.com/apache/arrow/pull/11677> I am not sure it’s connected but you can try. Alenka > On 11 Nov 2021, at 16:05, Mathieu Leduc-Hamel > <[email protected]> wrote: > > Thanks Micah, > > I was browsing JIRA the other day but i didn't found anything related to M1 > yet, I'm gonna continue searching but if you can point me out to something > you found that would be appreciated. > > Thanks Again > > - Mathieu > > On Fri, Nov 5, 2021 at 8:33 PM Micah Kornfield <[email protected] > <mailto:[email protected]>> wrote: > Hi Mathieu, > I don't have much experience here, but I think there were a few JIRA work > items that had to be done to get Arrow compiling on an M1, you might try > searching JIRA to see if these provide any clues. > > -Micah > > On Fri, Oct 15, 2021 at 10:29 PM Mathieu Leduc-Hamel > <[email protected] <mailto:[email protected]>> > wrote: > Hi, I'm working on beam which is currently not supporting the latest release > of Arrow (6.x.) and I'm trying to build the required packages on Apple M1. > > Currently when building the python package `pyarrow` like this: > ``` > python setup.py build_ext --build-type=release --bundle-arrow-cpp > --bundle-arrow-cpp-headers --bundle-cython-cpp --cython-cplus --bundle-boost > --with-static-boost --extra-cmake-args=boost-python3 > --boost-namespace=boost-python3 bdist_wheel > ``` > > I've got a package but when I'm installing it and trying on real use case > which simply import pyarrow I've got the following error: > > ``` > import pyarrow.lib as _lib > E ImportError: > dlopen(/Users/mlhamel/src/github/metrio/jupyter/metrics-sdk/.venv/lib/python3.8/site-packages/pyarrow/lib.cpython-38-darwin.so > <http://lib.cpython-38-darwin.so/>, 2): Symbol not found: __Py_FatalErrorFunc > E Referenced from: > /Users/mlhamel/src/github/metrio/jupyter/metrics-sdk/.venv/lib/python3.8/site-packages/pyarrow/libarrow_python.400.dylib > E Expected in: flat namespace > E in > /Users/mlhamel/src/github/metrio/jupyter/metrics-sdk/.venv/lib/python3.8/site-packages/pyarrow/libarrow_python.400.dylib > ``` > > I tried embedding statically both parquet and boost python but it's still > faling. > > Any idea where i can explore?
