I am new to...everything. Just downloaded the Enthought Python Distribution
and downloaded an Envisage example; Envisage seems to be the
python-equivalent of Eclipse...with workbench, and extensibility via
Anyway, it is supposed to be a very simple example and it runs just fine,
but I wanted to create a standalone *.exe, but can't.
Here are the files.
from enthought.envisage.api import join
from enthought import envisage
import enthought.plugins.text_editor as text_editor
import enthought.plugins.python_shell as python_shell
# The plugin definitions required by the application.
PLUGIN_DEFINITIONS = [
# Core plugins .
# The UI .
join(envisage, 'workbench/action/action_plugin_definition.py'), # The
shell and editor.
from plugin_definitions import PLUGIN_DEFINITIONS
gui = GUI()
application = Application(
argv = sys.argv,
id = "simple_app",
gui = gui,
plugin_definitions = PLUGIN_DEFINITIONS,
requires_gui = False
application.start() # Start the application.
gui.start_event_loop() # Start the GUI event loop.
application.stop() # Stop the app once GUI quits.
main() # Run the application.
To run this program from my DOS prompt, all I do is this:
> python simple.py
And it runs just fine.
But if I try py2exe with the following setup.py:
from distutils.core import setup
and the following command:
> python setup.py py2exe
then, at the end, I get this:
The following modules appear to be missing
['enthought.envisage', 'enthought.envisage.api', '
enthought.plugins.python_shell', 'enthought.plugins.text_editor', '
Needless to say, the resulting *.exe is rather small and it does not work.
The enthought pagakces in the site-package directories are directories
themselves and their names end in *.egg, but they are not zipped or
Any hints would much appreciated, preferably in python code that makes this
simple example compile into a standalone exe file.
From: Werner F. Bruhin <werner.bruhin@fr...> - 2008-03-10 09:46:50
German Salazar wrote:
> I am new to...everything. Just downloaded the Enthought Python
> Distribution and downloaded an Envisage example; Envisage seems to be
> the python-equivalent of Eclipse...with workbench, and extensibility via
> plugins...very promising.
> Anyway, it is supposed to be a very simple example and it runs just
> fine, but I wanted to create a standalone *.exe, but can't.
The 'egg' is your problem, py2exe is currently not able to handle them
'out of the box'.
I had a similar problem with sqlalchemy (thread: sqlalchemy 0.4.x and
py2exe) Simon King provided a script in that thread which I used as the
base for mine.