<div dir="ltr">Hi all,<div>I'll just post an answer to my own question before even asking it. I struggled with this just too long to want anybody else to hit to the same problem.</div><div><br></div><div>When trying to import qgis in Eclipse I got an error:</div><div>ImportError: DLL load failed: The specified procedure could not be found.<br></div><div><br></div><div>That was weird because I thought the environment was set up right.</div><div>The problem was that I had also C:\ProgramData\Oracle\Java\javapath in the PATH environment variable. Do not do that it messes the Eclipse up!</div><div><br></div><div>Let me explain little better.</div><div>I started Eclipse with a bat file that called the o4w_env.bat and set the PATH environment to include C:\OSGeo4W64\apps\qgis\bin. I had included also C:\ProgramData\Oracle\Java\javapath to the PATH so Eclipse could find javaw.exe. This javapath folder updates on every java update to include shortcuts to the newest java install.</div><div><br></div><div>When running python from cmd.exe that was started with the same bat everything worked great. I even looked dependencies of _core.pyd with Dependency Walker and it found all the deps. Only the import inside Eclipse didn't work.</div><div><br></div><div>When checking os.environ['path'] in Eclipse everything looked good and all the necessary paths were there except it had also three extra paths in the start of the string that I didn't set anywhere:</div><div><div>C:/Program Files/Java/jre1.8.0_77/bin/server</div><div>C:/Program Files/Java/jre1.8.0_77/bin</div><div>C:/Program Files/Java/jre1.8.0_77/lib/amd64</div></div><div>I don't know if these matter of not but import didn't work.</div><div><br></div><div>Finally I solved this by removing the javapath folder from the PATH and configured the -vm in eclipse.ini to be C:\ProgramData\Oracle\Java\javapath\javaw.exe</div><div><br></div><div><br></div><div>This is probably a bug in Eclipse or PyDev or something. Why it didn't find dlls even when all the folders were in PATH?</div><div><br></div><div><br></div><div>Finally I can start working with my plugins which are going to be big someday!</div><div><br></div><div><br></div><div>Hopefully someone finds this helpful.</div><div>Thanks,</div><div><br></div><div>-Lauri</div><div><br></div></div>