title: DLL load failed with Python 2.7.12 in spyder (Anaconda 4.2.0 32bit)
body: <p>On Windows7, I have a module installed via an executable.</p>
  
  <p>If I go to the command line, <code>import mymodule</code> works ok.</p>
  
  <p>However, if I open spyder, on the python console it fails:</p>
  
  <pre><code>&gt;&gt;&gt; import mymodule
    File "D:\anaconda32\lib\site-packages\mymodule.py", line 28, in &lt;module&gt;
      _mymodule = swig_import_helper()
    File "D:\anaconda32\lib\site-packages\mymodule.py", line 20, in swig_import_helper
      import _mymodule
  ImportError: DLL load failed: The specified procedure could not be found.
  </code></pre>
  
  <p>On the IPython console in Spyder the module imports ok. Although, on starting up, I get the following message repeated twice:</p>
  
  <blockquote>
    <p>Kernel died, restarting</p>
  </blockquote>
  
  <p><strong>Can anyone explain what is happening here?</strong></p>
  
  <p>I have tried purging the system of python and re-installing.</p>
  
  <p>Following other similar questions I've examined mymodule.pyd and found some warnings:</p>
  
  <p><a href="https://i.stack.imgur.com/bAs9U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bAs9U.png" alt="enter image description here"></a></p>
  
  <p><strong>I'm unsure what steps to take next, any ideas?</strong></p>
  
  <p>Similar, but not duplicate, questions:</p>
  
  <p><a href="https://stackoverflow.com/questions/14334000/dll-load-failed-with-pyqgis">DLL load failed with PyQGIS</a></p>
  
  <p><a href="https://stackoverflow.com/questions/22753695/dll-load-failed-with-scipy-optimize">DLL load failed with scipy.optimize?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/34785414/how-to-install-tensorflow-on-windows/35255133#35255133">How to install TensorFlow on Windows?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/22221427/importerror-dll-load-failed-the-specified-procedure-could-not-be-found-python/24704384#24704384">ImportError: DLL load failed: The specified procedure could not be found. Python</a></p>