Skip to content

Update dependent numpy version fron 1.19 -> 1.22 : Supports python3.10 #525

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

Closed
EisbarGFX opened this issue Aug 13, 2021 · 5 comments
Closed
Assignees

Comments

@EisbarGFX
Copy link

EisbarGFX commented Aug 13, 2021

Numpy now supports python 3.10 in its latest 1.22 release, however, opencv-python still uses 1.19 as its dependent version when installing via pip. Ideally, it would be best to update the numpy version to at least provide the option of using 3.10, even with the likelihood of bugs in other sections of the opencv code still present.

Currently, installing with pip leads to a rather large error with the line setup.py:67: RuntimeWarning: NumPy 1.19.3 may not yet support Python 3.10. after collecting numpy. However, issues posted on the numpy github show that they have had support for Python 3.10 releases for almost a full year now, with RC1 on 1.22dev being the most recent.

@asenyaev
Copy link
Contributor

At this moment, numpy 1.22 is not released and the latest version of numpy is 1.21.2. Numpy 1.21.2 release notes said: "The Python versions supported for this release are 3.7-3.9. The 1.21.x series is compatible with Python 3.10.0rc1 and Python 3.10 will be officially supported after it is released", what means that it is not supported officially at the moment. Moreover, GitHub Actions do not support python 3.10 too (in docs: "We are trying to build and release new versions of Python as soon as they are released").
We will update numpy and python versions as soon as they officially released.

@cclauss
Copy link
Contributor

cclauss commented Sep 8, 2021

This issue is misnamed. Given the Py3.10 statements at https://github.com/numpy/numpy/releases this issue should emphasize the currently released numpy 1.21, not future numpy 1.22 releases.

https://www.python.org/downloads/release/python-3100rc2
https://github.com/actions/python-versions/releases --> 3.10.0-rc.2

@cclauss
Copy link
Contributor

cclauss commented Sep 24, 2021

I could not make this work. Py3.10 release is scheduled for Oct. 4th.

@asenyaev
Copy link
Contributor

asenyaev commented Oct 7, 2021

@EisbarGFX @cclauss I'm working on it, almost all platforms are prepared, only MacOS left. PR will be as soon as possible.

@asmorkalov
Copy link
Collaborator

Enabled Python 3.10 support in OpenCV 4.5.4 release. Packages for Python prior 3.10 have old dependency for compatibility. Packages for Python 3.10 depends on numpy 1.22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants