Skip to content

[Python] pyarrow releases are built without Substrait in version >=19.0.0 #47398

@ingomueller-net

Description

@ingomueller-net

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

The releases on PyPI seem to be compiled without the Substrait component. On all versions including and above 19.0.0, I observe the following problem (in a venv with pyarrow installed):

$ python -c "import pyarrow.substrait"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import pyarrow.substrait
  File "/usr/local/google/home/ingomueller/.venv/substrait-mlir/lib/python3.13/site-packages/pyarrow/substrait.py", line 30, in <module>
    raise ImportError(
    ...<2 lines>...
    ) from None
ImportError: The pyarrow installation is not built with support for 'substrait' (No module named 'substrait.proto')

In the several versions before, the same command succeeds (and has no output).

I have looked a bit into the build options and scripts but did not find any suspicious change. Another possible reason for the breakage is that something related to the protobuf files has changed but I haven't investigated that yet.

Component(s)

Python

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