Ron,<div><br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br>
I followed the recommendation in your link and got the following result:<br>
<br>
C:\Python26\dist>golden.exe<div class="im"><br>Traceback (most recent call last):<br></div> File "golden.py", line 2, in <module><div class="im"><br> File "winsys\registry.pyc", line 39, in <module><br>
File "winsys\security.pyc", line 42, in <module><br> File "winsys\_security\_tokens.pyc", line 10, in <module><br> File "winsys\accounts.pyc", line 31, in <module><br></div>
File "winsys\dialogs.pyc", line 46, in <module><br> File "win32ui.pyc", line 12, in <module><br> File "win32ui.pyc", line 10, in __load<br>ImportError: DLL load failed: This application has failed to start because the a<br>
pplication configuration is incorrect. Reinstalling the application may fix this<br> problem.<br>
<br>
Can you think of anything else to try? Thanks!<br>
<br>
</div></blockquote><div>yes. This is a totally different kind of problem. Two likely reasons: </div><div><br></div><div>a) the DLLs from Microsoft Visual C are missing. </div><div>b) the manifest included in your .exe is not working with the visual-C DLLs of Python 2.6</div>
<div><br></div><div>Correct and offical solution for a): get vcredist from Microsoft, and run it.</div><div><br></div><div>Solution I usually use: </div><div><br></div><div>- copy msvcp90.dll, msvcr90.dll and Microsoft.VC90.CRT.manifest into the directory of your .exe</div>
<div><br></div><div><br></div><div>Solution for b)</div><div>use this manifest in your setup.py:<br></div><div><br></div><div><div>manifest_template = '''</div><div><assembly xmlns="urn:schemas-microsoft-com:asm.v1"</div>
<div>manifestVersion="1.0"></div><div> <assemblyIdentity</div><div> version="0.6.8.0"</div><div> processorArchitecture="x86"</div><div> name="%(prog)s"</div><div> type="win32"</div>
<div> /></div><div> <description>MyCare Card Browser Program</description></div><div> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"></div><div> <security></div><div> <requestedPrivileges></div>
<div> <requestedExecutionLevel</div><div> level="asInvoker"</div><div> uiAccess="false"</div><div> /></div><div> </requestedPrivileges></div><div> </security></div>
<div> </trustInfo></div><div> <dependency></div><div> <dependentAssembly></div><div> <assemblyIdentity</div><div> type="win32"</div><div> name="Microsoft.VC90.CRT"</div>
<div> version="9.0.21022.8"</div><div> processorArchitecture="x86"</div><div> publicKeyToken="1fc8b3b9a1e18e3b"</div><div> /></div><div> </dependentAssembly></div>
<div> </dependency></div><div> <dependency></div><div> <dependentAssembly></div><div> <assemblyIdentity</div><div> type="win32"</div><div> name="Microsoft.Windows.Common-Controls"</div>
<div> version="6.0.0.0"</div><div> processorArchitecture="x86"</div><div> publicKeyToken="6595b64144ccf1df"</div><div> language="*"</div><div> /></div>
<div> </dependentAssembly></div><div> </dependency></div><div></assembly></div><div>''' </div><div><br></div><div>RT_MANIFEST = 24</div></div><div><br></div><div>and within the setup-dictionary ...</div>
<div><br></div><div><div>wxreport = dict(</div><div> script = "yourscript.py",</div><div> other_resources = [</div><div> (RT_MANIFEST, 1, manifest_template % dict(prog="your Progname")),</div>
<div> ],</div><div> dest_base = r"yourdestination",</div><div><--other options--></div><div> )</div><div><br></div></div><div>best wishes,</div><div><br></div><div>Harald</div><div><br></div><div>
<div><br></div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div> <br>
Ron<br><div class="hm"> <br>
<hr>
Date: Tue, 30 Mar 2010 17:22:28 +0200<br>Subject: Re: [python-win32] Attempt to make executable from Python script<br>From: <a href="mailto:chef@ghum.de" target="_blank">chef@ghum.de</a><br>To: <a href="mailto:europe_travel@hotmail.com" target="_blank">europe_travel@hotmail.com</a><br>
CC: <a href="mailto:python-win32@python.org" target="_blank">python-win32@python.org</a></div><div><div></div><div class="h5"><br><br>Hello Travel Europe,
<div><br></div>
<div>that is a documented challenge with the excellent WinShell module from Tim Golden.</div>
<div><br></div>
<div>I described in detail how to solve it at:</div>
<div><br></div>
<div><a href="http://www.py2exe.org/index.cgi/WinShell" target="_blank">http://www.py2exe.org/index.cgi/WinShell</a><br>
<div><br></div>
<div>best wishes,</div>
<div><br></div>
<div>Harald</div>
<div><br>
<div>On Tue, Mar 30, 2010 at 07:39, travel europe <span dir="ltr"><<a href="mailto:europe_travel@hotmail.com" target="_blank">europe_travel@hotmail.com</a>></span> wrote:<br>
<blockquote style="padding-left:1ex;border-left:#ccc 1px solid">
<div>Hello,<br> <br>I am attempting to make an executable from a working Python script per the instructions from the following website:<br> <br> <a href="http://logix4u.net/Python/Tutorials/How_to_create_Windows_executable_exe_from_Python_script.html" target="_blank">http://logix4u.net/Python/Tutorials/How_to_create_Windows_executable_exe_from_Python_script.html</a><br>
<br>Everything seems to go as planned, except when I run the resulting executable I get the following message:<br> <br>Traceback (most recent call last):<br> File "tim.py", line 2, in <module><br> File "winsys\registry.pyc", line 39, in <module><br>
File "winsys\security.pyc", line 42, in <module><br> File "winsys\_security\_tokens.pyc", line 10, in <module><br> File "winsys\accounts.pyc", line 31, in <module><br> File "winsys\dialogs.pyc", line 45, in <module><br>
<strong>ImportError: No module named shell</strong><br> <br> <br>Any suggestions? Thanks!<br>
<div><br>
<hr>
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1" target="_blank">Learn More.</a></div>
</div><br>_______________________________________________<br>python-win32 mailing list<br><a href="mailto:python-win32@python.org" target="_blank">python-win32@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>GHUM Harald Massa<br>persuadere et programmare<br>Harald Armin Massa<br>Spielberger Straße 49<br>70435 Stuttgart<br>0173/9409607<br>no fx, no carrier pigeon <br>-<br>%s is too gigantic of an industry to bend to the whims of reality<br>
</div></div>                                            <br><hr>Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1" target="_blank">Learn More.</a></div>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>GHUM Harald Massa<br>persuadere et programmare<br>Harald Armin Massa<br>Spielberger Straße 49<br>70435 Stuttgart<br>0173/9409607<br>no fx, no carrier pigeon <br>-<br>%s is too gigantic of an industry to bend to the whims of reality<br>
</div>