Compiling Python script to exe
Question: I recently created a script using Python 2.7 and pygame. I have tried using
`py2exe`, but when I run the file it created, it gives me this error:

    
    
    G:\Downloads2\GAME\dist\ANNECUTE.exe\zipextimporter.py:82: RuntimeWarning: import display: No module named _view
    (ImportError: No module named _view)
    G:\Downloads2\GAME\dist\ANNECUTE.exe\zipextimporter.py:82: RuntimeWarning: import draw: No module named _view
    (ImportError: No module named _view)
    G:\Downloads2\GAME\dist\ANNECUTE.exe\zipextimporter.py:82: RuntimeWarning: import image: No module named _view
    (ImportError: No module named _view)
    G:\Downloads2\GAME\dist\ANNECUTE.exe\zipextimporter.py:82: RuntimeWarning: import pixelcopy: No module named _view
    (ImportError: No module named _view)
    G:\Downloads2\GAME\dist\ANNECUTE.exe\zipextimporter.py:82: RuntimeWarning: import transform: No module named _view
    (ImportError: No module named _view)
    Traceback (most recent call last):
      File "ANNECUTE.py", line 45, in <module>
      File "pygame\__init__.pyc", line 70, in __getattr__
    NotImplementedError: display module not available
    (ImportError: No module named _view)
    

I used this in the `setup.py` file:

    
    
    from distutils.core import setup
    import py2exe, sys, os
    sys.argv.append('py2exe')
    setup(
        options = {'py2exe': {'bundle_files': 1}},
        windows = [{'script': "ANNECUTE.py"}],
        zipfile = None,
    )
    


Answer: Try adding

    
    
    import pygame._view
    

To `zipextimporter.py`. This will import _view and should eliminate your
problem.

