Today, I found strange error while using py2exe:
1. I wrote simple program and save as 1.py:
import win32ui
import win32con
win32ui.Message Box('Test messageBox.' , 'Test', win32con.MB_OK |
win32con.MB_TOP MOST )
2. I create 1_setup.py file for py2exe:
[color=blue]
> from distutils.core import setup
> import py2exe
>
> setup(
> version = "0.0",
> description = "",
> name = '',
>
> options = {"py2exe": {"compressed ": 1,
> "optimize": 2,
> "bundle_fil es": 1}},
>
> console = ["1.py"],
> zipfile = None,
> )
>[/color]
3. I run 1.exe and get error:
[code:1:7ea8ce03 ac]
Runtime Error!
Abnormal program termination.
[/code:1:7ea8ce03 ac]
http://img74.imageshac k.us/img74/4212/abnormal5mv.png
Is there a way to fix it?
Common way (python 1.py) works.
Thank you!
1. I wrote simple program and save as 1.py:
import win32ui
import win32con
win32ui.Message Box('Test messageBox.' , 'Test', win32con.MB_OK |
win32con.MB_TOP MOST )
2. I create 1_setup.py file for py2exe:
[color=blue]
> from distutils.core import setup
> import py2exe
>
> setup(
> version = "0.0",
> description = "",
> name = '',
>
> options = {"py2exe": {"compressed ": 1,
> "optimize": 2,
> "bundle_fil es": 1}},
>
> console = ["1.py"],
> zipfile = None,
> )
>[/color]
3. I run 1.exe and get error:
[code:1:7ea8ce03 ac]
Runtime Error!
Abnormal program termination.
[/code:1:7ea8ce03 ac]
http://img74.imageshac k.us/img74/4212/abnormal5mv.png
Is there a way to fix it?
Common way (python 1.py) works.
Thank you!
Comment