Failure to import cv2 in python : DLL load failed.
Two weeks ago, I built openCV-3.0.0, using Visual Studio 2013 x64 on Windows 7, with Python 3.4.3. I've copied cv2.pyd into the Python34\Lib\site-packages
folder. It was working.
Today, when I typed import cv2
, I was given this error message: ImportError: DLL load failed: The specified module could not be found.
I couldn't remember everything I did to my computer in the past two weeks, but I did remember I installed openSSH for windows. When I checked my path variable, surprisingly, there is only one entry left for this software. Apparently this software erase previously existing path variable entries. While I suspect this could be the cause of the problem, I couldn't solve it. I added the path to opencv binaries, and Windows\System32, Windows\SysWow64 back but they didn't help.
When I use dependency walker, I saw the same list of missing dlls as reported [here]. (http://stackoverflow.com/questions/17...), which, according to the original poster, was misleading.
Then I'm wondering : 1) Is it indeed the path variable that gave me problem? If so, how can I restore it? 2) Could it be something other than path variable? How then can I troubleshoot?
if you built the cv2.pyd yourself, it's probably a good idea, to make a second attempt with
this should result in a (fat ~10mb) cv2.pyd, that does no more depend on opencv dlls (if you don't count opencv_ffmpeg.dll)
Thanks! That's a very good suggestion !
how does one execute that command? I tried while in the CMake\bin folder and it told me that it "does not appear to contain CMakeLists.txt". I then tried to do it in opencv-master/include where I found the file CmakeLists.txt but cmake is not a valid command there. Any help would be appreaciated