pythonxy - ImportError: DLL load failed: The specified procedure could not be found. Python -
recently, have installed current version of python(x,y) package (2.7.6.0) , when run python code, shows error:
traceback (most recent call last): file "d:\projects\comparison\lagebestimmung\main.py", line 11, in <module> import cv2 importerror: dll load failed: specified procedure not found.
i correctly selected opencv module during installation.
also, use have older version of python(x,y) before in computer uninstalled before installing new version. in version, there no such problem.
- use dependency walker (http://www.dependencywalker.com/) on cv2.pyd 'site-packages'.
- look @ higher-left corner, library tree is.
- normal libraries have blue or gray icons, find libraries red icons on left, this: http://i.stack.imgur.com/yieud.png.
- find api's having red flag , remember parent library names of libraries red icon. red flag means parent library requires api, absent in underlying library. in case library red icon 'kernel32.dll', , it's parent libraries msvcr90.dll, tbb.dll , library 'winsxs', name's obscured.
- usually problem can solved obtaining correct versions of parent libraries. example, trying use dll, compiled windows vista, on windows xp. dll imports 'initializecriticalsectionex' api, absent in windows xp's 'kernel32.dll'. obtaining xp version of dll or recompiling 'initializecriticalsection' instead of 'ex' solve problem. example: using opencv compiled use qt 4.8.4 , pyqt4, contains qt version 4.7. cv2.pyd (which dll, way) refuse import because qt api's required in opencv not available in 4.7's dll's. solution put qt libraries version 4.8.4 '%pythonhome%\lib\site-packages\pyqt4' folder or path. encountered problem myself when building own version of opencv git repo.
Comments
Post a Comment