python - Error after creating exe with Py2exe -
py2exe seems run fine although mention few modules maybe missing.
i had been using windows option (in py2exe script) remove console window realized process still remained open after closed down gui window i.e. still see process still in task manager... switched using console option , found below error printed there. believe error preventing the app closing. apart app runs fine.
iv tried creating exe simple wxpython gui app still error have no problem creating executables apps not include wxpython.
debug: src/helpers.cpp(140): 'createactctx' failed error 0x0000007b (the filename, directory name, or volume label syntax incorrect.).)
python: 2.6.6
wxpython: 2.8.11.0
windows 7
py2exe: 0.6.9
# -*- coding: utf-8 -*- distutils.core import setup import py2exe import glob excludes = ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger', 'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl', 'tkconstants', 'tkinter'] dll_excludes = ['libgdk-win32-2.0-0.dll', 'libgobject-2.0-0.dll', 'tcl84.dll', 'tk84.dll',]#'msvcp90.dll'] packages = []#'wx.lib.pubsub'] data_files = [("resources", ['resources/1187958_90214884.jpg'])] packages = ['wx.lib.pubsub',] options = {'py2exe': {'compressed': 3, 'optimize': 2, 'excludes': excludes, 'packages': packages, 'dll_excludes': dll_excludes, 'bundle_files': 1, 'dist_dir': 'dist', 'xref': false, 'skip_archive': false, 'ascii': false, 'packages': packages, 'custom_boot_script': '', } } #windows=[{'script':'gui.py'}] script in ["gui.py"]: windows=[{ 'script':[script] }] setup(options=options, console=[script], zipfile=none, data_files=data_files)
i've had little trouble getting wxpython code compile exe using py2exe. have tutorial can try here:
http://www.blog.pythonlibrary.org/2010/07/31/a-py2exe-tutorial-build-a-binary-series/
i have had issues new version of pubsub included 2.8.11.0. can read thread here: http://bit.ly/emoher
i ended reverting previous version of wx day because didn't have time figure out doing wrong. don't know if that's problem you're having though.
Comments
Post a Comment