Skip to content

CMake not finding configuration for Arrow in 21.0.0 #47557

Closed

Description

@samueljamesbader

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

As of version 21.0.0, I'm seeing failure in pip install during the cmake process.

✓ If I run pip install pyarrow==20.0, pip completes the installation without issue.
✗ But if I run pip install pyarrow==21.0, I see the following before wheel build fails:

    CMake Error at CMakeLists.txt:289 (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.

While I'm not familiar with this area, the similar language suggests this is related to Issue #46386 which was addressed in 21.0.0 by #46387.

Background information:

  • pip version 25.2
  • python version 3.13.7
  • system: SUSE Linux Enterprise Server 12 SP5

Component(s)

Packaging, C++

Activity

  1. kou commented on Sep 13, 2025

    @kou
    Member

    Could you provide full build log of PYARROW_CMAKE_OPTIONS="-DCMAKE_FIND_DEBUG_MODE=ON" pip install pyarrow==21.0?

  2. samueljamesbader commented on Sep 13, 2025

    @samueljamesbader
    Author

    Thanks! Here's the relevant excerpt of that full build log, with some paths redacted by [[double-square-brackets]].

      ...
    
      CMake Error at CMakeLists.txt:289 (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.
      
      
      CMake Debug Log at CMakeLists.txt:289 (find_package):
        find_package considered the following paths for FindArrow.cmake:
      
          /tmp/pip-install-tsqqeuy1/pyarrow_c920ab1170c54a4ab1921eba850780d4/cmake_modules/FindArrow.cmake
          [[Path to cmake]]/cmake/3.29.1/share/cmake-3.29/Modules/FindArrow.cmake
      
        The file was not found.
      
        The internally managed CMAKE_FIND_PACKAGE_REDIRECTS_DIR.
      
          /tmp/pip-install-tsqqeuy1/pyarrow_c920ab1170c54a4ab1921eba850780d4/build/temp.linux-x86_64-cpython-313/CMakeFiles/pkgRedirects
      
        <PackageName>_ROOT CMake variable [CMAKE_FIND_USE_PACKAGE_ROOT_PATH].
      
          none
      
        CMAKE_PREFIX_PATH variable [CMAKE_FIND_USE_CMAKE_PATH].
      
          none
      
        CMAKE_FRAMEWORK_PATH and CMAKE_APPBUNDLE_PATH variables
        [CMAKE_FIND_USE_CMAKE_PATH].
      
          none
      
        Env variable Arrow_DIR [CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH].
      
          none
      
        CMAKE_PREFIX_PATH env variable [CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH].
      
          none
      
        CMAKE_FRAMEWORK_PATH and CMAKE_APPBUNDLE_PATH env variables
        [CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH].
      
          none
      
        Paths specified by the find_package HINTS option.
      
          none
      
        Standard system environment variables
        [CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH].
      
          /tmp/pip-build-env-3lyxhu5d/overlay
          /tmp/pip-build-env-3lyxhu5d/normal
          [[Path to cmake]]/cmake/3.29.1
          [[Path to gcc]]/gcc/14.2.0
          [[Path to cmake]]/cmake/3.29.1/bin/cmake
          [[Path to pyenv]]/.pyenv/shims
          [[Path to pyenv]]/.pyenv
          [[Many more unrelated locations on my system $PATH...]]
      
        CMake User Package Registry [CMAKE_FIND_USE_PACKAGE_REGISTRY].
      
          none
      
        CMake variables defined in the Platform file
        [CMAKE_FIND_USE_CMAKE_SYSTEM_PATH].
      
          [[Path to cmake]]/cmake/3.29.1
          /tmp/pip-install-tsqqeuy1/pyarrow_c920ab1170c54a4ab1921eba850780d4/build/lib.linux-x86_64-cpython-313/pyarrow
          /usr/X11R6
          /usr/pkg
          /opt
      
        CMake System Package Registry
        [CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY].
      
          none
      
        Paths specified by the find_package PATHS option.
      
          none
      
        find_package considered the following locations for Arrow's Config module:
      
          /tmp/pip-install-tsqqeuy1/pyarrow_c920ab1170c54a4ab1921eba850780d4/build/temp.linux-x86_64-cpython-313/CMakeFiles/pkgRedirects/ArrowConfig.cmake
          /tmp/pip-install-tsqqeuy1/pyarrow_c920ab1170c54a4ab1921eba850780d4/build/temp.linux-x86_64-cpython-313/CMakeFiles/pkgRedirects/arrow-config.cmake
          /tmp/pip-build-env-3lyxhu5d/overlay/ArrowConfig.cmake
          /tmp/pip-build-env-3lyxhu5d/overlay/arrow-config.cmake
          [[Path to my venv]]/venv/ArrowConfig.cmake
          [[Path to my venv]]/venv/arrow-config.cmake
          [[Path to cmake]]/cmake/3.29.1/ArrowConfig.cmake
          [[Path to cmake]]/cmake/3.29.1/arrow-config.cmake
          [[Path to gcc]]/gcc/14.2.0/ArrowConfig.cmake
          [[Path to gcc]]/gcc/14.2.0/arrow-config.cmake
          [[Path to pyenv]]/.pyenv/shims/ArrowConfig.cmake
          [[Path to pyenv]]/.pyenv/shims/arrow-config.cmake
          [[Path to pyenv]]/.pyenv/ArrowConfig.cmake
          [[Path to pyenv]]/.pyenv/arrow-config.cmake
          [[Many more unrelated locations on my system $PATH...]]
          /ArrowConfig.cmake
          /arrow-config.cmake
          /usr/ArrowConfig.cmake
          /usr/arrow-config.cmake
          /usr/bin/X11/ArrowConfig.cmake
          /usr/bin/X11/arrow-config.cmake
          /tmp/pip-install-tsqqeuy1/pyarrow_c920ab1170c54a4ab1921eba850780d4/build/temp.linux-x86_64-cpython-313/ArrowConfig.cmake
          /tmp/pip-install-tsqqeuy1/pyarrow_c920ab1170c54a4ab1921eba850780d4/build/temp.linux-x86_64-cpython-313/arrow-config.cmake
          /usr/local/ArrowConfig.cmake
          /usr/local/arrow-config.cmake
          /usr/games/ArrowConfig.cmake
          /usr/games/arrow-config.cmake
          /tmp/pip-install-tsqqeuy1/pyarrow_c920ab1170c54a4ab1921eba850780d4/build/lib.linux-x86_64-cpython-313/pyarrow/ArrowConfig.cmake
          /tmp/pip-install-tsqqeuy1/pyarrow_c920ab1170c54a4ab1921eba850780d4/build/lib.linux-x86_64-cpython-313/pyarrow/arrow-config.cmake
          /usr/X11R6/ArrowConfig.cmake
          /usr/X11R6/arrow-config.cmake
          /opt/ArrowConfig.cmake
          /opt/arrow-config.cmake
      
        The file was not found.
    

    If needed, I can discuss more of the build log (after I go through and scrub out any protected info first, my apologies!).

    Thanks,
    Sam

  3. samueljamesbader commented on Sep 14, 2025

    @samueljamesbader
    Author

    Update: Our system has been upgraded from SLES 12 to SLES 15, and now pyarrow installation by pip works smoothly. I'm still using the same cmake version, so I'm not sure which underlying component update is responsible for the fix.

    Since SLES 12 itself is already beyond EOL support from its own vendor, it doesn't seem necessary to troubleshoot Arrow install failures in SLES 12 any further. So I'm going to mark this as closed, with the recommendation that any user experiencing the same issue upgrade! Thanks for looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions