title: unable to run executable after cx_freeze, numpy deleting sys
body: <p>I am trying to create an .exe file for my simple game programmed in Python. From within python it runs, when I build it and try to open .exe, I get the following error:</p>
  
  <pre><code> File "/usr/lib/pymodules/python2.7/cx_Freeze/initscripts/Console.py", line 27, in &lt;module&gt;
      exec code in m.__dict__
    File "snakegame.py", line 1, in &lt;module&gt;
    File "/usr/local/lib/python2.7/dist-packages/pygame/__init__.py", line 346, in &lt;module&gt;
      import pygame.surfarray
    File "/usr/local/lib/python2.7/dist-packages/pygame/surfarray.py", line 72, in &lt;module&gt;
      import pygame._numpysurfarray as numpysf
    File "/usr/local/lib/python2.7/dist-packages/pygame/_numpysurfarray.py", line 51, in &lt;module&gt;
      import numpy
    File "/usr/lib/python2.7/dist-packages/numpy/__init__.py", line 163, in &lt;module&gt;
      from .core import *
  AttributeError: 'module' object has no attribute 'sys'
  </code></pre>
  
  <p>From this discussion
  <a href="https://mail.scipy.org/pipermail/numpy-discussion/2013-February/065596.html" rel="nofollow">https://mail.scipy.org/pipermail/numpy-discussion/2013-February/065596.html</a>
   I try to edit my <code>/numpy/core/__init__.py</code>, namely deleting the line <code>del sys</code> at the end. However it does not help and I get the same error trying to run .exe. What can be the solution?</p>