on-internet
← Community

How to find which DLL failed in "ImportError: DLL load failed while importing" in python?

Stack Overflow ·

Context Are there commands to enhance the error message that is received such that python displays which .dll file it cannot find? For error: python test_cv2.py Traceback (most recent call last): File "test_cv2.py", line 1, in <module> import cv2 File "E:\Anaconda3\envs\py38\lib\site-packages\cv2\__init__.py", line 5, in <module> from .cv2 import * ImportError: DLL load failed while importing cv2: The specified module could not be found. (py38) E:\somepath> I would like to determine which .dll file is actually not being found. To do so, I downloaded and run DependenciesGui.exe from this reposi

Comments

Sign in or sign up to comment and upvote.

No comments yet.