title: WxPython: PyInstaller fails with No module named _core_
body: <p>I am converting my wxpython (3.0.2.0) application to binaries using PyInstaller. The binaries work fine when built and executed on Ubuntu 12.04. However if I build on Ubuntu 14.04, I get the following error. (The application works when I launch the python script directly  i.e. python my_application.py even in Ubuntu 14.04). Any idea what could be missing when packaging the application using PyInstaller?</p>
  
  <pre><code>$ ./my_application 
  Traceback (most recent call last):
    File "&lt;string&gt;", line 22, in &lt;module&gt;
    File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module
      exec(bytecode, module.__dict__)
    File "/local/workspace/my_application/out00-PYZ.pyz/wx", line 45, in &lt;module&gt;
    File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module
      exec(bytecode, module.__dict__)
    File "/local/workspace/my_application/out00-PYZ.pyz/wx._core", line 4, in &lt;module&gt;
  **ImportError: No module named _core_**
  </code></pre>
  
  <p>My PyInstaller spec file looks like this:</p>
  
  <pre><code>...
  pyz = PYZ(a.pure)
  exe = EXE(pyz,
            a.scripts,
            exclude_binaries=True,
            name='my_application',
            debug=False,
            onefile = True,
            strip=None,
            upx=True,
            console=True )
  coll = COLLECT(exe,
                 a.binaries,
                 a.zipfiles,
                 a.datas,
                 strip=None,
                 upx=True,
                 name='my_application')
  </code></pre>