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