troubleshooting py2exe wrapping problem
i've combined setup.py book py2exe, generated an executable python gui concentration i have whole garland files dist directory, including app, w9xopen.exe msvcr71.dll. i try run application, i an blunder summary only says "see logfile details". wholly problem is, record record empty.
the closest blunder i've seen "the following modules seem missing" nonetheless i'm controlling any those modules distant i know (especially given seem databases i'm using) nonetheless digging adult google suggests comparatively soft warnings.
i've combined finished console concentration good wxpython py2exe both applications have collected run successfully. i am controlling new python toolkit called dabo, spin creates uses wxpython modules i can't figure out i'm doing wrong. where i start questioning problem given apparently record record hasn't too useful?
edit 1:
the python chronicle 2.5. py2exe 0.6.8. there touching build errors. wholly bit "the following modules seem missing..." non vicious errors given packages listed ones i unequivocally controlling shouldn't stop execution app either. controlling executable assembled logfile totally empty. formerly an blunder locales i've given bound nonetheless clearly something wrong executable wasn't running. setup.py record formed definitely heavily uncanny setup.py generated controlling "app wizard" looking during instance ed leafe others posted. yes, i have record record it's duplicate anything me use, since i'm seeking there's any troubleshooting opening i've missed assistance me out what's going on.
i have even combined unprotected skeleton exam concentration simply produces unprotected skeleton gui - an lifeless support default menu options. formula combined itself wholly 3 lines rest 3rd jubilee toolkit. again, collected an exe (as uncanny app) nonetheless simply run. there blunder cost run record record either.
edit 2:
it turns out switching "windows" "console" initial debugging functions insightful. i've got simple controlling exam app compiling genuine app!
the exam app:
import dabo
app = dabo.dapp()
app.start()
the setup.py exam app:
import os
import sys
import glob
from distutils.core import setup
import py2exe
import dabo.icons
dabodir = os.path.split(dabo.__file__)[0]
# plcae dabo icons:
icondir = os.path.split(dabo.icons.__file__)[0]
iconsubdirs = []
def geticonsubdir(arg, dirname, fnames):
".svn" dirname dirname[-1] != "\\":
icons = glob.glob(os.path.join(dirname, "*.png"))
icons:
subdir = (os.path.join("resources", dirname[len(arg)+1:]), icons)
iconsubdirs.append(subdir)
os.path.walk(icondir, geticonsubdir, icondir)
# locales:
localedir = "%s%slocale" % (dabodir, os.sep)
locales = []
def getlocales(arg, dirname, fnames):
".svn" dirname dirname[-1] != "\\":
mo_files = tuple(glob.glob(os.path.join(dirname, "*.mo")))
mo_files:
subdir = os.path.join("dabo.locale", dirname[len(arg)+1:])
locales.append((subdir, mo_files))
os.path.walk(localedir, getlocales, localedir)
data_files=[("resources", glob.glob(os.path.join(icondir, "*.ico"))),
("resources", glob.glob("resources/*"))]
data_files.extend(iconsubdirs)
data_files.extend(locales)
setup(name="basicapp",
version='0.01',
description="test dabo application",
options={"py2exe": {
"compressed": 1, "optimize": 2, "bundle_files": 1,
"excludes": ["tkconstants","tkinter","tcl",
"_imagingtk", "pil._imagingtk",
"imagetk", "pil.imagetk", "fixtk", "kinterbasdb",
"mysqldb", 'numeric', 'opengl.gl', 'opengl.glut',
'dbgadfly', 'email.generator',
'email.iterators', 'email.utils', 'kinterbasdb',
'numarray', 'pymssql', 'pysqlite2', 'wx.bitmapfromimage'],
"includes": ["encodings", "locale", "wx.gizmos","wx.lib.calendar"]}},
zipfile=none,
windows=[{'script':'basicapp.py'}],
data_files=data_files
)
Comments
Post a Comment