-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When will opencv-python support numpy 2.0? #997
Comments
OpenCV team works on new packages release. As short term solution you can re-build OpenCV-Python package with Numpy 2 from sources. |
Error message for googling:
|
I checked the source code https://github.com/opencv/opencv/blob/4bf95ac2df822db8608c94d891f5edf8c549a03f/modules/python/package/cv2/__init__.py#L12 seems this numpy.core.multiarray is only imported but not used anywhere. |
Patch: #1002 |
I still see this import error on Ubuntu 22.0.4 LTS - but not on macOS - because the build system is pulling numpy 2 instead of numpy 1.x:
|
Also see it on Ubuntu 22.04 with numpy >= 2.0:
|
Our paddle requires support for numpy 2.0, but paddle uses opencv-python. If paddle is compiled with numpy 2.0, it will conflict with opencv-python compiled under numpy 1.0.
The text was updated successfully, but these errors were encountered: