[python-win32] problem in making exe of python

Marium Ahmad marium.ahmad10 at gmail.com
Fri Jul 3 11:02:59 CEST 2009


hi all,
i m new to wx python.i found difficulty in making its exe.Although m using
the code for exe as:
#
from distutils.core import setup
import py2exe
import sys,glob,os


if len(sys.argv) == 1:
    sys.argv.append("py2exe")

# creates a standalone .exe file, no zip files

setup( options = {"py2exe": {"compressed": 1, "optimize": 2, "ascii": 1,
"bundle_files": 1}},
       zipfile = None,
       windows = [{"script": 'testing gui.py'}] )


but when i clicked gui.exe from dist folder then it raises module error as:

Traceback (most recent call last):
  File "gui.py", line 1, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "wx\__init__.pyo", line 45, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "wx\_core.pyo", line 4, in <module>
  File "zipextimporter.pyo", line 98, in load_module
ImportError: MemoryLoadLibrary failed loading wx\_core_.pyd


Although with the help of this exe code i have generated many exe files(not
based on wxpython)

Kindly help me in this regard.ur every suggestion will b honoured.
Thanks in advance!

Marium
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090703/aa83f25a/attachment.htm>


More information about the python-win32 mailing list