Problem importing OpenCV when debugging


I am having problens debugging my code. When I use OpenCV by importing cv2 I get the following output:

pydev debugger: process 8272 is connecting

Connected to pydev debugger (build 141.1899)
Traceback (most recent call last):
  File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5.3\helpers\pydev\", line 2358, in <module>
    globals =['file'], None, None, is_module)
  File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5.3\helpers\pydev\", line 1778, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "C:/work/210 Python/6 imagingSource/", line 3, in <module>
    import cv2
  File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5.3\helpers\pydev\", line 71, in patched_import
    return original_import(name, *args, **kwargs)
ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden.

So some DLL can not be loaded. I do not get the error when I normally run the file.

I checked the run and debug environments with the os package. They are almost the same, differing only in some additional entries for the pydev debug environment. I think I also checked whether or not a 64bit interpreter is being used by executing sys.maxsize in both environments. They return the same values so I guess they are both the same - 64bit.

So I am without a clue what could be the cause of this issue. Does anyone have an idea?

Thanks in advance!
1 comment
Comment actions Permalink
Your problem is related to, please, file issue in PyCharm issue-tracker:

Please sign in to leave a comment.