Skip to content

ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation. #432

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
Gunther2689 opened this issue Jan 1, 2021 · 1 comment

Comments

@Gunther2689
Copy link

Gunther2689 commented Jan 1, 2021

when built opencv4.4.0, folder 'cv2' had been create in python's site-packages.
my env:
cuda 10.2
python 3.8
vs2017
cmake3.19

>>>import cv2
ImportError: DLL load failed while importing cv2 

then i used opencv's python_loader

>python setup.py install
>python
>>>import cv2
>>>ImportError: DLL load failed while importing cv2 
['', 'D:/CodingEnv/opencv/opencv4.4.0/sources/build/lib/python3/Release', 'D:\\CodingEnv\\python\\python3.8.5\\python38.zip', 'D:\\CodingEnv\\python\\python3.8.5\\DLLs', 'D:\\CodingEnv\\python\\python3.8.5\\lib', 'D:\\CodingEnv\\python\\python3.8.5', 'D:\\CodingEnv\\python\\python3.8.5\\lib\\site-packages', 'd:\\codingenv\\opencv\\opencv4.4.0\\sources\\build\\python_loader']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\CodingEnv\opencv\opencv4.4.0\sources\build\python_loader\cv2\__init__.py", line 96, in <module>
    bootstrap()
  File "D:\CodingEnv\opencv\opencv4.4.0\sources\build\python_loader\cv2\__init__.py", line 86, in bootstrap
    import cv2
  File "D:\CodingEnv\opencv\opencv4.4.0\sources\build\python_loader\cv2\__init__.py", line 96, in <module>
    bootstrap()
  File "D:\CodingEnv\opencv\opencv4.4.0\sources\build\python_loader\cv2\__init__.py", line 23, in bootstrap
    raise ImportError('ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.')
ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.

@skvark
Copy link
Member

skvark commented Jan 2, 2021

Seems that you are not using this repository (pip install opencv-python), there is no python_loader here. Please open an issue to the OpenCV repository.

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

No branches or pull requests

2 participants