Skip to content

[Python] Allow pyarrow import to fail without triggering Py_FatalError #40849

@scw

Description

@scw

Describe the enhancement requested

The initialization of pyarrow calls InitDatetime which if it fails to import the PyDateTime CAPI capsule will call:

  Py_FatalError("Could not import datetime C API")

Depending on conditions at the time of initialization, this will crash the calling process. Would it be possible to instead fail the import of pyarrow rather than trying to abort all Python execution?

Component(s)

Python

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions