Ask Your Question

JimG's profile - activity

2019-04-16 02:38:17 -0500 received badge  Notable Question (source)
2017-04-27 08:26:40 -0500 received badge  Popular Question (source)
2016-01-03 07:57:24 -0500 asked a question cv2 Import Fails with 64 Bit Anaconda 3-2.4.1/Python 3.5.1.final.0 and OpenCV 3.1.0

Per following details, cv2 Python import fails for what appears to be missing DLL dependency issues.

Dependency Walker lists many issues (list below).

New to Python and OpenCV, but researching many posts seems like a build for Python 3.5.1 and OpenCV 3.1.0 will fix the issue.

Any help and guidance much appreciated.

Tks, Jim

Import cv2.pyt Error


ImportError Traceback (most recent call last) <ipython-input-1-72fbbcfe2587> in <module>() ----> 1 import cv2

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

Anaconda/Python Detailsinstall file : Anaconda3-2.4.1-Windows-x86_64.exe install file URL : https://www.continuum.io/downloads#_w... platform : win-64 conda version : 3.18.8 conda-build version : 1.18.2 python version : 3.5.1.final.0 requests version : 2.8.1 root environment : C:\Users\James\Anaconda3 (writable) default environment : C:\Users\James\Anaconda3 envs directories : C:\Users\James\Anaconda3\envs package cache : C:\Users\James\Anaconda3\pkgs channel URLs : https://repo.continuum.io/pkgs/free/w... https://repo.continuum.io/pkgs/free/n... https://repo.continuum.io/pkgs/pro/wi... https://repo.continuum.io/pkgs/pro/no... config file : None is foreign system : False

 cv2.pyd file : C:\Users\James\Anaconda3\Lib\site-packages\cv2.pyd
 cv2.pyd file : 44,995 KB

cv2.pyd date modified : 12/18/2015 9:15 AM

console Python/Anaconda startup details: Python 3.5.1 |Anaconda 2.4.1 (64-bit)| (default, Dec 7 2015, 15:00:12) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

In [2]: import platform

In [3]: platform.architecture()
Out[3]: ('64bit', 'WindowsPE')

OpenCV Detailsinstall executalbe : 3.1.0 install file URL : http://opencv.org/downloads.html opencv environment variable : OPENCV_DIR=C:\Users\James\opencv\build\x64\vc14

Environmental Variables

OPENCV_DIR
  C:\Users\James\opencv\build\x64\vc14

Path
  C:\Users\James\Anaconda3
  C:\Users\James\Anaconda3\Scripts
  %OPENCV_DIR%\bin

TEMP
  %USERPROFILE%\AppData\Local\Temp

TMP
  %USERPROFILE%\AppData\Local\Temp

cv2.pyt Missing Dependencies as Dependency Walker Reported 010316 API-MS-WIN-CORE-APIQUERY-L1-1-0.DLL API-MS-WIN-CORE-APPCOMPAT-L1-1-1.DLL API-MS-WIN-CORE-APPINIT-L1-1-0.DLL API-MS-WIN-CORE-ATOMS-L1-1-0.DLL API-MS-WIN-CORE-COM-L1-1-0 API-MS-WIN-CORE-COM-L1-1-1.DLL API-MS-WIN-CORE-COM-MIDLPROXYSTUB-L1-1-0.DLL API-MS-WIN-CORE-COM-PRIVATE-L1-1-0.DLL API-MS-WIN-CORE-COM-PRIVATE-L1-1-1.DLL API-MS-WIN-CORE-COMM-L1-1-0.DLL API-MS-WIN-CORE-CONSOLE-L2-1-0.DLL API-MS-WIN-CORE-CRT-L1-1-0.DLL API-MS-WIN-CORE-DATETIME-L1-1-1.DLL API-MS-WIN-CORE-DATETIME-L1-1-2.DLL API-MS-WIN-CORE-DEBUG-L1-1-1.DLL API-MS-WIN-CORE-DELAYLOAD-L1-1-1.DLL API-MS-WIN-CORE-ENCLAVE-L1-1-0.DLL API-MS-WIN-CORE-ERRORHANDLING-L1-1-1.DLL API-MS-WIN-CORE-ERRORHANDLING-L1-1-3.DLL API-MS-WIN-CORE-FIBERS-L1-1-1.DLL API-MS-WIN-CORE-FIBERS-L2-1-1.DLL API-MS-WIN-CORE-FILE-L1-2-1.DLL API-MS-WIN-CORE-FILE-L1-2-2.DLL API-MS-WIN-CORE-FILE-L2-1-1.DLL API-MS-WIN-CORE-FILE-L2-1-2.DLL API-MS-WIN-CORE-HEAP-L1-2-0.DLL API-MS-WIN-CORE-HEAP-L2-1-0.DLL API-MS-WIN-CORE-HEAP-OBSOLETE-L1-1-0.DLL API-MS-WIN-CORE-INTERLOCKED-L1-2-0.DLL API-MS-WIN-CORE-IO-L1-1-1.DLL API-MS-WIN-CORE-JOB-L1-1-0.DLL API-MS-WIN-CORE-JOB-L2-1-0.DLL API-MS-WIN-CORE-KERNEL32-LEGACY-L1-1-1.DLL API-MS-WIN-CORE-KERNEL32-LEGACY-L1-1-4.DLL API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-1.DLL API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-2.DLL API-MS-WIN-CORE-LARGEINTEGER-L1-1-0.DLL API-MS-WIN-CORE-LIBRARYLOADER-L1-2-0.DLL API-MS-WIN-CORE-LIBRARYLOADER-L1-2-1.DLL API-MS-WIN-CORE-LIBRARYLOADER-L2-1-0.DLL API-MS-WIN-CORE-LOCALIZATION-L1-2-1.DLL API-MS-WIN-CORE-LOCALIZATION-L1-2-2.DLL API-MS-WIN-CORE-LOCALIZATION-L2-1-0.DLL API-MS-WIN-CORE-LOCALIZATION-OBSOLETE-L1-3-0.DLL API-MS-WIN-CORE-LOCALIZATION-PRIVATE-L1-1-0.DLL API-MS-WIN-CORE-MEMORY-L1-1-2.DLL API-MS-WIN-CORE-MISC-L1-1-0.DLL API-MS-WIN-CORE-NAMEDPIPE-L1-2-0.DLL API-MS-WIN-CORE-NAMEDPIPE-L1-2-2.DLL API-MS-WIN-CORE-NAMESPACE-L1-1-0.DLL API-MS-WIN-CORE-NORMALIZATION-L1-1-0.DLL API-MS-WIN-CORE-PATH-L1-1-0.DLL API-MS-WIN-CORE-PERFCOUNTERS-L1-1-0.DLL API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-1.DLL API-MS-WIN-CORE-PROCESSENVIRONMENT-L1-2-0.DLL API-MS-WIN-CORE-PROCESSSNAPSHOT-L1-1-0.DLL API-MS-WIN-CORE-PROCESSTHREADS-L1-1-2.DLL API-MS-WIN-CORE-PROCESSTHREADS-L1-1-3.DLL API-MS-WIN-CORE-PROCESSTOPOLOGY-L1-2-0.DLL API-MS-WIN-CORE-PSAPI-ANSI-L1-1-0.DLL API-MS-WIN-CORE-PSAPI-L1-1-0.DLL API-MS-WIN-CORE-PSM-KEY-L1-1-0.DLL API-MS-WIN-CORE-QUIRKS-L1-1-0.DLL API-MS-WIN-CORE-REALTIME-L1-1-0.DLL API-MS-WIN-CORE-REGISTRY-L1-1-0.DLL API-MS-WIN-CORE-REGISTRY-L1-1-1.DLL API-MS-WIN-CORE-REGISTRY-L2-2-0.DLL API-MS-WIN-CORE-REGISTRYUSERSPECIFIC-L1-1-0.DLL API-MS-WIN-CORE-RTLSUPPORT-L1-2-0.DLL API-MS-WIN-CORE-SHLWAPI-LEGACY-L1-1-0.DLL API-MS-WIN-CORE-SHLWAPI-OBSOLETE-L1-2-0.DLL API-MS-WIN-CORE-SIDEBYSIDE-L1-1-0.DLL API-MS-WIN-CORE-STRING-L2-1-0.DLL API-MS-WIN-CORE-STRING-L2-1-1.DLL API-MS-WIN-CORE-STRING-OBSOLETE-L1-1-0.DLL API-MS-WIN-CORE-STRINGANSI-L1-1-0.DLL API-MS-WIN-CORE-SYNCH-L1-2-1.DLL API-MS-WIN-CORE-SYSINFO-L1-2-1.DLL API-MS-WIN-CORE-SYSINFO-L1-2-3.DLL API-MS-WIN-CORE-SYSTEMTOPOLOGY-L1-1-0.DLL API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL API-MS-WIN-CORE-THREADPOOL-LEGACY-L1-1-0.DLL API-MS-WIN-CORE-THREADPOOL-PRIVATE-L1-1-0.DLL ...

(more)