title: Executable with py2exe without incurring the [WinError87]
body: <p>I made a simple interface using <strong>PyQt</strong> and now I'm trying to deliver an executable using <strong>py2exe</strong>.</p>
  
  <p>The following <code>setup.py</code> script works fine:</p>
  
  <pre><code>from distutils.core import setup
  import py2exe
  
  setup(console=['main.py'], options={"py2exe":{"includes":["sip"]}})
  </code></pre>
  
  <p>but when I use <code>windows=[]</code> instead of <code>console=[]</code> I get the error: <code>[WinError87] The parameter is incorrect</code>.</p>
  
  <p>Is there an easy solution to this problem so I don't have to use the console.</p>
  
  <p><em>By the way I'm running py2exe version 0.9.2.2, Python 3.4, Python User Interface Compiler 4.11.3 for Qt version 4.8.6.</em></p>
  
  <p>Hope someone can help, thanks!</p>