Thanks for your response. I have done your suggestion. I am sorry to say that this does not work for us. It keeps working on my PC which has VS2008 and Python installed. It does not work on any other PC which does not have VS2008 nor vcredist_x86.exe installed.
I am using Python2.6.1. I created a simple print "hello world!" python file (nothing fancy). I freeze it with: cxfreeze.bat --target-dir= N:\sw_tools\CFGMGR\\bin\latest\ --target-name=test.exe N:\sw_tools\CFGMGR\src\VERSIONMGR\test.py It retrieves msvcr90.dll from the following location: copying C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\MSVCR90.dll -> N:\sw_tools\CFGMGR\bin\latest\MSVCR90.dll MSVCR90.dll is an exact copy of the one in my VS2008 redist directory. cx_Freeze generated the following files in my target directory: MSVCR90.dll 9.00.30729.1 python26.dll select.pyd test.exe This does not run by itself. I added the following files from the redist directory: Microsoft.VC90.CRT.manifest msvcm90.dll 9.00.30729.1 msvcp90.dll 9.00.30729.1 The manifest lists the same DLL versions: <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.00.30729.1" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity> If you want I can send you this in a zip. Unfortunately, your gmail account or the distribution list do not accept zip's with executables in. If anyone wants to see the result, let me know where to send the zip. There seem to be a bunch of people out there for whom this approach works and a number of people that have the same problem as we have. All our PC's are XP Pro with SP2 (they are all updated regularly) I sure would like to know what distinguishes the 'works' from the 'work-not's. Am I building it worng, am I using the wrong software, or do these PC's lack some crucial patch. I am probably doing something stupidly wrong, but I can't figure it out. Any help is much appreciated. Jef -----Original Message----- From: Anthony Tuininga [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2008 2:50 PM To: Mangelschots, Jef Cc: [email protected] Subject: Re: FW: executables no longer executing on PC's without Python installed See below. On Wed, Dec 10, 2008 at 3:18 PM, Mangelschots, Jef <[EMAIL PROTECTED]> wrote: > There is a lot of hoopla on the internet over this issue. > If I understand it correctly, I am lacking a manifest file for my own > application. > (I haven't tried this yet). > http://llbit.se/?p=19 Yes, I've seen a lot of problems with this and ran into many of the same problems when I was working through this issue. :-) > If this is correct, is it possible to have cx_Freeze generate such a manifest > file ? I've already done this and the manifest that is generated is included inside the frozen executable. :-) > I understand that you do not want to bundle the redistributable dll's in > cx_Freeze, > but that is not a problem. These dll's can be easily found on the internet. > > so when I freeze my hello.py, I should get the following in my install dir: > > hello.exe > hello.exe.manifest The hello.exe.manifest is already included in hello.exe. (see above) > I can then add the following files in that same directory: > > Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest > Microsoft.VC90.CRT\msvcm90.dll > Microsoft.VC90.CRT\msvcp90.dll > Microsoft.VC90.CRT\msvcr90.dll There is no need to create a subdirectory, by the way. You can have the following files in your directory and all will be well: hello.exe Microsoft.VC90.CRT.manifest msvcm90.dll msvcp90.dll msvcr90.dll I trust this resolves your problems completely? Anthony Any files attached to this e-mail will have been checked with virus detection software prior to transmission but you should carry out your own virus check before opening any attachment. Safetran Systems Corp does not accept liability for any damage or loss which may be caused by software viruses. The contents of this e-mail and any attachments are the property of Safetran Systems Corp and are intended for the confidential use by the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other person without written consent. If you are not the addressee, please notify us immediately at the following address: Safetran Systems Corporation, 2400 Nelson Miller Parkway, Louisville, Kentucky 40223. Safetran Systems Corp is a subsidiary of Invensys Plc. Registered office: Portland House, Bressenden Place, London, SW1E 5BF. UK Registered in England and Wales No. 1641421. ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ cx-freeze-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
