Errors when converting .py to .exe due to arcpy module

Discussion created by odonnellm on Feb 25, 2011
Latest reply on Aug 18, 2011 by g52macaj
I am trying to convert a python script to an exe using py2exe. When I do this several errors occur in the STDOUT. For example, I see the following:

The following modules appear to be missing
['_scproxy', 'arcobjects.Result', 'arcobjects._BaseArcObject', 'geoprocessing.env', 'geoprocessing.gp', 'mobile', 'production', 'sa.Raster']

My python script is importing arcpy such as:
# ESRI package
import arcpy
from arcpy import env

Although an exe is created, the executable crashes when it reaches the arcpy import.

Has anyone experienced this (Users or ESRI)?

The reason why I need to do this is because there are many libraries that do not exist on the local machines that will be running this program and it is easiest to 'compile' the program versus installing all the libraries that I require on each local machine.

Thank you for your help,