py2exe: abnormal program termination

PyDenis barmenkov at bpc-dot-ru.no-spam.invalid
Wed Mar 15 09:42:37 CET 2006


Today, I found strange error while using py2exe:

1. I wrote simple program and save as 1.py:
import win32ui
import win32con

win32ui.MessageBox('Test messageBox.' , 'Test', win32con.MB_OK |
win32con.MB_TOPMOST )

2. I create 1_setup.py file for py2exe:

> from distutils.core import setup
> import py2exe
> 
> setup( 
>       version = "0.0",
>       description = "",
>       name = '',
> 
>     options = {"py2exe": {"compressed": 1,
>                           "optimize": 2,
>                           "bundle_files": 1}},
> 
>       console = ["1.py"],
>       zipfile = None,
>      )
> 

3. I run 1.exe and get error:
[code:1:7ea8ce03ac]
Runtime Error!
Abnormal program termination.
[/code:1:7ea8ce03ac]
[URL=http://imageshack.us]http://img74.imageshack.us/img74/4212/abnormal5mv.png[/URL]

Is there a way to fix it?
Common way (python 1.py) works.

Thank you!




More information about the Python-list mailing list