[python-win32] problem in making exe of python
Mike Driscoll
mdriscoll at co.marshall.ia.us
Mon Jul 6 15:59:27 CEST 2009
Marium,
> 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
>
This list is for developers that use the PyWin32 package or similar
packages. You really want the wxPython or py2exe mailing list.
I have seen this error before though. I think it's related to not having
one or more of the required dlls on your system. Make sure you have
msvcp71.dll and MSVCR71.dll and (maybe) gdiplus.dll.
- Mike
More information about the python-win32
mailing list