arrow: [Python] Failed building wheel for pyarrow. Raspbian/debian

Describe the bug, including details regarding any error messages, version, and platform.

Hello all,

I am running into an intractable error when I try to install pyarrow on a Raspberry Pi 4 running Raspbian 10.

CMake Error at CMakeLists.txt:261 (find_package):
        By not providing "FindArrow.cmake" in CMAKE_MODULE_PATH this project has
        asked CMake to find a package configuration file provided by "Arrow", but
        CMake did not find one.
      
        Could not find a package configuration file provided by "Arrow" with any of
        the following names:
      
          ArrowConfig.cmake
          arrow-config.cmake
      
        Add the installation prefix of "Arrow" to CMAKE_PREFIX_PATH or set
        "Arrow_DIR" to a directory containing one of the above files.  If "Arrow"
        provides a separate development package or SDK, be sure it has been
        installed.
      
      
      -- Configuring incomplete, errors occurred!
      See also "/tmp/pip-install-p4u5ohc7/pyarrow_6542d2c5cfb040c6bf8cf552a7c8e0e1/build/temp.linux-aarch64-cpython-37/CMakeFiles/CMakeOutput.log".
      See also "/tmp/pip-install-p4u5ohc7/pyarrow_6542d2c5cfb040c6bf8cf552a7c8e0e1/build/temp.linux-aarch64-cpython-37/CMakeFiles/CMakeError.log".
      error: command '/usr/bin/cmake' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects

I am really not sure how to resolve this! If anyone has any advice it would be greatly appreciated. Thank you!

Component(s)

Python

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 20 (7 by maintainers)

Most upvoted comments

Success! Successfully installed pyarrow-12.0.0 Thank you so much for your persistent help @kou . Your final suggestion to look at CMAKE_PREFIX_PATH helped me finish the job because I found that $CMAKE_PREFIX_PATH wasn’t pointing anywhere even after I had run the code to define it, which helped me go back and check dist and realize it wasn’t in the right place. Issue closed as far as I’m concerned!

The use of gcc-12 and those arguments :

Ah, sorry. I had a typo. Could you try cmake -DARROW_CXXFLAGS=-march=native ${YOUR_OTHER_CMAKE_OPTIONS} and make -j4 too?

seems to have solved my issue who was the same

Okay after one run hanging, I’m now even further, but hitting the following errors:

[ 67%] Built target arrow-compute-vector-test
[ 67%] Linking CXX executable ../../../../debug/arrow-compute-scalar-type-test
[ 67%] Linking CXX executable ../../../../debug/arrow-compute-aggregate-test
/usr/bin/ld: CMakeFiles/arrow-compute-aggregate-test.dir/aggregate_test.cc.o: file not recognized: file truncated
/usr/bin/ld: CMakeFiles/arrow-compute-scalar-type-test.dir/test_util.cc.o: file not recognized: file truncated
Scanning dependencies of target arrow-compute-kernel-utility-test
Scanning dependencies of target arrow-compute-scalar-utility-test
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[2]: *** [src/arrow/compute/kernels/CMakeFiles/arrow-compute-scalar-type-test.dir/build.make:143: debug/arrow-compute-scalar-type-test] Error 1
make[1]: *** [CMakeFiles/Makefile2:3026: src/arrow/compute/kernels/CMakeFiles/arrow-compute-scalar-type-test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [src/arrow/compute/kernels/CMakeFiles/arrow-compute-aggregate-test.dir/build.make:113: debug/arrow-compute-aggregate-test] Error 1
make[1]: *** [CMakeFiles/Makefile2:2958: src/arrow/compute/kernels/CMakeFiles/arrow-compute-aggregate-test.dir/all] Error 2
[ 68%] Building CXX object src/arrow/compute/kernels/CMakeFiles/arrow-compute-kernel-utility-test.dir/codegen_internal_test.cc.o
[ 69%] Building CXX object src/arrow/compute/kernels/CMakeFiles/arrow-compute-scalar-utility-test.dir/scalar_random_test.cc.o
[ 69%] Building CXX object src/arrow/compute/kernels/CMakeFiles/arrow-compute-scalar-utility-test.dir/scalar_set_lookup_test.cc.o
[ 69%] Building CXX object src/arrow/compute/kernels/CMakeFiles/arrow-compute-scalar-utility-test.dir/scalar_validity_test.cc.o
[ 69%] Linking CXX executable ../../../../debug/arrow-compute-kernel-utility-test
[ 69%] Building CXX object src/arrow/compute/kernels/CMakeFiles/arrow-compute-scalar-utility-test.dir/test_util.cc.o
[ 69%] Built target arrow-compute-kernel-utility-test
[ 69%] Linking CXX executable ../../../../debug/arrow-compute-scalar-utility-test
[ 69%] Built target arrow-compute-scalar-utility-test
make: *** [Makefile:141: all] Error 2

Genuinely happy this is helping others troubleshoot as well! Thank you for commenting @Trompettesib