Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

DLL load failed with opencv 3.1 and python 3.5

Hello,

I installed library OpenCV 3.1 successfully - i used whl file, but i can't import cv2 anyway in my script. I saw this topic: link text ,but installing Microsoft Visual C++ 2015 Redistributable still didn't solve my problem:

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

When i used pip list module opencv-python is successful installed.

Any suggestions?

PS. I tried different versions of whl files, but it still doesn't help.

DLL load failed with opencv 3.1 and python 3.5

Hello,

I installed library OpenCV 3.1 successfully - i used whl file, but i can't import cv2 anyway in my script. I saw this topic: link text ,but installing Microsoft Visual C++ 2015 Redistributable still didn't solve my problem:

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

When i used pip list module opencv-python is successful installed.

Any suggestions?

PS. I tried different versions of whl files, but it still doesn't help.

CMake output:

Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.7" (found C:/Python27/ArcGIS10.2/python.exe)

Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.6" (found ) Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file Caffe: NO Protobuf: NO Glog: NO Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags Tesseract: NO Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR) Build libprotobuf from sources: libprotobuf not found into system The protocol buffer compiler not found Tesseract: NO

General configuration for OpenCV 3.1.0 ===================================== Version control: unknown

Platform: Host: Windows 6.1 AMD64 CMake: 2.8.11.2 CMake generator: Visual Studio 10 CMake build tool: C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe MSVC: 1600

C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe (ver 16.0.40219.1) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /wd4251 /wd4324 /wd4275 /wd4589 /MP4 /MD /O2 /Ob2 /D NDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /wd4251 /wd4324 /wd4275 /wd4589 /MP4 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /MP4 /MD /O2 /Ob2 /D NDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /MP4 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:X86 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:X86 /debug /INCREMENTAL Precompiled headers: YES Extra dependencies: 3rdparty dependencies:

OpenCV modules: To be built: core flann imgproc ml photo reg surface_matching video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib datasets rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow stitching python3 Disabled: world contrib_world Disabled by dependency: - Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 viz cvv hdf matlab sfm

Windows RT support: NO

GUI: QT: NO Win32 UI: YES OpenGL support: NO VTK support: NO

Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.6.19) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO

Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 56.41.100) format: YES (ver 56.36.101) util: YES (ver 54.27.100) swscale: YES (ver 3.1.101) resample: NO gentoo-style: YES GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO

Parallel framework: Concurrency

Other third-party libraries: Use IPP: NO Use IPP Async: NO Use Eigen: NO Use Cuda: NO Use OpenCL: YES Use custom HAL: NO

OpenCL: Version: dynamic Include path: C:/opencv/opencv/sources/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: NO

Python 3: Interpreter: C:/Python 3.5/python.exe (ver 3.5) Libraries: C:/Python 3.5/libs/python35.lib (ver 3.5.0) numpy: C:/Python 3.5/Lib/site-packages/numpy (ver 1.10.4) packages path: C:/Python 3.5/Lib/site-packages

Python (for build): C:/Python 3.5/python.exe

Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO

Matlab: Matlab not found or implicitly disabled

Tests and samples: Tests: NO Performance tests: NO C/C++ Examples: NO

Install path: C:/opencv/opencv/build/install

cvconfig.h is in: C:/opencv/opencv/build

Configuring done Generating done

click to hide/show revision 3
No.3 Revision

updated 2016-02-22 07:49:51 -0600

berak gravatar image

DLL load failed with opencv 3.1 and python 3.5

Hello,

I installed library OpenCV 3.1 successfully - i used whl file, but i can't import cv2 anyway in my script. I saw this topic: link text ,but installing Microsoft Visual C++ 2015 Redistributable still didn't solve my problem:

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

When i used pip list module opencv-python is successful installed.

Any suggestions?

PS. I tried different versions of whl files, but it still doesn't help.

CMake output:

Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.7" (found C:/Python27/ArcGIS10.2/python.exe)

Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.6" (found ) Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file Caffe: NO Protobuf: NO Glog: NO Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags Tesseract: NO Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR) Build libprotobuf from sources: libprotobuf not found into system The protocol buffer compiler not found Tesseract: NO

NO General configuration for OpenCV 3.1.0 ===================================== Version control: unknown

unknown Platform: Host: Windows 6.1 AMD64 CMake: 2.8.11.2 CMake generator: Visual Studio 10 CMake build tool: C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe MSVC: 1600

1600 C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe (ver 16.0.40219.1) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /wd4251 /wd4324 /wd4275 /wd4589 /MP4 /MD /O2 /Ob2 /D NDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /wd4251 /wd4324 /wd4275 /wd4589 /MP4 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /MP4 /MD /O2 /Ob2 /D NDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /MP4 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:X86 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:X86 /debug /INCREMENTAL Precompiled headers: YES Extra dependencies: 3rdparty dependencies:

dependencies: OpenCV modules: To be built: core flann imgproc ml photo reg surface_matching video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib datasets rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow stitching python3 Disabled: world contrib_world Disabled by dependency: - Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 viz cvv hdf matlab sfm

sfm Windows RT support: NO

NO GUI: QT: NO Win32 UI: YES OpenGL support: NO VTK support: NO

NO Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.6.19) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO

NO Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 56.41.100) format: YES (ver 56.36.101) util: YES (ver 54.27.100) swscale: YES (ver 3.1.101) resample: NO gentoo-style: YES GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO

NO Parallel framework: Concurrency

Concurrency Other third-party libraries: Use IPP: NO Use IPP Async: NO Use Eigen: NO Use Cuda: NO Use OpenCL: YES Use custom HAL: NO

NO OpenCL: Version: dynamic Include path: C:/opencv/opencv/sources/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

NO Python 2: Interpreter: NO

NO Python 3: Interpreter: C:/Python 3.5/python.exe (ver 3.5) Libraries: C:/Python 3.5/libs/python35.lib (ver 3.5.0) numpy: C:/Python 3.5/Lib/site-packages/numpy (ver 1.10.4) packages path: C:/Python 3.5/Lib/site-packages

3.5/Lib/site-packages Python (for build): C:/Python 3.5/python.exe

3.5/python.exe Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO

NO Matlab: Matlab not found or implicitly disabled

disabled Tests and samples: Tests: NO Performance tests: NO C/C++ Examples: NO

NO Install path: C:/opencv/opencv/build/install

C:/opencv/opencv/build/install cvconfig.h is in: C:/opencv/opencv/build

C:/opencv/opencv/build ----------------------------------------------------------------- Configuring done Generating done

done