# Error "ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation." with Pyinstaller

**URL:** <https://discuss.python.org/t/error-importerror-error-recursion-is-detected-during-loading-of-cv2-binary-extensions-check-opencv-installation-with-pyinstaller/17554>\
**Category:** Python Help\
**Tags:** help\
**Created:** [July 21, 2022, 1:46pm UTC](https://discuss.python.org/t/error-importerror-error-recursion-is-detected-during-loading-of-cv2-binary-extensions-check-opencv-installation-with-pyinstaller/17554 "2022-07-21T13:46:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Digby](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@Digby](https://discuss.python.org/u/Digby)\
**Post date:** [August 22, 2022, 5:47am UTC](https://discuss.python.org/t/error-importerror-error-recursion-is-detected-during-loading-of-cv2-binary-extensions-check-opencv-installation-with-pyinstaller/17554/3 "2022-08-22T05:47:17Z")

</div>

I had the exact same issue when I upgraded from 3.10.2 to 3.10.6.  
I also had updated my packages at the same time.  
Then none of my opencv scripts worked.

I went into Appdata/local/programs/python/python310/lib/site-packages.  
I renamed cv2 to cv2\_ORG.

I did a pip uninstall\install

and it worked. I can only think that something was cached from my previous version

I hope this works

 ![image](https://us1.discourse-cdn.com/flex002/uploads/python1/original/2X/f/ff2398ec35ccbc9cf9a0857856c734d3ae20dca1.png)

---

_[View the full topic](https://discuss.python.org/t/error-importerror-error-recursion-is-detected-during-loading-of-cv2-binary-extensions-check-opencv-installation-with-pyinstaller/17554)._
