Skip to content

CI: New NumPy release breaking Numba in our CI #61616

Open
@datapythonista

Description

@datapythonista
pandas/tests/groupby/aggregate/test_numba.py:19: in <module>
    numba = pytest.importorskip("numba")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   pytest.PytestDeprecationWarning: 
E   Module 'numba' was found, but when imported by pytest it raised:
E       ImportError('Numba needs NumPy 2.2 or less. Got NumPy 2.3.')
E   In pytest 9.1 this warning will become an error by default.
E   You can fix the underlying problem, or alternatively overwrite this behavior and silence this warning by passing exc_type=ImportError explicitly.
E   See https://docs.pytest.org/en/stable/deprecations.html#pytest-importorskip-default-behavior-regarding-importerror

Source: https://github.com/pandas-dev/pandas/actions/runs/15541539524/job/43753280349#step:9:76

Somehow related: numba/numba#10105

@pandas-dev/pandas-core I guess it's not the first time this happens, since seems that Numba has been raising ImportError instead of pining the dependencies for at least one more version. Doesn't seem like we should be pinning NumPy ourselves. Any idea how this was fixed before if it already happened, or what should we do to fix the CI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous IntegrationDependenciesRequired and optional dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions