You also have to watch that the IronPython automatically loads some assemblies that pyc does not. It may be overkill but I reference the following in every script I make into an exe.
#Key IronPython References needed for final EXE when IronPython is not installed clr.AddReference('IronPython') clr.AddReference('IronPython.Modules') clr.AddReference('Microsoft.Dynamic') clr.AddReference('Microsoft.Scripting') clr.AddReference('Microsoft.Scripting.Core') clr.AddReference('Microsoft.Scripting.Debugging') clr.AddReference('Microsoft.Scripting.ExtensionAttribute') clr.AddReference('mscorlib') clr.AddReference('System') clr.AddReference('System.Data') On Thu, Apr 29, 2010 at 5:13 PM, David DiCato <ddic...@microsoft.com> wrote: > This is probably an assembly load failure. Try copying "c:\Program > Files\IronPython 2.6"\*.dll into your program directory. You will also need > to make sure that sys.path is properly set if you're using the CPython > standard lib for anything. > > We realize this is kind of an undesirable workaround, which is why we're > planning to put all of IronPython's required DLLs in the GAC at some point > in the future. > > - David > > -----Original Message----- > From: users-boun...@lists.ironpython.com [mailto: > users-boun...@lists.ironpython.com] On Behalf Of Mico Siahaan > Sent: Thursday, April 29, 2010 3:04 PM > To: Users@lists.ironpython.com > Subject: [IronPython] Dirstributing scripts as Exe > > Dear all, > > In CPython there is py2exe to distribute scripts as exe. I notice > there is pyc.py scripts in IronPython\Tools. I tried to use pyc to > compile one simple script. It produced an exe file. But when I tried > to run the exe file, Windows complained: 'Windows stop working...'. > Did I do something wrong? > > -- > Mico | mico.siah...@gmail.com | @bangmico > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com