JamesTev opened a new issue, #33950:
URL: https://github.com/apache/arrow/issues/33950

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Tried to install `pyarrow` using `pip install pyarrow` but wheels failed to 
build. I realise this could well be an issue with my system config but I'm not 
able to tell. Would appreciate your help! 
   
    > I'm using an M1 Pro, python 3.8.10 (pyenv, pyenv-virtualenv), pip 23.0, 
AppleClang 14.
   
   The cmake build output was as follows:
   ```zsh
         -- Running cmake --build for PyArrow
         cmake --build . --config release --
         [  1%] Compiling Cython CXX source for lib...
         [  1%] Built target lib_pyx
         [  3%] Generating pyarrow/src/arrow/python/lib_api.h, 
pyarrow/src/arrow/python/lib.h
         [  3%] Built target cython_api_headers
         [  4%] Building CXX object 
CMakeFiles/arrow_python.dir/cmake_pch_arm64.hxx.pch
         [  6%] Building CXX object 
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/arrow_to_pandas.cc.o
         [  8%] Building CXX object 
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/benchmark.cc.o
         [  9%] Building CXX object 
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/common.cc.o
         [ 11%] Building CXX object 
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/datetime.cc.o
         
/private/var/folders/f9/w657fsy54td4j2_70gtx1lwr0000gn/T/pip-install-zh4cl2yd/pyarrow_1276c7c51a3e4fe0a90dd4f2e8ea7d1e/pyarrow/src/arrow/python/datetime.cc:30:10:
 fatal error: 'arrow/util/regex.h' file not found
         #include "arrow/util/regex.h"
                  ^~~~~~~~~~~~~~~~~~~~
         1 error generated.
         make[2]: *** 
[CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/datetime.cc.o] Error 1
         make[1]: *** [CMakeFiles/arrow_python.dir/all] Error 2
         make: *** [all] Error 2
         error: command '/opt/homebrew/bin/cmake' failed with exit code 2
         [end of output]
   ```
   I tried `brew reinstall lz4` in an attempt to potentially solve that config 
issue (see log below) but no luck.
   
   Other potentially relevant details:
   ```zsh
         -- Running cmake for PyArrow
         cmake 
-DCMAKE_INSTALL_PREFIX=/private/var/folders/f9/w657fsy54td4j2_70gtx1lwr0000gn/T/pip-install-zh4cl2yd/pyarrow_1276c7c51a3e4fe0a90dd4f2e8ea7d1e/build/lib.macosx-12.4-arm64-cpython-38/pyarrow
 
-DPYTHON_EXECUTABLE=/Users/jameshydrogen/.pyenv/versions/3.8.10/envs/mint/bin/python
 
-DPython3_EXECUTABLE=/Users/jameshydrogen/.pyenv/versions/3.8.10/envs/mint/bin/python
 -DPYARROW_CXXFLAGS= -DPYARROW_BUILD_CUDA=off -DPYARROW_BUILD_SUBSTRAIT=off 
-DPYARROW_BUILD_FLIGHT=off -DPYARROW_BUILD_GANDIVA=off 
-DPYARROW_BUILD_DATASET=off -DPYARROW_BUILD_ORC=off -DPYARROW_BUILD_PARQUET=off 
-DPYARROW_BUILD_PARQUET_ENCRYPTION=off -DPYARROW_BUILD_PLASMA=off 
-DPYARROW_BUILD_GCS=off -DPYARROW_BUILD_S3=off -DPYARROW_BUILD_HDFS=off 
-DPYARROW_USE_TENSORFLOW=off -DPYARROW_BUNDLE_ARROW_CPP=off 
-DPYARROW_BUNDLE_BOOST=off -DPYARROW_BUNDLE_CYTHON_CPP=off 
-DPYARROW_BUNDLE_PLASMA_EXECUTABLE=on -DPYARROW_GENERATE_COVERAGE=off 
-DPYARROW_BOOST_USE_SHARED=on -DPYARROW_PARQUET_USE_SHARED=on 
-DCMAKE_BUILD_TYPE=relea
 se 
/private/var/folders/f9/w657fsy54td4j2_70gtx1lwr0000gn/T/pip-install-zh4cl2yd/pyarrow_1276c7c51a3e4fe0a90dd4f2e8ea7d1e
         -- The C compiler identification is AppleClang 14.0.0.14000029
         -- The CXX compiler identification is AppleClang 14.0.0.14000029
         -- Detecting C compiler ABI info
         -- Detecting C compiler ABI info - done
         -- Check for working C compiler: 
/Library/Developer/CommandLineTools/usr/bin/cc - skipped
         -- Detecting C compile features
         -- Detecting C compile features - done
         -- Detecting CXX compiler ABI info
         -- Detecting CXX compiler ABI info - done
         -- Check for working CXX compiler: 
/Library/Developer/CommandLineTools/usr/bin/c++ - skipped
         -- Detecting CXX compile features
         -- Detecting CXX compile features - done
         -- System processor: arm64
         -- Performing Test CXX_SUPPORTS_SVE
         -- Performing Test CXX_SUPPORTS_SVE - Success
         -- Arrow build warning level: PRODUCTION
         -- Build Type: RELEASE
         -- CMAKE_C_FLAGS:  -Wall -Wno-unknown-warning-option -Wno-pass-failed 
-march=armv8-a  -Qunused-arguments -fcolor-diagnostics  -fno-omit-frame-pointer 
-Wno-unused-variable -Wno-maybe-uninitialized -Wno-parentheses-equality 
-Wno-constant-logical-operand -Wno-missing-declarations 
-Wno-sometimes-uninitialized -Wno-return-type-c-linkage
         -- CMAKE_CXX_FLAGS:  -fno-aligned-new  -Wall 
-Wno-unknown-warning-option -Wno-pass-failed -march=armv8-a  -Qunused-arguments 
-fcolor-diagnostics  -fno-omit-frame-pointer -Wno-unused-variable 
-Wno-maybe-uninitialized -Wno-parentheses-equality 
-Wno-constant-logical-operand -Wno-missing-declarations 
-Wno-sometimes-uninitialized -Wno-return-type-c-linkage
         -- Generator: Unix Makefiles
         -- Build output directory: 
/private/var/folders/f9/w657fsy54td4j2_70gtx1lwr0000gn/T/pip-install-zh4cl2yd/pyarrow_1276c7c51a3e4fe0a90dd4f2e8ea7d1e/build/temp.macosx-12.4-arm64-cpython-38/release
         -- Found Python3: 
/Users/jameshydrogen/.pyenv/versions/3.8.10/envs/mint/bin/python (found version 
"3.8.10") found components: Interpreter Development.Module NumPy
         -- Found Python3Alt: 
/Users/jameshydrogen/.pyenv/versions/3.8.10/envs/mint/bin/python
         -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
         -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
         -- Found Threads: TRUE
         -- Checking for modules 'libbrotlicommon;libbrotlienc;libbrotlidec'
         --   Found libbrotlicommon, version 1.0.9
         --   Found libbrotlienc, version 1.0.9
         --   Found libbrotlidec, version 1.0.9
         -- Found Brotli: 
/opt/homebrew/Cellar/brotli/1.0.9/lib/libbrotlicommon.dylib
         -- Found OpenSSL: /opt/homebrew/opt/[email protected]/lib/libcrypto.dylib 
(found version "1.1.1s")
         -- Checking for module 'thrift'
         --   Found thrift, version 0.17.0
         -- Found Thrift: 
/opt/homebrew/Cellar/thrift/0.17.0/lib/libthrift.dylib (found version "0.17.0")
         -- Found Protobuf: /opt/homebrew/lib/libprotobuf.dylib (found version 
"3.21.11")
         -- Found ZLIB: 
/Library/Developer/CommandLineTools/SDKs/MacOSX13.0.sdk/usr/lib/libz.tbd (found 
version "1.2.11")
         CMake Warning at /opt/homebrew/lib/cmake/Arrow/Findlz4Alt.cmake:29 
(find_package):
           By not providing "Findlz4.cmake" in CMAKE_MODULE_PATH this project 
has
           asked CMake to find a package configuration file provided by "lz4", 
but
           CMake did not find one.
   
           Could not find a package configuration file provided by "lz4" with 
any of
           the following names:
   
             lz4Config.cmake
             lz4-config.cmake
   
           Add the installation prefix of "lz4" to CMAKE_PREFIX_PATH or set 
"lz4_DIR"
           to a directory containing one of the above files.  If "lz4" provides 
a
           separate development package or SDK, be sure it has been installed.
         Call Stack (most recent call first):
           
/opt/homebrew/Cellar/cmake/3.25.1/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47
 (find_package)
           /opt/homebrew/lib/cmake/Arrow/ArrowConfig.cmake:105 (find_dependency)
           CMakeLists.txt:268 (find_package)
   
   
         -- Checking for module 'liblz4'
         --   Found liblz4, version 1.9.4
         -- Found lz4Alt: /opt/homebrew/Cellar/lz4/1.9.4/lib/liblz4.dylib
         -- Found BZip2: 
/Library/Developer/CommandLineTools/SDKs/MacOSX13.0.sdk/usr/lib/libbz2.tbd 
(found version "1.0.8")
         -- Looking for BZ2_bzCompressInit
         -- Looking for BZ2_bzCompressInit - found
         -- Found utf8proc: /opt/homebrew/lib/libutf8proc.dylib (found version 
"2.8.0")
         -- Found c-ares: /opt/homebrew/lib/cmake/c-ares/c-ares-config.cmake 
(found version "1.18.1")
         -- Found AWS SDK for C++, Version: 1.10.10, Install 
Root:/opt/homebrew, Platform Prefix:, Platform Dependent Libraries: pthread;curl
         -- Components specified for AWSSDK: 
config;s3;transfer;identity-management;sts, application will be depending on 
libs: 
aws-cpp-sdk-config;aws-cpp-sdk-transfer;aws-cpp-sdk-identity-management;aws-cpp-sdk-cognito-identity;aws-cpp-sdk-sts;aws-cpp-sdk-s3;aws-cpp-sdk-core
         -- Try finding aws-cpp-sdk-core
         -- Found aws-cpp-sdk-core
         -- Try finding aws-cpp-sdk-s3
         -- Found aws-cpp-sdk-s3
         -- Try finding aws-cpp-sdk-sts
         -- Found aws-cpp-sdk-sts
         -- Try finding aws-cpp-sdk-cognito-identity
         -- Found aws-cpp-sdk-cognito-identity
         -- Try finding aws-cpp-sdk-identity-management
         -- Found aws-cpp-sdk-identity-management
         -- Try finding aws-cpp-sdk-transfer
         -- Found aws-cpp-sdk-transfer
         -- Try finding aws-cpp-sdk-config
         -- Found aws-cpp-sdk-config
         -- Arrow version: 10.0.1
         -- Found the Arrow shared library: 
/opt/homebrew/lib/libarrow.1000.1.0.dylib
         -- Found the Arrow import library: ARROW_IMPORT_LIB-NOTFOUND
         -- Found the Arrow static library: /opt/homebrew/lib/libarrow.a
         -- Configuring done
         -- Generating done
   ```
   
   ### Component(s)
   
   Parquet, Python


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to