Skip to content

ImportError: DLL load failed: The specified module could not be found. #181

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
shibutamang opened this issue Mar 21, 2019 · 8 comments
Closed

Comments

@shibutamang
Copy link

Expected behaviour

Write here how did you expect the library to function.

Actual behaviour

Write here what went wrong.

Steps to reproduce

  • example code
  • operating system
  • architecture (e.g. x86)
  • opencv-python version
@Trooper247
Copy link

Expected behavior:
Well i want to import it first and i got this error:
File "C:\Users\Dawid\AppData\Local\Programs\Python\Python37\lib\site-packages\cv2_init_.py", line 3, in
from .cv2 import *
ImportError: DLL load failed: the specified module could not be found

I have WIN 10 updated yesterday.x64 Python 3.7.2 and Opencv latest version that is 4.0.0.21

@skvark
Copy link
Member

skvark commented Mar 25, 2019

Do you have Visual C++ redistributable 2015 installed? https://www.microsoft.com/en-us/download/details.aspx?id=48145

See this issue for more help: #174

These issues can be usually solved easily with dependency walker (because you have a missing dependency).

@Trooper247
Copy link

I have installed 2015 version of Visuall but it still doesn't work. In a matter of dependencies have the program but I don't fully understand what file I need to check. I only checked Opencv dll file and it seemed just fine.

@skvark
Copy link
Member

skvark commented Mar 25, 2019

You have to open the cv2.cp37-win_amd64.pyd file located at C:\Users\Dawid\AppData\Local\Programs\Python\Python37\lib\site-packages\

@Trooper247
Copy link

I'm gonna check it later today's evening when I come back

@Trooper247
Copy link

Trooper247 commented Mar 25, 2019

Looks like i miss 3 dll files
image
Should i download them manually and put in opencv directory ?
EDIT
Putting those dlls in Dlls folder or python37 or opencv folder does not help.

@skvark
Copy link
Member

skvark commented Mar 26, 2019

Never download arbitrary dll's from anywhere because they are most likely malware. I believe that this media feature pack is missing from your computer: https://www.microsoft.com/en-us/software-download/mediafeaturepack

@Trooper247
Copy link

Works, thanks for support!

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

3 participants