title: DLL load failed when importing PySide2, only while debugging
body: <p>Im facing a strange issue. I have downloaded and installed the Qt for Python library (<a href="http://doc.qt.io/qtforpython/gettingstarted.html" rel="nofollow noreferrer">PySide2</a>) in the virtual environment of my project in PyCharm. I have created a dummy GUI using the Qt Designer and Im loading (.ui file) and displaying the GUI through my python code. Whenever I run the code, I can see the GUI without errors. However, whenever I debug the code, I get an error:</p>
  
  <p>File "...\gui_pyside2.py", line 5, in </p>
  
  <pre><code>from PySide2.QtWidgets import QApplication, QLabel, QLineEdit
  </code></pre>
  
  <p><strong>ImportError: DLL load failed: The specified procedure could not be found.</strong></p>
  
  <p>Pydev crashes on this line:</p>
  
  <pre><code>#execute the script (note: it's important to compile first to have the filename set in debug mode)
  exec(compile(contents+"\n", file, 'exec'), glob, loc)
  </code></pre>
  
  <p>Im pretty lost on what could be the cause. It seems like pydev is interfering with the imports? I have tried using import statements instead of from import but the problem persists. Any ideas?</p>
  
  <p>Versions installed:</p>
  
  <ul>
  <li>PyCharm Community 2018.1.4</li>
  <li>pydev debugger (build 181.5087.37)</li>
  <li>Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900
  64 bit (AMD64)] </li>
  <li>PySide2-5.11.1a1.dev1530373667-5.11.1.dist (technical preview, python binding to Qt 5.11)</li>
  </ul>