Skip to content

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

Closed
@Gunther2689

Description

@Gunther2689

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions