Skip to content

Issue with numpy 2.0 #24

@LauLauThom

Description

@LauLauThom

Some user reported some like below upon import

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'.

This could be happening with some versions of opencv such as v4.8.0.76 https://stackoverflow.com/a/78641405
also see https://numpy.org/doc/2.0/dev/depending_on_numpy.html#numpy-2-abi-handling

Updating opencv could solve it (ex with 4.10.0.84)
pip install --upgrade opencv-python-headless

If so then I can increase the minimum required version in the setup.py

Metadata

Metadata

Assignees

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