title: wxpython GUI .py file compiling with pyinstaller result executable won't run under windows 7
body: <p>After several times to do this, i can't do to work, i tried compiling my main .py file with py2exe, cx_freeze and pyinstaller resulting in the same error, see image below.</p>
  
  <p><a href="http://i.stack.imgur.com/f0996.jpg" rel="nofollow">Lock hunter and task manager 3 process</a></p>
  
  <p>As you can see, the compiled .exe won't run or show anything and only display in task manager the same 3 process with same amount of Kb and don let me kill process. What happened here?</p>
  
  <p>Also tried compiling the most simple GUI wxpython app and the same result error, my computer is failing?</p>
  
  <pre><code>import wx
  app = wx.App(False)
  frame = wx.Frame(None, wx.ID_ANY, "Hello World")
  frame.Show(True)
  app.MainLoop()
  </code></pre>
  
  <p>to aside i've try to compiling a simple tkinter app GUI with pyinstaller and run perfectly normal with no error or hangings.</p>
  
  <p>commands i used:</p>
  
  <pre><code>pyinstaller --debug --onefile --windowed --noupx setupfreeze.py  
  pyinstaller --onefile --windowed setupfreeze.py  
  pyinstaller --windowed --noupx setupfreeze.py  
  pyinstaller --onefile setupfreeze.py
  </code></pre>
  
  <p>programs:</p>
  
  <pre><code>python 2.7.9
  pyinstaller 2.1
  cx_freeze 4.3.4
  wxpython 3.0
  Ninja IDE (.py files run Ok)
  python module run .py without error and displayed fine
  </code></pre>
  
  <p>Thanks people... </p>
  
  <p>EDIT: py2exe setup.py:</p>
  
  <pre><code>from distutils.core import setup
  import py2exe, sys, os
  
  sys.argv.append('py2exe')
  
  setup(
      options = {'py2exe': {'bundle_files': 2, 'compressed': True}},
      windows = [{'script': "setupfreeze.py"}],
      zipfile = None,
  )
  </code></pre>