Skip to content

Fixed an issue with a recursion of cv2 in python #22269

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 19, 2022
Merged

Fixed an issue with a recursion of cv2 in python #22269

merged 1 commit into from
Jul 19, 2022

Conversation

asenyaev
Copy link
Contributor

This PR fixes an issue opencv/opencv-python#689 as @impact27 suggested.

Python docs said (link):

The contents of this dictionary should not be modified; changes may not affect the values of local and free variables used by the interpreter.

Actual behavior

ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@opencv-pushbot opencv-pushbot merged commit 4791243 into opencv:3.4 Jul 19, 2022
@asenyaev asenyaev deleted the asen/fix_python_recursion branch July 20, 2022 12:51
@alalek alalek mentioned this pull request Jul 26, 2022
This was referenced Aug 14, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants