Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > py2exe-created exe results in "application failed to initialize"

Reply
Thread Tools

py2exe-created exe results in "application failed to initialize"

 
 
Rick King
Guest
Posts: n/a
 
      08-07-2009
Hi everyone,
I want to package up an application into an exe using py2exe but the
result produces the dreaded

"application failed to initialize 0x....142" error.

I'm using wxPython and basically just took the sample for wxpython GUI
that came with py2exe and changed the name. My setup is python 2.6,
wxpython 2.8. My setup.py looks like the following.

from distutils.core import setup
import py2exe
import sys

class Target:
def __init__(self, **kw):
self.__dict__.update(kw)
# for the versioninfo resources
self.version = "0.1"
self.company_name = "OWDC"
self.copyright = "no copyright"
self.name = "FileTool"

manifest_template = '''
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
..... etc.
'''

RT_MANIFEST = 24

FileTool = Target(
description = "FileTool",
script = "filetoolGUI.py",
other_resources = [(RT_MANIFEST, 1, manifest_template %
dict(prog="FileTool"))],
dest_base = "FileTool")

setup(
options = {"py2exe": {"compressed": 1,"optimize": 2,"ascii":
1,"bundle_files": 1}},
zipfile = None,
windows = [FileTool],
)

Any help will be greatly appreciated!

Rick King
Southfield MI USA

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP services.exe / lsass.exe application failed to initialize boot error Bob Thompson Computer Support 9 01-11-2011 08:56 PM
Using ajax call to fetch multiple results from multiple queries and showing them 1 by 1 as the results comes. Biranchi Narayan Panda ASP .Net 0 02-21-2010 03:46 PM
How can I make this more efficient? (combining DataSet results with the results of a DB lookup.) Ken Fine ASP .Net 3 07-23-2008 08:11 AM
Prefix increment/decrement results in lvalue, but postfix one results in rvalue? lovecreatesbeauty C++ 8 09-12-2005 10:23 PM
Displaying results as "pages" of a JTable and sorting across all results ... Monique Y. Mudama Java 1 06-28-2005 01:01 AM



Advertisments