Skip to content

[CI][Python] verify-rc python nightly builds fail due to missing some flags that were activated with ARROW_PYTHON=ON #33092

Closed

Description

@asfimport

Some of our nightly builds are failing with:

 [ 35%] Building CXX object CMakeFiles/_dataset.dir/_dataset.cpp.o
/arrow/python/build/temp.linux-x86_64-cpython-38/_dataset.cpp:833:10: fatal error: arrow/csv/api.h: No such file or directory
 #include "arrow/csv/api.h"
          ^~~~~~~~~~~~~~~~~
compilation terminated.

I suspect the flags included CSV=ON when building with PYTHON=ON changes here might be related: 53ac2a0

Example of nightly failures:

https://github.com/ursacomputing/crossbow/actions/runs/3135833175/jobs/5091988801

Reporter: Raúl Cumplido / @raulcd
Assignee: Raúl Cumplido / @raulcd

Related issues:

Note: This issue was originally created as ARROW-17877. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Sep 28, 2022

    @asfimport
    Author

    Raúl Cumplido / @raulcd:
    @kou what do you think, should we enable individually on the verify-release-candidate.sh and other jobs all the flags that were activated when ARROW_PYTHON=ON in the past if we are building pyarrow too:

    if(ARROW_PYTHON)
      set(ARROW_COMPUTE ON)
      set(ARROW_CSV ON)
      set(ARROW_DATASET ON)
      set(ARROW_FILESYSTEM ON)
      set(ARROW_HDFS ON)
      set(ARROW_JSON ON)
    endif() 

    or should we create some CMake group flag that enables all the requirements for pyarrow?

    There are still quite a lot of occurrences of this flag:

    $ grep -r "ARROW_PYTHON=ON" | wc -l
    22 
  2. asfimport commented on Sep 28, 2022

    @asfimport
    Author

    Joris Van den Bossche / @jorisvandenbossche:
    See also ARROW-17868, where @kou mentioned to add it back but deprecated.

    (that still means we should also update all internal usage and docs that use it)

  3. asfimport commented on Sep 28, 2022

    @asfimport
    Author

    Kouhei Sutou / @kou:
    Yes. I'll add ARROW_PYTHON back but we should not use ARROW_PYTHON=ON in the verify-release-candidate.sh.

    Because the ARROW_PYTHON dependencies are inconsistent. For example, they include ARROW_DATASET=ON but it's an optional component (not a required component) in PyArrow. And they don't include all optional components such as ARROW_PARQUET=ON.

    I think that CMake presets will be better replacement for ARROW_PYTHON because we can define multiple presets such as features-python-minimum and features-python-maximum. But CMake presets require CMake 3.19 or later...

  4. asfimport commented on Sep 29, 2022

    @asfimport
    Author

    Raúl Cumplido / @raulcd:
    Ok, perfect. I am closing this one as duplicate as all the work (updating usages and docs) is being done on ARROW-17868. Thanks @kou !

  5. asfimport commented on Sep 29, 2022

    @asfimport
    Author

    Raúl Cumplido / @raulcd:
    This issue is a duplicate.

  6. pareshnagendrapaul-git commented on Mar 2, 2025

    @pareshnagendrapaul-git

    missing header file arrow/csv/api.h error when building pyarrow from source. please give a solution.

  7. kou commented on Mar 3, 2025

    @kou
    Member

    Could you show how to reproduce your problem?
    What version of PyArrow are you using?

  8. pareshnagendrapaul-git commented on Mar 3, 2025

    @pareshnagendrapaul-git
  9. kou commented on Mar 3, 2025

    @kou
    Member

    Could you try the latest PyArrow?

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions