title: Python - Import error: DLL Load failed: %1 is not a valid win32 application
body: <p>I'm using QGIS + Python with the PyQt4 library.</p>
  
  <p>Currently I'm running Python 2.7 32bit in Windows 7 64 bit (I know these by executing sys.architecture())</p>
  
  <p>I download the PyQt4 library from <a href="https://www.riverbankcomputing.com/software/pyqt/download" rel="nofollow">https://www.riverbankcomputing.com/software/pyqt/download</a> for 32bits architecture.</p>
  
  <p>Then I add to the PATH variable: C:\Python27\Lib\site-packages\PyQt4;D:/Program Files/QGIS Essen/apps/qgis/bin;D:/Program Files/QGIS Essen/apps/qgis/python;
  And set PYTHONPATH = D:/Program Files/QGIS Essen/apps/qgis/python;</p>
  
  <p>The odd thing here is that I manage to make it work yesterday. But now when I want to run it again this error appears:</p>
  
  <p>Edit: code error added</p>
  
  <p><code>File "main.py"
     from qgis.core import *
     File "D:\PRogram Files\QGIS Essen\apps\qgis\python\qgis\__init__.py", line 36 in &lt;module&gt;
        from qgis.core import QgsFeature, QgsGeometry
     File "D:\Program Files\QGIS Essen\apps\qgis\python\qgis\core\__init__.py, line 34 in &lt;module&gt;
        from qgis._core import *
  ImportErrro: DLL load failed: %1 is not a valid win32 application</code></p>
  
  <p><a href="http://i.stack.imgur.com/31RKb.jpg" rel="nofollow">Error Screenshot</a></p>
  
  <p>Any help would be helpfull</p>