March 31st, 2009, 10:31 AM
Py2exe, manifests and vc-redist dlls
Hello. I've made a wxPython script which I want to distribute. I'm using py2exe which has worked for me.. kind of. The problem I'm having is with the manifest file and DLL dependancies. If I don't include the manifest everything is fine, though it has no XP theme.. If I include the manifest I get an error:
After installing that DLL (to the application directory) from Visual Studio 9.0/VC/redist/x86/Microsoft.VC90.CRT, I now get the following error when launching the main exe.
I hope someone can help me with this. I have googled and not found any solutions, figured this would be the best place for help considering there isn't a py2exe forum and the IRC channel is dead.
Some additional information.. (Note that I'm not including the manifest in the resources at the moment.. just adding the filename.exe.manifest file, copied from the sample. As I understand, it makes no difference, and also doesn't fix the problem).
py2exe setup script, based of samples/simple/setup.py:
from distutils.core import setup
def __init__(self, **kw):
# for the versioninfo resources
self.version = "18.104.22.168"
self.company_name = ""
self.copyright = ""
self.name = ""
test_wx = Target(
description = "",
script = "colourvtfc.py",
#other_resources = [(RT_MANIFEST, 1, manifest_template % dict(prog="test_wx"))],
icon_resources = [(1, "icon1.ico")],
dest_base = "colourvtfc")
version = "22.214.171.124",
description = "",
name = "ColourVTFC",
windows = [test_wx]
Thanks in advance if anyone can help me!~
OLEAUT32.dll - C:\WINDOWS\system32\OLEAUT32.dll
USER32.dll - C:\WINDOWS\system32\USER32.dll
COMCTL32.dll - C:\WINDOWS\system32\COMCTL32.dll
SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll
ole32.dll - C:\WINDOWS\system32\ole32.dll
WINMM.dll - C:\WINDOWS\system32\WINMM.dll
WSOCK32.dll - C:\WINDOWS\system32\WSOCK32.dll
COMDLG32.dll - C:\WINDOWS\system32\COMDLG32.dll
ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll
MSVCP90.dll - C:\py2exe\MSVCP90.dll
MSVCRT.dll - C:\WINDOWS\system32\MSVCRT.dll
GDI32.dll - C:\WINDOWS\system32\GDI32.dll
KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll
MSVCR80.dll - C:\py2exe\MSVCR80.dll
gdiplus.dll - C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll
RPCRT4.dll - C:\WINDOWS\system32\RPCRT4.dll
April 2nd, 2009, 10:36 AM
Exactly the same thing happening to me, I did exactly the same steps and got the same errors today.
I think I've got p2exe 6.6 installed at home so I'm gonna give that a go. If I find a solution I'll post it here.
April 2nd, 2009, 12:52 PM
After a little further investigation this evening, it looks like it's a bug
The bugs listed as bug 4566
There's a patch at the top of the bug page, I think it's written in c? But I'm not sure what to do with it, can anyone help out? I'd post the url But it says I not allowed
April 10th, 2009, 06:00 PM
I ran into the same exact problem. After removing "icon_resources" from the windows portion of setup(), I can now run my application without the runtime error.
April 20th, 2009, 02:47 PM
i was having the same problem but i found that if i make a manifest file and copy the content of python.exe.manifest everything is working correctly
Give it a try.