GUI2EXE Problem

I did lot o tests for creating an standalone app using py2exe and pyinstaller. It seems both of them having some drawbacks when importing modules from
a compiled extension. To solve this problem I am using a .py file in which importing all the modules individually, this includes python modules, wx, wx.lib and my modules. Secondly the package created using pyinstaller on win 32 bit machine is running without any problem on 64 bit xp. In case of py2exe I am getting this error on 64 bit xp:

File “zipextimporter.pyo”, line 98, in load_module
ImportError: MemoryLoadLibrary failed loading wx_core_.pyd

The file is ‘wx.core.pyd’ and I think it’s missing in .exe. Am I right? How do I add this file into my .exe? Do I have to add some more stuff in my setup
file
to run my application on 64 bit target machine.

Thanks

Prashant

···

Add more friends to your messenger and enjoy! Invite them now.

Hi,

I did lot o tests for creating an standalone app using py2exe and
pyinstaller. It seems both of them having some drawbacks when importing
modules from
a compiled extension. To solve this problem I am using a .py file in which
importing all the modules individually, this includes python modules, wx,
wx.lib and my modules. Secondly the package created using pyinstaller on
win 32 bit machine is running without any problem on 64 bit xp. In case of
py2exe I am getting this error on 64 bit xp:

File "zipextimporter.pyo", line 98, in load_module
ImportError: MemoryLoadLibrary failed loading wx\_core_.pyd

The file is 'wx._core_.pyd' and I think it's missing in .exe. Am I right?
How do I add this file into my .exe? Do I have to add some more stuff in my
setup file
to run my application on 64 bit target machine.

This is my reply from the py2exe-users list:

"""
Maybe: have you checked if you are distributing msvcp71.dll and
gdiplus.dll with your executable? Try to build it with bundle_files=3
and see if these dlls are there, otherwise you need to add them. Not
sure how 64 bit machines works though...
"""

Also, I think that, when you test your executable, you shouldn't
really start by using bundle_files=1 and building super optimized and
super compressed. Start easy, bundle_files=3 and no optimization, then
check if everything works fine...

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Fri, Oct 10, 2008 at 8:16 AM, Prashant Saxena wrote: