Hi all,
I am trying to use GU2Exe to build an executable using py2exe 0.6.9 / py 2.7.3 / Win 7 64. I wanted to include a program icon so I added the icon resource and I read somewhere that I should include a manifest file so everything looked ok. However, once I check the box for the XP Manifest File, the generated EXE fails with an R6034 error ("An application has made an attempt to load the C runtime library incorrectly..."). If I un-check the box everything works (though the icon doesn't always display in the taskbar properly). I lots of related questions when I search but no clear answers. I'm using TkInter, BeautifulSoup, pypubsub, pyparsing and the requests library, everything else is working great.
I saw suggestions to add Microsoft.VC90.CRT files (manifest and three DLLs) so I added them to the Data Files list. They showed up in the dist folder as their own subfolder but I am still getting the error. I saw another suggestion (
http://py2exe.org/index.cgi/Tutorial#Step52 ) to add the following to setup.py:
sys.path.append("C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\redist\\x86\\Microsoft.VC90.CRT")
so I used the option to "Add custom code" to add it (along with import sys) with an adjustment for my path to the files; no change.
Is this the approach to resolving the R6034 error?
I'm not sure if adding the VC90 files is required for this problem but I know it is for some problems, is this the right way to do it?
Thanks,
Eric