Skip to content

[BUG] Crash when using cornac with Numpy 2.0 #628

@quentinhaenn

Description

@quentinhaenn

Description

Cornac cannot work with Numpy 2.0. Error message:
"A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'."

In which platform does it happen?

MacBook with ARM platform (M1)
MacOS 14.5
Python 3.12

How do we replicate the issue?

Simply install cornac using pip install cornac and having numpy 2.0.0, then run:
from cornac.data import Reader, Dataset

Rollback to numpy 1.26 solve the issue.

Expected behavior (i.e. solution)

Expected cornac to run with the new major version of Numpy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions