[IronPython] Users Digest, Vol 49, Issue 80

Vadim Khaskel vkhaskel at hotmail.com
Tue Aug 26 00:58:36 CEST 2008


Thanks alot Michael for info...
 
It still seems strange to me that this .exe works from Debug directory on the machine where it was developed, but not on another machine.
 
V.> From: users-request at lists.ironpython.com> Subject: Users Digest, Vol 49, Issue 80> To: users at lists.ironpython.com> Date: Mon, 25 Aug 2008 15:35:06 -0700> > Send Users mailing list submissions to> users at lists.ironpython.com> > To subscribe or unsubscribe via the World Wide Web, visit> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> or, via email, send a message with subject or body 'help' to> users-request at lists.ironpython.com> > You can reach the person managing the list at> users-owner at lists.ironpython.com> > When replying, please edit your Subject line so it is more specific> than "Re: Contents of Users digest..."> > > Today's Topics:> > 1. Re: Users Digest, Vol 49, Issue 74 (3. Re: trying to run .exe> on another computer (Michael Foord)> 2. Re: Users Digest, Vol 49, Issue 74 (3. Re: trying to run .exe> on another computer (Srivatsn Narayanan)> > > ----------------------------------------------------------------------> > Message: 1> Date: Mon, 25 Aug 2008 23:31:45 +0100> From: Michael Foord <fuzzyman at voidspace.org.uk>> Subject: Re: [IronPython] Users Digest, Vol 49, Issue 74 (3. Re:> trying to run .exe on another computer> To: Discussion of IronPython <users at lists.ironpython.com>> Message-ID: <48B332D1.9010401 at voidspace.org.uk>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed> > Seshadri Pillailokam Vijayaraghavan wrote:> >> > In the current context, I think invoking the exe from a command prompt > > would be good enough to see any startup error messages.> >> > BTW, apart from the 2 dlls you have mentioned, you most probably need > > Microsoft.Scripting.dll, Microsoft.Scripting.Core.dll and > > IronPython.Modules.dll in the same folder for things to work.> >> > > >> > As he is using IronPython Studio it will compile his app with IronPython > 1 and not IronPython 2 (so he doesn't need the assemblies you mention > above).> > Additionally, the Python code generated by IronPython Studio will not > work on its own - so he can't just recompile against IronPython 2 with > the Pyc sample.> > Unfortunately the guys who created IronPython Studio don't seem to > respond to questions (releasing it seems to have been a 'fire and > forget' exercise - or at least that is the way it appeared).> > There is probably a command switch in the project properties that can be > used to change it from a Windows app to a console app - but I would have > to install it to find out.> > Michael> > > Thanks> >> > sesh> >> > > >> > *From:* users-bounces at lists.ironpython.com > > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Vadim Khaskel> > *Sent:* Monday, August 25, 2008 2:36 PM> > *To:* users at lists.ironpython.com> > *Subject:* Re: [IronPython] Users Digest, Vol 49, Issue 74 (3. Re: > > trying to run .exe on another computer (Michael Foord))> >> > > >> > I would appreciate if somebody can tell me how to compie windows > > app as a console application> > > > thanks,> > > > V.> >> > > From: users-request at lists.ironpython.com> > > Subject: Users Digest, Vol 49, Issue 74> > > To: users at lists.ironpython.com> > > Date: Mon, 25 Aug 2008 11:03:21 -0700> > >> > > Send Users mailing list submissions to> > > users at lists.ironpython.com> > >> > > To subscribe or unsubscribe via the World Wide Web, visit> > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > or, via email, send a message with subject or body 'help' to> > > users-request at lists.ironpython.com> > >> > > You can reach the person managing the list at> > > users-owner at lists.ironpython.com> > >> > > When replying, please edit your Subject line so it is more specific> > > than "Re: Contents of Users digest..."> > >> > >> > > Today's Topics:> > >> > > 1. Re: _scriptEngine.Shutdown ( ) (Curt Hagenlocher)> > > 2. trying to run .exe on another computer (Vadim Khaskel)> > > 3. Re: trying to run .exe on another computer (Michael Foord)> > > 4. Re: Re strict imports (Michael Foord)> > > 5. Re: CodeContext (Tomas Matousek)> > >> > >> > > ----------------------------------------------------------------------> > >> > > Message: 1> > > Date: Mon, 25 Aug 2008 09:47:23 -0700> > > From: "Curt Hagenlocher" <curt at hagenlocher.org>> > > Subject: Re: [IronPython] _scriptEngine.Shutdown ( )> > > To: "Discussion of IronPython" <users at lists.ironpython.com>> > > Message-ID:> > > <d2155e360808250947s7e948bc7m85b8f4a1b0257bcc at mail.gmail.com>> > > Content-Type: text/plain; charset="iso-8859-1"> > >> > > I don't have an answer for you yet, but I am following up on this> > > internally.> > >> > > On Sun, Aug 24, 2008 at 12:27 PM, Huzaifa <huzi_1982 at hotmail.com> wrote:> > >> > > >> > > > right but it is not available in the latest code for ipy 2.0.> > > >> > > >> > > >> > > > Curt Hagenlocher wrote:> > > > >> > > > > I'm afraid I don't quite see the question in there :).> > > > >> > > > > The purpose of ScriptEngine.Shutdown is to support functionality like> > > > > Python's sys.exitfunc.> > > > >> > > > > On Sat, Aug 23, 2008 at 8:44 PM, Huzaifa <huzi_1982 at hotmail.com> > > wrote:> > > > >> > > > >>> > > > >> scriptEngine.Shutdown ( )> > > > >>> > > > >> Is this method replaced ,if yes then with without.> > > > >>> > > > >> --> > > > >> View this message in context:> > > > >>> > > > > > http://www.nabble.com/_scriptEngine.Shutdown-%28-%29-tp19127524p19127524.html> > > > >> Sent from the IronPython mailing list archive at Nabble.com.> > > > >>> > > > >> _______________________________________________> > > > >> Users mailing list> > > > >> Users at lists.ironpython.com> > > > >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > > >>> > > > >> > > > > _______________________________________________> > > > > Users mailing list> > > > > Users at lists.ironpython.com> > > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > > >> > > > >> > > >> > > > --> > > > View this message in context:> > > > > > http://www.nabble.com/_scriptEngine.Shutdown-%28-%29-tp19127524p19133851.html> > > > Sent from the IronPython mailing list archive at Nabble.com.> > > >> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > > -------------- next part --------------> > > An HTML attachment was scrubbed...> > > URL: > > <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/ec5213ce/attachment-0001.htm>> > >> > > ------------------------------> > >> > > Message: 2> > > Date: Mon, 25 Aug 2008 17:23:47 +0000> > > From: Vadim Khaskel <vkhaskel at hotmail.com>> > > Subject: [IronPython] trying to run .exe on another computer> > > To: <users at lists.ironpython.com>> > > Message-ID: <BAY101-W11B0E09AE9019F7688A314CA670 at phx.gbl>> > > Content-Type: text/plain; charset="iso-8859-1"> > >> > >> > > Hi all,> > >> > > I'm trying to run executive file (myapp.exe) of my application found > > in debug folder along with myapp.pdb, IronMath.dll, IronPython.dll. So > > I'm trying to run this .exe file on another PC. ...I can not do that - > > nothing happens, not even single error message pops up. Please advise.> > >> > > thanks a lot,> > >> > > Vadim> > > _________________________________________________________________> > > Talk to your Yahoo! Friends via Windows Live Messenger. Find out how.> > > http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008> > > -------------- next part --------------> > > An HTML attachment was scrubbed...> > > URL: > > <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/09a17c7a/attachment-0001.htm>> > >> > > ------------------------------> > >> > > Message: 3> > > Date: Mon, 25 Aug 2008 18:28:39 +0100> > > From: Michael Foord <fuzzyman at voidspace.org.uk>> > > Subject: Re: [IronPython] trying to run .exe on another computer> > > To: Discussion of IronPython <users at lists.ironpython.com>> > > Message-ID: <48B2EBC7.9020003 at voidspace.org.uk>> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed> > >> > > Vadim Khaskel wrote:> > > > Hi all,> > > >> > > > I'm trying to run executive file (myapp.exe) of my application found> > > > in debug folder along with myapp.pdb, IronMath.dll, IronPython.dll. So> > > > I'm trying to run this .exe file on another PC. ...I can not do that -> > > > nothing happens, not even single error message pops up. Please advise.> > > >> > >> > > How did you create myapp.exe? What happens if you run it from the> > > command line?> > >> > > (If you created it from IronPython Studio and you still get nothing from> > > the command line - try compiling it as a console application instead of> > > a windows application and then rerunning.)> > >> > > Michael> > >> > > > thanks a lot,> > > >> > > > Vadim> > > >> > > > > > ------------------------------------------------------------------------> > > > Talk to your Yahoo! Friends via Windows Live Messenger. Find Out How> > > > > > <http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008> > >> > > >> > > > > > ------------------------------------------------------------------------> > > >> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > >> > >> > > --> > > http://www.ironpythoninaction.com/> > > http://www.voidspace.org.uk/> > > http://www.trypython.org/> > > http://www.ironpython.info/> > > http://www.theotherdelia.co.uk/> > > http://www.resolverhacks.net/> > >> > >> > >> > > ------------------------------> > >> > > Message: 4> > > Date: Mon, 25 Aug 2008 18:56:58 +0100> > > From: Michael Foord <fuzzyman at voidspace.org.uk>> > > Subject: Re: [IronPython] Re strict imports> > > To: dody at nomadlife.org, Discussion of IronPython> > > <users at lists.ironpython.com>> > > Message-ID: <48B2F26A.2040501 at voidspace.org.uk>> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed> > >> > > Dody Gunawinata wrote:> > > > Ah, my knowledge is out of date then.> > > >> > > > I think the more apt thread is here> > > > > > http://lists.ironpython.com/htdig.cgi/users-ironpython.com/2008-June/007523.html> > > >> > >> > > Yep - Dino confirming that sandboxing is one of the intended uses of> > > IronPython and that it should work (and a link to a blog entry about why> > > some sandboxing problems are very difficult - particularly server> > > applications where you need to protect against DoS through CPU and> > > memory over use).> > >> > > Michael> > >> > > > On Sat, Aug 23, 2008 at 9:44 PM, Michael Foord> > > > <fuzzyman at voidspace.org.uk <mailto:fuzzyman at voidspace.org.uk>> wrote:> > > >> > > >> > > >> > > > 2008/8/23 Dody Gunawinata <empirebuilder at gmail.com> > > > <mailto:empirebuilder at gmail.com>>> > > >> > > > > > http://lists.ironpython.com/htdig.cgi/users-ironpython.com/2008-April/006765.html> > > >> > > >> > > >> > > > Points to a bug in IronPython that is now fixed:> > > >> > > > http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=15928> > > >> > > >> > > >> > > >> > > > > > http://lists.ironpython.com/htdig.cgi/users-ironpython.com/2007-April/004740.html> > > >> > > >> > > >> > > > A discussion by someone who wants to do a lot more than just> > > > restrict imports and file access.> > > >> > > > Michael> > > >> > > >> > > >> > > >> > > > On Sat, Aug 23, 2008 at 3:32 PM, Michael Foord> > > > <fuzzyman at voidspace.org.uk <mailto:fuzzyman at voidspace.org.uk>>> > > > wrote:> > > >> > > >> > > > > Search the mailing list archive on this issue. The> > > > bottom line is, you> > > > > can't> > > > > - but there are tricks to make it more difficult.> > > > >> > > >> > > > Is that true? You can create an IronPython Engine in an> > > > AppDomain> > > > (IronPython 2 has lots of explicit support for this) and> > > > restrict the> > > > privileges of the AppDomain. Why would that not work?> > > >> > > > Michael> > > >> > > >> > > >> > > > > Dody G.> > > > >> > > > > On Fri, Aug 22, 2008 at 10:03 PM, Huzaifa> > > > <huzi_1982 at hotmail.com <mailto:huzi_1982 at hotmail.com>> wrote:> > > > >> > > > >>> > > > >> how can i restrict my user that he can not perform any> > > > imports or I/O> > > > >> operations in the script.> > > > >> --> > > > >> View this message in context:> > > > >>> > > > http://www.nabble.com/Restrict-imports-tp19113682p19113682.html> > > > >> Sent from the IronPython mailing list archive at> > > > Nabble.com.> > > > >>> > > > >> _______________________________________________> > > > >> Users mailing list> > > > >> Users at lists.ironpython.com> > > > <mailto:Users at lists.ironpython.com>> > > > >>> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > > >>> > > > >> > > > >> > > > >> > > > > --> > > > > nomadlife.org <http://nomadlife.org>> > > > > _______________________________________________> > > > > Users mailing list> > > > > Users at lists.ironpython.com> > > > <mailto:Users at lists.ironpython.com>> > > > >> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > > >> > > >> > > >> > > > --> > > > http://www.ironpythoninaction.com> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > > >> > > >> > > >> > > > --> > > > nomadlife.org <http://nomadlife.org>> > > >> > > >> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > > >> > > >> > > >> > > > --> > > > http://www.ironpythoninaction.com/> > > > http://www.voidspace.org.uk/> > > > http://www.ironpython.info/> > > > http://www.resolverhacks.net/> > > >> > > >> > > >> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > > >> > > >> > > >> > > > --> > > > nomadlife.org <http://nomadlife.org>> > > >> > > > > > ------------------------------------------------------------------------> > > >> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > >> > >> > > --> > > http://www.ironpythoninaction.com/> > > http://www.voidspace.org.uk/> > > http://www.trypython.org/> > > http://www.ironpython.info/> > > http://www.theotherdelia.co.uk/> > > http://www.resolverhacks.net/> > >> > >> > >> > > ------------------------------> > >> > > Message: 5> > > Date: Mon, 25 Aug 2008 11:02:50 -0700> > > From: Tomas Matousek <Tomas.Matousek at microsoft.com>> > > Subject: Re: [IronPython] CodeContext> > > To: Discussion of IronPython <users at lists.ironpython.com>> > > Cc: Curt Hagenlocher <curth at microsoft.com>> > > Message-ID:> > > <F58FE69873E2D5459B72C347DE1582412AD798B971 at NA-EXMSG-C112.redmond.corp.microsoft.com>> > >> > > Content-Type: text/plain; charset="us-ascii"> > >> > > I see. We probably should have a method on ExceptionOperations that > > returns a list of stack frame information given an exception.> > > There is also a private method on PythonOps that creates the > > traceback object and doesn't require CodeContext: CreateTraceBack. We > > might consider making it public. Curt?> > > Meanwhile, you can use GetExceptionInfoLocal with a default context > > from DefaultContext.Default. The only place where the context is used > > is to do some magic with StringException, but that doesn't influence > > the traceback object.> > >> > > Tomas> > >> > > From: users-bounces at lists.ironpython.com > > [mailto:users-bounces at lists.ironpython.com] On Behalf Of Huzaifa> > > Sent: Saturday, August 23, 2008 8:31 PM> > > To: users at lists.ironpython.com> > > Subject: Re: [IronPython] CodeContext> > >> > > I am try to get traceback object , for that i am trying different things> > > Tomas Matousek wrote:> > > The class might be actually be called ExceptionService in your bits. > > It was renamed recently. Tomas -----Original Message----- From: > > users-bounces at lists.ironpython.com > > [mailto:users-bounces at lists.ironpython.com] On Behalf Of Tomas > > Matousek Sent: Saturday, August 23, 2008 7:53 PM To: Discussion of > > IronPython Subject: Re: [IronPython] CodeContext Does > > ExceptionOeprations class provide you the information you need or is > > something missing? You can get an instance via engine.GetService(). > > Tomas -----Original Message----- From: > > users-bounces at lists.ironpython.com > > [mailto:users-bounces at lists.ironpython.com] On Behalf Of Huzaifa Sent: > > Saturday, August 23, 2008 4:56 PM To: users at lists.ironpython.com > > Subject: [IronPython] CodeContext how to get CodeContext from > > ScriptRuntime ,ScriptScope or ScriptEngine . basically i am try use > > this function: public static PythonTuple/*!*/ > > GetExceptionInfoLocal(CodeContext/*!*/ context, Exception ex) -- View > > this message in context: http://www.nabble.co> > > m/CodeContext-tp19126500p19126500.html Sent from the IronPython > > mailing list archive at Nabble.com. > > _______________________________________________ Users mailing list > > Users at lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > _______________________________________________ Users mailing list > > Users at lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > _______________________________________________ Users mailing list > > Users at lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > >> > > ________________________________> > > View this message in context: Re: > > CodeContext<http://www.nabble.com/CodeContext-tp19126500p19127475.html>> > > Sent from the IronPython mailing list > > archive<http://www.nabble.com/IronPython-f14449.html> at Nabble.com.> > > -------------- next part --------------> > > An HTML attachment was scrubbed...> > > URL: > > <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/272e826f/attachment.htm>> > >> > > ------------------------------> > >> > > _______________________________________________> > > Users mailing list> > > Users at lists.ironpython.com> > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > >> > >> > > End of Users Digest, Vol 49, Issue 74> > > *************************************> >> > ------------------------------------------------------------------------> >> > See what people are saying about Windows Live. Check out featured > > posts. Check It Out! > > <http://www.windowslive.com/connect?ocid=TXT_TAGLM_WL_connect2_082008>> >> > ------------------------------------------------------------------------> >> > _______________________________________________> > Users mailing list> > Users at lists.ironpython.com> > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > > > -- > http://www.ironpythoninaction.com/> http://www.voidspace.org.uk/> http://www.trypython.org/> http://www.ironpython.info/> http://www.theotherdelia.co.uk/> http://www.resolverhacks.net/> > > > ------------------------------> > Message: 2> Date: Mon, 25 Aug 2008 15:34:55 -0700> From: Srivatsn Narayanan <srivatsn at microsoft.com>> Subject: Re: [IronPython] Users Digest, Vol 49, Issue 74 (3. Re:> trying to run .exe on another computer> To: Discussion of IronPython <users at lists.ironpython.com>> Message-ID:> <B0F32F33670C5D47BB6D5D315C32CD6620A5041C12 at NA-EXMSG-C108.redmond.corp.microsoft.com>> > Content-Type: text/plain; charset="us-ascii"> > Including Oleg who might know something about this.> > -----Original Message-----> From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord> Sent: Monday, August 25, 2008 3:32 PM> To: Discussion of IronPython> Subject: Re: [IronPython] Users Digest, Vol 49, Issue 74 (3. Re: trying to run .exe on another computer> > Seshadri Pillailokam Vijayaraghavan wrote:> >> > In the current context, I think invoking the exe from a command prompt> > would be good enough to see any startup error messages.> >> > BTW, apart from the 2 dlls you have mentioned, you most probably need> > Microsoft.Scripting.dll, Microsoft.Scripting.Core.dll and> > IronPython.Modules.dll in the same folder for things to work.> >> >> >> > As he is using IronPython Studio it will compile his app with IronPython> 1 and not IronPython 2 (so he doesn't need the assemblies you mention> above).> > Additionally, the Python code generated by IronPython Studio will not> work on its own - so he can't just recompile against IronPython 2 with> the Pyc sample.> > Unfortunately the guys who created IronPython Studio don't seem to> respond to questions (releasing it seems to have been a 'fire and> forget' exercise - or at least that is the way it appeared).> > There is probably a command switch in the project properties that can be> used to change it from a Windows app to a console app - but I would have> to install it to find out.> > Michael> > > Thanks> >> > sesh> >> >> >> > *From:* users-bounces at lists.ironpython.com> > [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Vadim Khaskel> > *Sent:* Monday, August 25, 2008 2:36 PM> > *To:* users at lists.ironpython.com> > *Subject:* Re: [IronPython] Users Digest, Vol 49, Issue 74 (3. Re:> > trying to run .exe on another computer (Michael Foord))> >> >> >> > I would appreciate if somebody can tell me how to compie windows> > app as a console application> >> > thanks,> >> > V.> >> > > From: users-request at lists.ironpython.com> > > Subject: Users Digest, Vol 49, Issue 74> > > To: users at lists.ironpython.com> > > Date: Mon, 25 Aug 2008 11:03:21 -0700> > >> > > Send Users mailing list submissions to> > > users at lists.ironpython.com> > >> > > To subscribe or unsubscribe via the World Wide Web, visit> > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > or, via email, send a message with subject or body 'help' to> > > users-request at lists.ironpython.com> > >> > > You can reach the person managing the list at> > > users-owner at lists.ironpython.com> > >> > > When replying, please edit your Subject line so it is more specific> > > than "Re: Contents of Users digest..."> > >> > >> > > Today's Topics:> > >> > > 1. Re: _scriptEngine.Shutdown ( ) (Curt Hagenlocher)> > > 2. trying to run .exe on another computer (Vadim Khaskel)> > > 3. Re: trying to run .exe on another computer (Michael Foord)> > > 4. Re: Re strict imports (Michael Foord)> > > 5. Re: CodeContext (Tomas Matousek)> > >> > >> > > ----------------------------------------------------------------------> > >> > > Message: 1> > > Date: Mon, 25 Aug 2008 09:47:23 -0700> > > From: "Curt Hagenlocher" <curt at hagenlocher.org>> > > Subject: Re: [IronPython] _scriptEngine.Shutdown ( )> > > To: "Discussion of IronPython" <users at lists.ironpython.com>> > > Message-ID:> > > <d2155e360808250947s7e948bc7m85b8f4a1b0257bcc at mail.gmail.com>> > > Content-Type: text/plain; charset="iso-8859-1"> > >> > > I don't have an answer for you yet, but I am following up on this> > > internally.> > >> > > On Sun, Aug 24, 2008 at 12:27 PM, Huzaifa <huzi_1982 at hotmail.com> wrote:> > >> > > >> > > > right but it is not available in the latest code for ipy 2.0.> > > >> > > >> > > >> > > > Curt Hagenlocher wrote:> > > > >> > > > > I'm afraid I don't quite see the question in there :).> > > > >> > > > > The purpose of ScriptEngine.Shutdown is to support functionality like> > > > > Python's sys.exitfunc.> > > > >> > > > > On Sat, Aug 23, 2008 at 8:44 PM, Huzaifa <huzi_1982 at hotmail.com>> > wrote:> > > > >> > > > >>> > > > >> scriptEngine.Shutdown ( )> > > > >>> > > > >> Is this method replaced ,if yes then with without.> > > > >>> > > > >> --> > > > >> View this message in context:> > > > >>> > > >> > http://www.nabble.com/_scriptEngine.Shutdown-%28-%29-tp19127524p19127524.html> > > > >> Sent from the IronPython mailing list archive at Nabble.com.> > > > >>> > > > >> _______________________________________________> > > > >> Users mailing list> > > > >> Users at lists.ironpython.com> > > > >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > > >>> > > > >> > > > > _______________________________________________> > > > > Users mailing list> > > > > Users at lists.ironpython.com> > > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > > >> > > > >> > > >> > > > --> > > > View this message in context:> > > >> > http://www.nabble.com/_scriptEngine.Shutdown-%28-%29-tp19127524p19133851.html> > > > Sent from the IronPython mailing list archive at Nabble.com.> > > >> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > > -------------- next part --------------> > > An HTML attachment was scrubbed...> > > URL:> > <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/ec5213ce/attachment-0001.htm>> > >> > > ------------------------------> > >> > > Message: 2> > > Date: Mon, 25 Aug 2008 17:23:47 +0000> > > From: Vadim Khaskel <vkhaskel at hotmail.com>> > > Subject: [IronPython] trying to run .exe on another computer> > > To: <users at lists.ironpython.com>> > > Message-ID: <BAY101-W11B0E09AE9019F7688A314CA670 at phx.gbl>> > > Content-Type: text/plain; charset="iso-8859-1"> > >> > >> > > Hi all,> > >> > > I'm trying to run executive file (myapp.exe) of my application found> > in debug folder along with myapp.pdb, IronMath.dll, IronPython.dll. So> > I'm trying to run this .exe file on another PC. ...I can not do that -> > nothing happens, not even single error message pops up. Please advise.> > >> > > thanks a lot,> > >> > > Vadim> > > _________________________________________________________________> > > Talk to your Yahoo! Friends via Windows Live Messenger. Find out how.> > > http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008> > > -------------- next part --------------> > > An HTML attachment was scrubbed...> > > URL:> > <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/09a17c7a/attachment-0001.htm>> > >> > > ------------------------------> > >> > > Message: 3> > > Date: Mon, 25 Aug 2008 18:28:39 +0100> > > From: Michael Foord <fuzzyman at voidspace.org.uk>> > > Subject: Re: [IronPython] trying to run .exe on another computer> > > To: Discussion of IronPython <users at lists.ironpython.com>> > > Message-ID: <48B2EBC7.9020003 at voidspace.org.uk>> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed> > >> > > Vadim Khaskel wrote:> > > > Hi all,> > > >> > > > I'm trying to run executive file (myapp.exe) of my application found> > > > in debug folder along with myapp.pdb, IronMath.dll, IronPython.dll. So> > > > I'm trying to run this .exe file on another PC. ...I can not do that -> > > > nothing happens, not even single error message pops up. Please advise.> > > >> > >> > > How did you create myapp.exe? What happens if you run it from the> > > command line?> > >> > > (If you created it from IronPython Studio and you still get nothing from> > > the command line - try compiling it as a console application instead of> > > a windows application and then rerunning.)> > >> > > Michael> > >> > > > thanks a lot,> > > >> > > > Vadim> > > >> > > >> > ------------------------------------------------------------------------> > > > Talk to your Yahoo! Friends via Windows Live Messenger. Find Out How> > > >> > <http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008>> >> > > >> > > >> > ------------------------------------------------------------------------> > > >> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > >> > >> > > --> > > http://www.ironpythoninaction.com/> > > http://www.voidspace.org.uk/> > > http://www.trypython.org/> > > http://www.ironpython.info/> > > http://www.theotherdelia.co.uk/> > > http://www.resolverhacks.net/> > >> > >> > >> > > ------------------------------> > >> > > Message: 4> > > Date: Mon, 25 Aug 2008 18:56:58 +0100> > > From: Michael Foord <fuzzyman at voidspace.org.uk>> > > Subject: Re: [IronPython] Re strict imports> > > To: dody at nomadlife.org, Discussion of IronPython> > > <users at lists.ironpython.com>> > > Message-ID: <48B2F26A.2040501 at voidspace.org.uk>> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed> > >> > > Dody Gunawinata wrote:> > > > Ah, my knowledge is out of date then.> > > >> > > > I think the more apt thread is here> > > >> > http://lists.ironpython.com/htdig.cgi/users-ironpython.com/2008-June/007523.html> > > >> > >> > > Yep - Dino confirming that sandboxing is one of the intended uses of> > > IronPython and that it should work (and a link to a blog entry about why> > > some sandboxing problems are very difficult - particularly server> > > applications where you need to protect against DoS through CPU and> > > memory over use).> > >> > > Michael> > >> > > > On Sat, Aug 23, 2008 at 9:44 PM, Michael Foord> > > > <fuzzyman at voidspace.org.uk <mailto:fuzzyman at voidspace.org.uk>> wrote:> > > >> > > >> > > >> > > > 2008/8/23 Dody Gunawinata <empirebuilder at gmail.com> > > > <mailto:empirebuilder at gmail.com>>> > > >> > > >> > http://lists.ironpython.com/htdig.cgi/users-ironpython.com/2008-April/006765.html> > > >> > > >> > > >> > > > Points to a bug in IronPython that is now fixed:> > > >> > > > http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=15928> > > >> > > >> > > >> > > >> > > >> > http://lists.ironpython.com/htdig.cgi/users-ironpython.com/2007-April/004740.html> > > >> > > >> > > >> > > > A discussion by someone who wants to do a lot more than just> > > > restrict imports and file access.> > > >> > > > Michael> > > >> > > >> > > >> > > >> > > > On Sat, Aug 23, 2008 at 3:32 PM, Michael Foord> > > > <fuzzyman at voidspace.org.uk <mailto:fuzzyman at voidspace.org.uk>>> > > > wrote:> > > >> > > >> > > > > Search the mailing list archive on this issue. The> > > > bottom line is, you> > > > > can't> > > > > - but there are tricks to make it more difficult.> > > > >> > > >> > > > Is that true? You can create an IronPython Engine in an> > > > AppDomain> > > > (IronPython 2 has lots of explicit support for this) and> > > > restrict the> > > > privileges of the AppDomain. Why would that not work?> > > >> > > > Michael> > > >> > > >> > > >> > > > > Dody G.> > > > >> > > > > On Fri, Aug 22, 2008 at 10:03 PM, Huzaifa> > > > <huzi_1982 at hotmail.com <mailto:huzi_1982 at hotmail.com>> wrote:> > > > >> > > > >>> > > > >> how can i restrict my user that he can not perform any> > > > imports or I/O> > > > >> operations in the script.> > > > >> --> > > > >> View this message in context:> > > > >>> > > > http://www.nabble.com/Restrict-imports-tp19113682p19113682.html> > > > >> Sent from the IronPython mailing list archive at> > > > Nabble.com.> > > > >>> > > > >> _______________________________________________> > > > >> Users mailing list> > > > >> Users at lists.ironpython.com> > > > <mailto:Users at lists.ironpython.com>> > > > >>> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > > >>> > > > >> > > > >> > > > >> > > > > --> > > > > nomadlife.org <http://nomadlife.org>> > > > > _______________________________________________> > > > > Users mailing list> > > > > Users at lists.ironpython.com> > > > <mailto:Users at lists.ironpython.com>> > > > >> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > > >> > > >> > > >> > > > --> > > > http://www.ironpythoninaction.com> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > > >> > > >> > > >> > > > --> > > > nomadlife.org <http://nomadlife.org>> > > >> > > >> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > > >> > > >> > > >> > > > --> > > > http://www.ironpythoninaction.com/> > > > http://www.voidspace.org.uk/> > > > http://www.ironpython.info/> > > > http://www.resolverhacks.net/> > > >> > > >> > > >> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > > >> > > >> > > >> > > > --> > > > nomadlife.org <http://nomadlife.org>> > > >> > > >> > ------------------------------------------------------------------------> > > >> > > > _______________________________________________> > > > Users mailing list> > > > Users at lists.ironpython.com> > > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > >> > >> > >> > > --> > > http://www.ironpythoninaction.com/> > > http://www.voidspace.org.uk/> > > http://www.trypython.org/> > > http://www.ironpython.info/> > > http://www.theotherdelia.co.uk/> > > http://www.resolverhacks.net/> > >> > >> > >> > > ------------------------------> > >> > > Message: 5> > > Date: Mon, 25 Aug 2008 11:02:50 -0700> > > From: Tomas Matousek <Tomas.Matousek at microsoft.com>> > > Subject: Re: [IronPython] CodeContext> > > To: Discussion of IronPython <users at lists.ironpython.com>> > > Cc: Curt Hagenlocher <curth at microsoft.com>> > > Message-ID:> > > <F58FE69873E2D5459B72C347DE1582412AD798B971 at NA-EXMSG-C112.redmond.corp.microsoft.com>> > >> > > Content-Type: text/plain; charset="us-ascii"> > >> > > I see. We probably should have a method on ExceptionOperations that> > returns a list of stack frame information given an exception.> > > There is also a private method on PythonOps that creates the> > traceback object and doesn't require CodeContext: CreateTraceBack. We> > might consider making it public. Curt?> > > Meanwhile, you can use GetExceptionInfoLocal with a default context> > from DefaultContext.Default. The only place where the context is used> > is to do some magic with StringException, but that doesn't influence> > the traceback object.> > >> > > Tomas> > >> > > From: users-bounces at lists.ironpython.com> > [mailto:users-bounces at lists.ironpython.com] On Behalf Of Huzaifa> > > Sent: Saturday, August 23, 2008 8:31 PM> > > To: users at lists.ironpython.com> > > Subject: Re: [IronPython] CodeContext> > >> > > I am try to get traceback object , for that i am trying different things> > > Tomas Matousek wrote:> > > The class might be actually be called ExceptionService in your bits.> > It was renamed recently. Tomas -----Original Message----- From:> > users-bounces at lists.ironpython.com> > [mailto:users-bounces at lists.ironpython.com] On Behalf Of Tomas> > Matousek Sent: Saturday, August 23, 2008 7:53 PM To: Discussion of> > IronPython Subject: Re: [IronPython] CodeContext Does> > ExceptionOeprations class provide you the information you need or is> > something missing? You can get an instance via engine.GetService().> > Tomas -----Original Message----- From:> > users-bounces at lists.ironpython.com> > [mailto:users-bounces at lists.ironpython.com] On Behalf Of Huzaifa Sent:> > Saturday, August 23, 2008 4:56 PM To: users at lists.ironpython.com> > Subject: [IronPython] CodeContext how to get CodeContext from> > ScriptRuntime ,ScriptScope or ScriptEngine . basically i am try use> > this function: public static PythonTuple/*!*/> > GetExceptionInfoLocal(CodeContext/*!*/ context, Exception ex) -- View> > this message in context: http://www.nabble.co> > > m/CodeContext-tp19126500p19126500.html Sent from the IronPython> > mailing list archive at Nabble.com.> > _______________________________________________ Users mailing list> > Users at lists.ironpython.com> > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > _______________________________________________ Users mailing list> > Users at lists.ironpython.com> > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > _______________________________________________ Users mailing list> > Users at lists.ironpython.com> > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > >> > > ________________________________> > > View this message in context: Re:> > CodeContext<http://www.nabble.com/CodeContext-tp19126500p19127475.html>> > > Sent from the IronPython mailing list> > archive<http://www.nabble.com/IronPython-f14449.html> at Nabble.com.> > > -------------- next part --------------> > > An HTML attachment was scrubbed...> > > URL:> > <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080825/272e826f/attachment.htm>> > >> > > ------------------------------> > >> > > _______________________________________________> > > Users mailing list> > > Users at lists.ironpython.com> > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > >> > >> > > End of Users Digest, Vol 49, Issue 74> > > *************************************> >> > ------------------------------------------------------------------------> >> > See what people are saying about Windows Live. Check out featured> > posts. Check It Out!> > <http://www.windowslive.com/connect?ocid=TXT_TAGLM_WL_connect2_082008>> >> > ------------------------------------------------------------------------> >> > _______________________________________________> > Users mailing list> > Users at lists.ironpython.com> > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> >> > > --> http://www.ironpythoninaction.com/> http://www.voidspace.org.uk/> http://www.trypython.org/> http://www.ironpython.info/> http://www.theotherdelia.co.uk/> http://www.resolverhacks.net/> > _______________________________________________> Users mailing list> Users at lists.ironpython.com> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > > ------------------------------> > _______________________________________________> Users mailing list> Users at lists.ironpython.com> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com> > > End of Users Digest, Vol 49, Issue 80> *************************************
_________________________________________________________________
Get thousands of games on your PC, your mobile phone, and the web with Windows®.
http://clk.atdmt.com/MRT/go/108588800/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080825/3da1a8a5/attachment.html>


More information about the Ironpython-users mailing list