From beggers at spiegelburg.net Fri Dec 11 08:12:30 2015 From: beggers at spiegelburg.net (Benedikt Eggers) Date: Fri, 11 Dec 2015 14:12:30 +0100 Subject: [Ironpython-users] Generic importer interface for IronPython Message-ID: <1D1E498A61DE1143B022C4F687FCD9BA03761D52BE4D@SRVEX02.spiegelburg.net> Hello, currently I am struggling with the idea, to implement some generic importer interface into ironpython. My aim is, to make it easier for people, to provide their own logic, for loading scripts, modules, packages. For example from databases or some webservice if needed. May idea was, to extend the python context with some list, which holds instances of IGenericImport. All generic importers will be called in FindImporterForPath. If a generic importer can be used to resolve some path, it will be responsible to import all needed files, ... When this is something useful, I would make some plans for implementation. Thank you for reading the mail! With best regards, B. Eggers -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.lozier at gmail.com Fri Dec 11 17:25:12 2015 From: stephane.lozier at gmail.com (=?UTF-8?Q?St=C3=A9phane_Lozier?=) Date: Fri, 11 Dec 2015 17:25:12 -0500 Subject: [Ironpython-users] Microsoft.Scripting.Metadata is used for? Message-ID: I'm just wondering what Microsoft.Scripting.Metadata is used for. As far as I can tell it's used by the Microsoft.Scripting.Utils.ReflectionUtils.GetVisibleExtensionMethods (in main\Runtime\Microsoft.Dynamic\Utils\ReflectionUtils.cs) which in turn is used by nothing (other than by some commented out code in main\Languages\IronPython\IronPython\Runtime\ExtensionMethodSet.cs). Perhaps I'm missing something... -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Fri Dec 11 18:21:24 2015 From: slide.o.mix at gmail.com (Slide) Date: Fri, 11 Dec 2015 23:21:24 +0000 Subject: [Ironpython-users] Microsoft.Scripting.Metadata is used for? In-Reply-To: References: Message-ID: There are a few things that I think we could probably get rid of (Chiron anyone?!), I am not sure if there is a plan to do that in 2.7, but hopefully for 3.x :-) On Fri, Dec 11, 2015 at 4:13 PM St?phane Lozier wrote: > I'm just wondering what Microsoft.Scripting.Metadata is used for. > > As far as I can tell it's used by the > Microsoft.Scripting.Utils.ReflectionUtils.GetVisibleExtensionMethods (in > main\Runtime\Microsoft.Dynamic\Utils\ReflectionUtils.cs) which in turn is > used by nothing (other than by some commented out code in > main\Languages\IronPython\IronPython\Runtime\ExtensionMethodSet.cs). > > Perhaps I'm missing something... > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Mon Dec 14 22:11:23 2015 From: slide.o.mix at gmail.com (Slide) Date: Tue, 15 Dec 2015 03:11:23 +0000 Subject: [Ironpython-users] CodePlex Message-ID: Can anyone access the old CodePlex site? I was looking for an old issue that wasn't migrated to GH. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Dec 15 10:55:46 2015 From: jdhardy at gmail.com (Jeff Hardy) Date: Tue, 15 Dec 2015 07:55:46 -0800 Subject: [Ironpython-users] CodePlex In-Reply-To: References: Message-ID: I can. What are you looking for? - Jeff On Mon, Dec 14, 2015 at 7:11 PM, Slide wrote: > Can anyone access the old CodePlex site? I was looking for an old issue > that wasn't migrated to GH. > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Tue Dec 15 10:58:42 2015 From: slide.o.mix at gmail.com (Slide) Date: Tue, 15 Dec 2015 15:58:42 +0000 Subject: [Ironpython-users] CodePlex In-Reply-To: References: Message-ID: https://ironpython.codeplex.com/workitem/32335 is the one I am trying to get all the info for. On Tue, Dec 15, 2015, 08:55 Jeff Hardy wrote: > I can. What are you looking for? > > - Jeff > > On Mon, Dec 14, 2015 at 7:11 PM, Slide wrote: > >> Can anyone access the old CodePlex site? I was looking for an old issue >> that wasn't migrated to GH. >> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From williamj at tenbase2.com Tue Dec 15 14:21:10 2015 From: williamj at tenbase2.com (William Johnston) Date: Tue, 15 Dec 2015 14:21:10 -0500 Subject: [Ironpython-users] debug C# IronPython app? Message-ID: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> Hello, A C# DLR app is not returning results correctly. (A part of speech tagger is returning an empty string for the actual pos for certain strings.) (The second PythonTuple value from an IronPython List is empty.) Howver, the Python script does run from a Python Shell. How would I go about debugging the app? Do you know if Microsoft provides paid support? Thanks. Regards, William Johnston -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Tue Dec 15 17:13:29 2015 From: slide.o.mix at gmail.com (Slide) Date: Tue, 15 Dec 2015 22:13:29 +0000 Subject: [Ironpython-users] debug C# IronPython app? In-Reply-To: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> References: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> Message-ID: Microsoft isn't really involved with IronPython anymore, it's a completely open source project with no developers from MS really spending time on it (Dino does help out). Providing some code might allow someone on this list to help out. slide On Tue, Dec 15, 2015 at 1:53 PM William Johnston wrote: > > Hello, > > A C# DLR app is not returning results correctly. (A part of speech tagger > is returning an empty string for the actual pos for certain strings.) (The > second PythonTuple value from an IronPython List is empty.) > > Howver, the Python script does run from a Python Shell. > > How would I go about debugging the app? > > Do you know if Microsoft provides paid support? > > Thanks. > > Regards, > William Johnston > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Dec 15 19:07:54 2015 From: jdhardy at gmail.com (Jeff Hardy) Date: Tue, 15 Dec 2015 16:07:54 -0800 Subject: [Ironpython-users] CodePlex In-Reply-To: References: Message-ID: That's weird, a bunch of comments are missing (maybe?). I don't see it either, signed in or not. Wouldn't surprise me if CodePlex was bitrotting... On Tue, Dec 15, 2015 at 7:58 AM, Slide wrote: > https://ironpython.codeplex.com/workitem/32335 is the one I am trying to > get all the info for. > > On Tue, Dec 15, 2015, 08:55 Jeff Hardy wrote: > >> I can. What are you looking for? >> >> - Jeff >> >> On Mon, Dec 14, 2015 at 7:11 PM, Slide wrote: >> >>> Can anyone access the old CodePlex site? I was looking for an old issue >>> that wasn't migrated to GH. >>> >>> _______________________________________________ >>> Ironpython-users mailing list >>> Ironpython-users at python.org >>> https://mail.python.org/mailman/listinfo/ironpython-users >>> >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Tue Dec 15 22:37:09 2015 From: slide.o.mix at gmail.com (Slide) Date: Wed, 16 Dec 2015 03:37:09 +0000 Subject: [Ironpython-users] Build errors Message-ID: I've been getting the following build errors on clean clones from Git on both Windows and Linux. There is a file FormattingHelper.cs, but it is not part of the project. Runtime/Operations/IntOps.cs(458,34): error CS0103: The name `FormattingHelper' does not exist in the current context Runtime/Operations/IntOps.cs(473,38): error CS0103: The name `FormattingHelper' does not exist in the current context Runtime/Operations/LongOps.cs(1015,30): error CS0103: The name `FormattingHelper' does not exist in the current context Runtime/Operations/LongOps.cs(1068,51): error CS0103: The name `FormattingHelper' does not exist in the current context Do I have something weird on my system? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Wed Dec 16 14:01:07 2015 From: jdhardy at gmail.com (Jeff Hardy) Date: Wed, 16 Dec 2015 11:01:07 -0800 Subject: [Ironpython-users] Build errors In-Reply-To: References: Message-ID: Probably a side effect of https://github.com/IronLanguages/main/pull/1254, which added the file but not to the project (which I missed on CR - d'oh). - Jeff On Tue, Dec 15, 2015 at 7:37 PM, Slide wrote: > I've been getting the following build errors on clean clones from Git on > both Windows and Linux. There is a file FormattingHelper.cs, but it is not > part of the project. > > Runtime/Operations/IntOps.cs(458,34): error CS0103: The name > `FormattingHelper' does not exist in the current context > Runtime/Operations/IntOps.cs(473,38): error CS0103: The name > `FormattingHelper' does not exist in the current context > Runtime/Operations/LongOps.cs(1015,30): error CS0103: The name > `FormattingHelper' does not exist in the current context > Runtime/Operations/LongOps.cs(1068,51): error CS0103: The name > `FormattingHelper' does not exist in the current context > > Do I have something weird on my system? > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Wed Dec 16 14:01:51 2015 From: slide.o.mix at gmail.com (Slide) Date: Wed, 16 Dec 2015 19:01:51 +0000 Subject: [Ironpython-users] Build errors In-Reply-To: References: Message-ID: I'll update the project file and push. On Wed, Dec 16, 2015, 12:01 Jeff Hardy wrote: > Probably a side effect of https://github.com/IronLanguages/main/pull/1254, > which added the file but not to the project (which I missed on CR - d'oh). > > - Jeff > On Tue, Dec 15, 2015 at 7:37 PM, Slide wrote: > >> I've been getting the following build errors on clean clones from Git on >> both Windows and Linux. There is a file FormattingHelper.cs, but it is not >> part of the project. >> >> Runtime/Operations/IntOps.cs(458,34): error CS0103: The name >> `FormattingHelper' does not exist in the current context >> Runtime/Operations/IntOps.cs(473,38): error CS0103: The name >> `FormattingHelper' does not exist in the current context >> Runtime/Operations/LongOps.cs(1015,30): error CS0103: The name >> `FormattingHelper' does not exist in the current context >> Runtime/Operations/LongOps.cs(1068,51): error CS0103: The name >> `FormattingHelper' does not exist in the current context >> >> Do I have something weird on my system? >> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From williamj at tenbase2.com Wed Dec 16 16:21:58 2015 From: williamj at tenbase2.com (William Johnston) Date: Wed, 16 Dec 2015 16:21:58 -0500 Subject: [Ironpython-users] debug C# IronPython app? In-Reply-To: References: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> Message-ID: Hello, Here is my code: public List TextRazorTagger(string str) { List ret = new List(); try { IronPython.Runtime.List results = textrazortagger.tagger(str); foreach (IronPython.Runtime.PythonTuple tuple in results) { string strWord = (string)tuple[0]; string strPos = (string)tuple[1]; if (strPos.Length == 0) { continue; } MyPythonTuple myResult = new MyPythonTuple(); myResult.Word = strWord; myResult.Pos = strPos; ret.Add(myResult); } } catch (Exception ex) { throw new Exception(ex.Message); } return ret; } tuple1 returns an empty string. Thanks, William Johnston From: Slide Sent: Tuesday, December 15, 2015 5:13 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Microsoft isn't really involved with IronPython anymore, it's a completely open source project with no developers from MS really spending time on it (Dino does help out). Providing some code might allow someone on this list to help out. slide On Tue, Dec 15, 2015 at 1:53 PM William Johnston wrote: Hello, A C# DLR app is not returning results correctly. (A part of speech tagger is returning an empty string for the actual pos for certain strings.) (The second PythonTuple value from an IronPython List is empty.) Howver, the Python script does run from a Python Shell. How would I go about debugging the app? Do you know if Microsoft provides paid support? Thanks. Regards, William Johnston _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Wed Dec 16 17:37:49 2015 From: slide.o.mix at gmail.com (Slide) Date: Wed, 16 Dec 2015 22:37:49 +0000 Subject: [Ironpython-users] debug C# IronPython app? In-Reply-To: References: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> Message-ID: Forgive my ignorance, but what is textrazortagger? On Wed, Dec 16, 2015 at 2:23 PM William Johnston wrote: > > Hello, > > Here is my code: > > public List TextRazorTagger(string str) > { > List ret = new List(); > > try > { > IronPython.Runtime.List results = textrazortagger.tagger(str); > > foreach (IronPython.Runtime.PythonTuple tuple in results) > { > string strWord = (string)tuple[0]; > string strPos = (string)tuple[1]; > > if (strPos.Length == 0) > { > continue; > } > > MyPythonTuple myResult = new MyPythonTuple(); > > myResult.Word = strWord; > myResult.Pos = strPos; > > ret.Add(myResult); > } > } > catch (Exception ex) > { > throw new Exception(ex.Message); > } > return ret; > } > > > tuple1 returns an empty string. > > Thanks, > William Johnston > > > *From:* Slide > *Sent:* Tuesday, December 15, 2015 5:13 PM > *To:* William Johnston ; > ironpython-users at python.org > *Subject:* Re: [Ironpython-users] debug C# IronPython app? > > Microsoft isn't really involved with IronPython anymore, it's a completely > open source project with no developers from MS really spending time on it > (Dino does help out). Providing some code might allow someone on this list > to help out. > > slide > > On Tue, Dec 15, 2015 at 1:53 PM William Johnston > wrote: > >> >> Hello, >> >> A C# DLR app is not returning results correctly. (A part of speech >> tagger is returning an empty string for the actual pos for certain >> strings.) (The second PythonTuple value from an IronPython List is empty.) >> >> Howver, the Python script does run from a Python Shell. >> >> How would I go about debugging the app? >> >> Do you know if Microsoft provides paid support? >> >> Thanks. >> >> Regards, >> William Johnston >> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From williamj at tenbase2.com Wed Dec 16 18:12:23 2015 From: williamj at tenbase2.com (William Johnston) Date: Wed, 16 Dec 2015 18:12:23 -0500 Subject: [Ironpython-users] debug C# IronPython app? In-Reply-To: References: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> Message-ID: Hello, Here it is: private dynamic textrazortagger = runtime.UseFile(@"E:\Users\William Johnston\Documents\Visual Studio 2010\Projects\Visual Studio Projects\TextRazor\pos.py"); Sincerely, William Johnston From: Slide Sent: Wednesday, December 16, 2015 5:37 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Forgive my ignorance, but what is textrazortagger? On Wed, Dec 16, 2015 at 2:23 PM William Johnston wrote: Hello, Here is my code: public List TextRazorTagger(string str) { List ret = new List(); try { IronPython.Runtime.List results = textrazortagger.tagger(str); foreach (IronPython.Runtime.PythonTuple tuple in results) { string strWord = (string)tuple[0]; string strPos = (string)tuple[1]; if (strPos.Length == 0) { continue; } MyPythonTuple myResult = new MyPythonTuple(); myResult.Word = strWord; myResult.Pos = strPos; ret.Add(myResult); } } catch (Exception ex) { throw new Exception(ex.Message); } return ret; } tuple1 returns an empty string. Thanks, William Johnston From: Slide Sent: Tuesday, December 15, 2015 5:13 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Microsoft isn't really involved with IronPython anymore, it's a completely open source project with no developers from MS really spending time on it (Dino does help out). Providing some code might allow someone on this list to help out. slide On Tue, Dec 15, 2015 at 1:53 PM William Johnston wrote: Hello, A C# DLR app is not returning results correctly. (A part of speech tagger is returning an empty string for the actual pos for certain strings.) (The second PythonTuple value from an IronPython List is empty.) Howver, the Python script does run from a Python Shell. How would I go about debugging the app? Do you know if Microsoft provides paid support? Thanks. Regards, William Johnston _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at tutts.org Wed Dec 16 18:17:44 2015 From: bill at tutts.org (Bill Tutt) Date: Wed, 16 Dec 2015 18:17:44 -0500 Subject: [Ironpython-users] Build errors In-Reply-To: References: Message-ID: Bah! Apologies for not including the project file update in the PR. :( Thanks for pushing the fix (when you do), Slide. Bill On Wed, Dec 16, 2015 at 2:01 PM, Slide wrote: > I'll update the project file and push. > > On Wed, Dec 16, 2015, 12:01 Jeff Hardy wrote: > >> Probably a side effect of https://github.com/IronLanguages/main/pull/1254, >> which added the file but not to the project (which I missed on CR - d'oh). >> >> - Jeff >> On Tue, Dec 15, 2015 at 7:37 PM, Slide wrote: >> >>> I've been getting the following build errors on clean clones from Git on >>> both Windows and Linux. There is a file FormattingHelper.cs, but it is not >>> part of the project. >>> >>> Runtime/Operations/IntOps.cs(458,34): error CS0103: The name >>> `FormattingHelper' does not exist in the current context >>> Runtime/Operations/IntOps.cs(473,38): error CS0103: The name >>> `FormattingHelper' does not exist in the current context >>> Runtime/Operations/LongOps.cs(1015,30): error CS0103: The name >>> `FormattingHelper' does not exist in the current context >>> Runtime/Operations/LongOps.cs(1068,51): error CS0103: The name >>> `FormattingHelper' does not exist in the current context >>> >>> Do I have something weird on my system? >>> >>> _______________________________________________ >>> Ironpython-users mailing list >>> Ironpython-users at python.org >>> https://mail.python.org/mailman/listinfo/ironpython-users >>> >>> > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Wed Dec 16 18:19:23 2015 From: slide.o.mix at gmail.com (Slide) Date: Wed, 16 Dec 2015 23:19:23 +0000 Subject: [Ironpython-users] debug C# IronPython app? In-Reply-To: References: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> Message-ID: Can you give the code for the tagger method? On Wed, Dec 16, 2015 at 4:13 PM William Johnston wrote: > > Hello, > > Here it is: > > private dynamic textrazortagger = runtime.UseFile(@"E:\Users\William > Johnston\Documents\Visual Studio 2010\Projects\Visual Studio > Projects\TextRazor\pos.py"); > > Sincerely, > William Johnston > > > > *From:* Slide > *Sent:* Wednesday, December 16, 2015 5:37 PM > *To:* William Johnston ; > ironpython-users at python.org > *Subject:* Re: [Ironpython-users] debug C# IronPython app? > Forgive my ignorance, but what is textrazortagger? > > On Wed, Dec 16, 2015 at 2:23 PM William Johnston > wrote: > >> >> Hello, >> >> Here is my code: >> >> public List TextRazorTagger(string str) >> { >> List ret = new List(); >> >> try >> { >> IronPython.Runtime.List results = textrazortagger.tagger(str); >> >> foreach (IronPython.Runtime.PythonTuple tuple in results) >> { >> string strWord = (string)tuple[0]; >> string strPos = (string)tuple[1]; >> >> if (strPos.Length == 0) >> { >> continue; >> } >> >> MyPythonTuple myResult = new MyPythonTuple(); >> >> myResult.Word = strWord; >> myResult.Pos = strPos; >> >> ret.Add(myResult); >> } >> } >> catch (Exception ex) >> { >> throw new Exception(ex.Message); >> } >> return ret; >> } >> >> >> tuple1 returns an empty string. >> >> Thanks, >> William Johnston >> >> >> *From:* Slide >> *Sent:* Tuesday, December 15, 2015 5:13 PM >> *To:* William Johnston ; >> ironpython-users at python.org >> *Subject:* Re: [Ironpython-users] debug C# IronPython app? >> >> Microsoft isn't really involved with IronPython anymore, it's a >> completely open source project with no developers from MS really spending >> time on it (Dino does help out). Providing some code might allow someone on >> this list to help out. >> >> slide >> >> On Tue, Dec 15, 2015 at 1:53 PM William Johnston >> wrote: >> >>> >>> Hello, >>> >>> A C# DLR app is not returning results correctly. (A part of speech >>> tagger is returning an empty string for the actual pos for certain >>> strings.) (The second PythonTuple value from an IronPython List is empty.) >>> >>> Howver, the Python script does run from a Python Shell. >>> >>> How would I go about debugging the app? >>> >>> Do you know if Microsoft provides paid support? >>> >>> Thanks. >>> >>> Regards, >>> William Johnston >>> >>> _______________________________________________ >>> Ironpython-users mailing list >>> Ironpython-users at python.org >>> https://mail.python.org/mailman/listinfo/ironpython-users >>> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Wed Dec 16 18:19:32 2015 From: slide.o.mix at gmail.com (Slide) Date: Wed, 16 Dec 2015 23:19:32 +0000 Subject: [Ironpython-users] Build errors In-Reply-To: References: Message-ID: It's been pushed. On Wed, Dec 16, 2015 at 4:17 PM Bill Tutt wrote: > Bah! Apologies for not including the project file update in the PR. :( > > Thanks for pushing the fix (when you do), Slide. > > Bill > > On Wed, Dec 16, 2015 at 2:01 PM, Slide wrote: > >> I'll update the project file and push. >> >> On Wed, Dec 16, 2015, 12:01 Jeff Hardy wrote: >> >>> Probably a side effect of >>> https://github.com/IronLanguages/main/pull/1254, which added the file >>> but not to the project (which I missed on CR - d'oh). >>> >>> - Jeff >>> On Tue, Dec 15, 2015 at 7:37 PM, Slide wrote: >>> >>>> I've been getting the following build errors on clean clones from Git >>>> on both Windows and Linux. There is a file FormattingHelper.cs, but it is >>>> not part of the project. >>>> >>>> Runtime/Operations/IntOps.cs(458,34): error CS0103: The name >>>> `FormattingHelper' does not exist in the current context >>>> Runtime/Operations/IntOps.cs(473,38): error CS0103: The name >>>> `FormattingHelper' does not exist in the current context >>>> Runtime/Operations/LongOps.cs(1015,30): error CS0103: The name >>>> `FormattingHelper' does not exist in the current context >>>> Runtime/Operations/LongOps.cs(1068,51): error CS0103: The name >>>> `FormattingHelper' does not exist in the current context >>>> >>>> Do I have something weird on my system? >>>> >>>> _______________________________________________ >>>> Ironpython-users mailing list >>>> Ironpython-users at python.org >>>> https://mail.python.org/mailman/listinfo/ironpython-users >>>> >>>> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From williamj at tenbase2.com Wed Dec 16 18:42:32 2015 From: williamj at tenbase2.com (William Johnston) Date: Wed, 16 Dec 2015 18:42:32 -0500 Subject: [Ironpython-users] debug C# IronPython app? In-Reply-To: References: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> Message-ID: <000BA3033E444D05B4ECB0A6A67E36EA@Goliath> Hello, Here is the Python code. The code works as expected most of the time. Regards, William Johnston From: Slide Sent: Wednesday, December 16, 2015 6:19 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Can you give the code for the tagger method? On Wed, Dec 16, 2015 at 4:13 PM William Johnston wrote: Hello, Here it is: private dynamic textrazortagger = runtime.UseFile(@"E:\Users\William Johnston\Documents\Visual Studio 2010\Projects\Visual Studio Projects\TextRazor\pos.py"); Sincerely, William Johnston From: Slide Sent: Wednesday, December 16, 2015 5:37 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Forgive my ignorance, but what is textrazortagger? On Wed, Dec 16, 2015 at 2:23 PM William Johnston wrote: Hello, Here is my code: public List TextRazorTagger(string str) { List ret = new List(); try { IronPython.Runtime.List results = textrazortagger.tagger(str); foreach (IronPython.Runtime.PythonTuple tuple in results) { string strWord = (string)tuple[0]; string strPos = (string)tuple[1]; if (strPos.Length == 0) { continue; } MyPythonTuple myResult = new MyPythonTuple(); myResult.Word = strWord; myResult.Pos = strPos; ret.Add(myResult); } } catch (Exception ex) { throw new Exception(ex.Message); } return ret; } tuple1 returns an empty string. Thanks, William Johnston From: Slide Sent: Tuesday, December 15, 2015 5:13 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Microsoft isn't really involved with IronPython anymore, it's a completely open source project with no developers from MS really spending time on it (Dino does help out). Providing some code might allow someone on this list to help out. slide On Tue, Dec 15, 2015 at 1:53 PM William Johnston wrote: Hello, A C# DLR app is not returning results correctly. (A part of speech tagger is returning an empty string for the actual pos for certain strings.) (The second PythonTuple value from an IronPython List is empty.) Howver, the Python script does run from a Python Shell. How would I go about debugging the app? Do you know if Microsoft provides paid support? Thanks. Regards, William Johnston _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: pos - Copy.py URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: textrazor.py URL: From williamj at tenbase2.com Wed Dec 16 18:53:10 2015 From: williamj at tenbase2.com (William Johnston) Date: Wed, 16 Dec 2015 18:53:10 -0500 Subject: [Ironpython-users] debug C# IronPython app? In-Reply-To: <000BA3033E444D05B4ECB0A6A67E36EA@Goliath> References: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> <000BA3033E444D05B4ECB0A6A67E36EA@Goliath> Message-ID: <80CB793986FE40C5A6B444EC1A7B7362@Goliath> Here is the string that reproduces the error: [80 Strand, London WC2R ORL, England Penguin Ireland, 25 St. Stephen's Green, Dublin 2, Ireland (a division of Penguin Books Ltd) e Penguin Group (Australia), 707 Collins Street, Melbourne, Victoria 3008, Australia (a division of Pearson Australia Group Pty.] Thanks. From: William Johnston Sent: Wednesday, December 16, 2015 6:42 PM To: ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Hello, Here is the Python code. The code works as expected most of the time. Regards, William Johnston From: Slide Sent: Wednesday, December 16, 2015 6:19 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Can you give the code for the tagger method? On Wed, Dec 16, 2015 at 4:13 PM William Johnston wrote: Hello, Here it is: private dynamic textrazortagger = runtime.UseFile(@"E:\Users\William Johnston\Documents\Visual Studio 2010\Projects\Visual Studio Projects\TextRazor\pos.py"); Sincerely, William Johnston From: Slide Sent: Wednesday, December 16, 2015 5:37 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Forgive my ignorance, but what is textrazortagger? On Wed, Dec 16, 2015 at 2:23 PM William Johnston wrote: Hello, Here is my code: public List TextRazorTagger(string str) { List ret = new List(); try { IronPython.Runtime.List results = textrazortagger.tagger(str); foreach (IronPython.Runtime.PythonTuple tuple in results) { string strWord = (string)tuple[0]; string strPos = (string)tuple[1]; if (strPos.Length == 0) { continue; } MyPythonTuple myResult = new MyPythonTuple(); myResult.Word = strWord; myResult.Pos = strPos; ret.Add(myResult); } } catch (Exception ex) { throw new Exception(ex.Message); } return ret; } tuple1 returns an empty string. Thanks, William Johnston From: Slide Sent: Tuesday, December 15, 2015 5:13 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Microsoft isn't really involved with IronPython anymore, it's a completely open source project with no developers from MS really spending time on it (Dino does help out). Providing some code might allow someone on this list to help out. slide On Tue, Dec 15, 2015 at 1:53 PM William Johnston wrote: Hello, A C# DLR app is not returning results correctly. (A part of speech tagger is returning an empty string for the actual pos for certain strings.) (The second PythonTuple value from an IronPython List is empty.) Howver, the Python script does run from a Python Shell. How would I go about debugging the app? Do you know if Microsoft provides paid support? Thanks. Regards, William Johnston _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------------------------------------------------------------------------- _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Wed Dec 16 19:11:57 2015 From: slide.o.mix at gmail.com (Slide) Date: Thu, 17 Dec 2015 00:11:57 +0000 Subject: [Ironpython-users] debug C# IronPython app? In-Reply-To: <80CB793986FE40C5A6B444EC1A7B7362@Goliath> References: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> <000BA3033E444D05B4ECB0A6A67E36EA@Goliath> <80CB793986FE40C5A6B444EC1A7B7362@Goliath> Message-ID: Does it work in Cpython? Does the print show both items that are in the tuple as having values? Can you show the output from running it? On Wed, Dec 16, 2015, 16:54 William Johnston wrote: > > > Here is the string that reproduces the error: > > [80 Strand, London WC2R ORL, England Penguin Ireland, 25 St. Stephen's > Green, Dublin 2, Ireland (a division of Penguin Books Ltd) e Penguin Group > (Australia), 707 Collins Street, Melbourne, Victoria 3008, Australia (a > division of Pearson Australia Group Pty.] > > Thanks. > > > > *From:* William Johnston > *Sent:* Wednesday, December 16, 2015 6:42 PM > *To:* ironpython-users at python.org > *Subject:* Re: [Ironpython-users] debug C# IronPython app? > > Hello, > > Here is the Python code. > > The code works as expected most of the time. > > Regards, > William Johnston > > > > *From:* Slide > *Sent:* Wednesday, December 16, 2015 6:19 PM > *To:* William Johnston ; > ironpython-users at python.org > *Subject:* Re: [Ironpython-users] debug C# IronPython app? > > Can you give the code for the tagger method? > > On Wed, Dec 16, 2015 at 4:13 PM William Johnston > wrote: > >> >> Hello, >> >> Here it is: >> >> private dynamic textrazortagger = runtime.UseFile(@"E:\Users\William >> Johnston\Documents\Visual Studio 2010\Projects\Visual Studio >> Projects\TextRazor\pos.py"); >> >> Sincerely, >> William Johnston >> >> >> >> *From:* Slide >> *Sent:* Wednesday, December 16, 2015 5:37 PM >> *To:* William Johnston ; >> ironpython-users at python.org >> *Subject:* Re: [Ironpython-users] debug C# IronPython app? >> Forgive my ignorance, but what is textrazortagger? >> >> On Wed, Dec 16, 2015 at 2:23 PM William Johnston >> wrote: >> >>> >>> Hello, >>> >>> Here is my code: >>> >>> public List TextRazorTagger(string str) >>> { >>> List ret = new List(); >>> >>> try >>> { >>> IronPython.Runtime.List results = textrazortagger.tagger(str); >>> >>> foreach (IronPython.Runtime.PythonTuple tuple in results) >>> { >>> string strWord = (string)tuple[0]; >>> string strPos = (string)tuple[1]; >>> >>> if (strPos.Length == 0) >>> { >>> continue; >>> } >>> >>> MyPythonTuple myResult = new MyPythonTuple(); >>> >>> myResult.Word = strWord; >>> myResult.Pos = strPos; >>> >>> ret.Add(myResult); >>> } >>> } >>> catch (Exception ex) >>> { >>> throw new Exception(ex.Message); >>> } >>> return ret; >>> } >>> >>> >>> tuple1 returns an empty string. >>> >>> Thanks, >>> William Johnston >>> >>> >>> *From:* Slide >>> *Sent:* Tuesday, December 15, 2015 5:13 PM >>> *To:* William Johnston ; >>> ironpython-users at python.org >>> *Subject:* Re: [Ironpython-users] debug C# IronPython app? >>> >>> Microsoft isn't really involved with IronPython anymore, it's a >>> completely open source project with no developers from MS really spending >>> time on it (Dino does help out). Providing some code might allow someone on >>> this list to help out. >>> >>> slide >>> >>> On Tue, Dec 15, 2015 at 1:53 PM William Johnston >>> wrote: >>> >>>> >>>> Hello, >>>> >>>> A C# DLR app is not returning results correctly. (A part of speech >>>> tagger is returning an empty string for the actual pos for certain >>>> strings.) (The second PythonTuple value from an IronPython List is empty.) >>>> >>>> Howver, the Python script does run from a Python Shell. >>>> >>>> How would I go about debugging the app? >>>> >>>> Do you know if Microsoft provides paid support? >>>> >>>> Thanks. >>>> >>>> Regards, >>>> William Johnston >>>> >>>> _______________________________________________ >>>> Ironpython-users mailing list >>>> Ironpython-users at python.org >>>> https://mail.python.org/mailman/listinfo/ironpython-users >>>> >>> _______________________________________________ >>> Ironpython-users mailing list >>> Ironpython-users at python.org >>> https://mail.python.org/mailman/listinfo/ironpython-users >>> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> > ------------------------------ > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.majerle at gmail.com Thu Dec 17 09:39:53 2015 From: john.majerle at gmail.com (John Majerle) Date: Thu, 17 Dec 2015 08:39:53 -0600 Subject: [Ironpython-users] Can IronPython be used without installation? Message-ID: I have a C# application that uses IronPython scripting. Is there a way to do this without actually installing IronPython? For example, can the binaries simply be delivered to a known location without formal installation? -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Thu Dec 17 12:05:03 2015 From: slide.o.mix at gmail.com (Slide) Date: Thu, 17 Dec 2015 17:05:03 +0000 Subject: [Ironpython-users] Can IronPython be used without installation? In-Reply-To: References: Message-ID: Yes, I do this with my application. I just copy the dll's and exe's to the directory and it works fine. You will to put the Lib directory there too. On Thu, Dec 17, 2015 at 9:44 AM John Majerle wrote: > I have a C# application that uses IronPython scripting. Is there a way to > do this without actually installing IronPython? For example, can the > binaries simply be delivered to a known location without formal > installation? > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at codesys.com Fri Dec 18 01:48:28 2015 From: m.schaber at codesys.com (Markus Schaber) Date: Fri, 18 Dec 2015 06:48:28 +0000 Subject: [Ironpython-users] Can IronPython be used without installation? In-Reply-To: References: Message-ID: <727D8E16AE957149B447FE368139F2B59E25F223@SERVER10> Hi, We do the same with CODESYS. We dump the IronPython and DLR dlls in the GAC in our installer, and unpack the python files of the standard library into a subfolder in our installation directory. It works fine. There?s just one small glitch in our current implementation: Currently, our installation is not yet conforming to some common conventions for python interpreters, which complicates debugging, installation of site-packages, pip etc. a little bit? If you?re starting a new project, you might want to check those requirements, to see whether you want to follow them or not. Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org] On Behalf Of Slide Sent: Thursday, December 17, 2015 6:06 PM To: John Majerle; ironpython-users at python.org Subject: Re: [Ironpython-users] Can IronPython be used without installation? Yes, I do this with my application. I just copy the dll's and exe's to the directory and it works fine. You will to put the Lib directory there too. On Thu, Dec 17, 2015 at 9:44 AM John Majerle > wrote: I have a C# application that uses IronPython scripting. Is there a way to do this without actually installing IronPython? For example, can the binaries simply be delivered to a known location without formal installation? _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From williamj at tenbase2.com Fri Dec 18 11:55:54 2015 From: williamj at tenbase2.com (William Johnston) Date: Fri, 18 Dec 2015 11:55:54 -0500 Subject: [Ironpython-users] debug C# IronPython app? In-Reply-To: References: <3B554EB2C2CF4B29ACDC9B53D62DBF68@Goliath> <000BA3033E444D05B4ECB0A6A67E36EA@Goliath> <80CB793986FE40C5A6B444EC1A7B7362@Goliath> Message-ID: <63BE10BBA1B14B4CBDAF44E41C9925C0@Goliath> Hello, I?m not familiar with CPython. The values from a Python shell are correct. Thanks. From: Slide Sent: Wednesday, December 16, 2015 7:11 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Does it work in Cpython? Does the print show both items that are in the tuple as having values? Can you show the output from running it? On Wed, Dec 16, 2015, 16:54 William Johnston wrote: Here is the string that reproduces the error: [80 Strand, London WC2R ORL, England Penguin Ireland, 25 St. Stephen's Green, Dublin 2, Ireland (a division of Penguin Books Ltd) e Penguin Group (Australia), 707 Collins Street, Melbourne, Victoria 3008, Australia (a division of Pearson Australia Group Pty.] Thanks. From: William Johnston Sent: Wednesday, December 16, 2015 6:42 PM To: ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Hello, Here is the Python code. The code works as expected most of the time. Regards, William Johnston From: Slide Sent: Wednesday, December 16, 2015 6:19 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Can you give the code for the tagger method? On Wed, Dec 16, 2015 at 4:13 PM William Johnston wrote: Hello, Here it is: private dynamic textrazortagger = runtime.UseFile(@"E:\Users\William Johnston\Documents\Visual Studio 2010\Projects\Visual Studio Projects\TextRazor\pos.py"); Sincerely, William Johnston From: Slide Sent: Wednesday, December 16, 2015 5:37 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Forgive my ignorance, but what is textrazortagger? On Wed, Dec 16, 2015 at 2:23 PM William Johnston wrote: Hello, Here is my code: public List TextRazorTagger(string str) { List ret = new List(); try { IronPython.Runtime.List results = textrazortagger.tagger(str); foreach (IronPython.Runtime.PythonTuple tuple in results) { string strWord = (string)tuple[0]; string strPos = (string)tuple[1]; if (strPos.Length == 0) { continue; } MyPythonTuple myResult = new MyPythonTuple(); myResult.Word = strWord; myResult.Pos = strPos; ret.Add(myResult); } } catch (Exception ex) { throw new Exception(ex.Message); } return ret; } tuple1 returns an empty string. Thanks, William Johnston From: Slide Sent: Tuesday, December 15, 2015 5:13 PM To: William Johnston ; ironpython-users at python.org Subject: Re: [Ironpython-users] debug C# IronPython app? Microsoft isn't really involved with IronPython anymore, it's a completely open source project with no developers from MS really spending time on it (Dino does help out). Providing some code might allow someone on this list to help out. slide On Tue, Dec 15, 2015 at 1:53 PM William Johnston wrote: Hello, A C# DLR app is not returning results correctly. (A part of speech tagger is returning an empty string for the actual pos for certain strings.) (The second PythonTuple value from an IronPython List is empty.) Howver, the Python script does run from a Python Shell. How would I go about debugging the app? Do you know if Microsoft provides paid support? Thanks. Regards, William Johnston _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users ------------------------------------------------------------------------------ _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Fri Dec 18 13:50:50 2015 From: jdhardy at gmail.com (Jeff Hardy) Date: Fri, 18 Dec 2015 10:50:50 -0800 Subject: [Ironpython-users] Generic importer interface for IronPython In-Reply-To: <1D1E498A61DE1143B022C4F687FCD9BA03761D52BE4D@SRVEX02.spiegelburg.net> References: <1D1E498A61DE1143B022C4F687FCD9BA03761D52BE4D@SRVEX02.spiegelburg.net> Message-ID: Python already supports extra importers written in Python, by adding them to sys.meta_path. I'd prefer to stick to widely supported Python techniques than invent new ones. In Python 3 the import system is rewritten Python anyway (importlib) although I still need to update the IronPython 3 branch to actually use it. There's a bit of a bootstrapping problem to be dealt with. - Jeff On Fri, Dec 11, 2015 at 5:12 AM, Benedikt Eggers wrote: > Hello, > > > > currently I am struggling with the idea, to implement some generic > importer interface into ironpython. My aim is, > > to make it easier for people, to provide their own logic, for loading > scripts, modules, packages. For example from databases > > or some webservice if needed. May idea was, to extend the python context > with some list, which holds instances of IGenericImport. > > > > All generic importers will be called in FindImporterForPath. If a generic > importer can be used to resolve some path, it will be responsible > > to import all needed files, ? > > > > When this is something useful, I would make some plans for implementation. > > > > Thank you for reading the mail! > > > > With best regards, > > > > B. Eggers > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From beggers at spiegelburg.net Mon Dec 21 05:53:40 2015 From: beggers at spiegelburg.net (Benedikt Eggers) Date: Mon, 21 Dec 2015 11:53:40 +0100 Subject: [Ironpython-users] Creating public IronPython API Message-ID: <1D1E498A61DE1143B022C4F687FCD9BA03761D52BED3@SRVEX02.spiegelburg.net> Hello, when you create public ironpython apis for your applications written in C#, would you prefer to create the API using c# with using the PythonModule attribute, or would you wrap every thing in IronPython written modules and call the in c# written application core from there? Currently I'm struggling with this descision and don't know, what will be the best solution. Thank you all in advance! Benedikt -------------- next part -------------- An HTML attachment was scrubbed... URL: From issworld2000 at yahoo.com Sun Dec 20 07:00:22 2015 From: issworld2000 at yahoo.com (Djordje Spasic) Date: Sun, 20 Dec 2015 12:00:22 +0000 (UTC) Subject: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? References: <764624943.1370729.1450612822686.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <764624943.1370729.1450612822686.JavaMail.yahoo@mail.yahoo.com> I am a creating a huge mesh object (some 900 megabytes in size) in Rhino3d application by using its ironpython 2.7 interpreter.Once I am done with analysing this mesh, I would like to somehow delete it from the memory. I did a bit of search on stackoverflow.com, and I found out that "del" statement will only delete the reference to mentioned mesh. Not the mesh object itself. And that after some time, the mesh object will eventually get garbage collected. At least this is what some users on stackoverflow say about the regular cpython. Is "gc.collect()" the only way by which I could instantly release the memory, and there for somehow remove the mentioned large mesh from the memory? I've also found replies on stackoverflow.com which state that "gc.collect()" should be avoided (at least when it comes to regular python, not specifically ironpython). I've also find?comments on stackoverflow which claim that in IronPython it is not even guaranteed the memory will be released if nothing else is holding a reference. Any comments on all these issues? Is it even possible to instantly free the memory from the deleted large object in ironpython (2.7)? Thank you for the reply. Kind regards, Djordje Spasic -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at mcneel.com Mon Dec 21 12:35:45 2015 From: steve at mcneel.com (Steve Baer) Date: Mon, 21 Dec 2015 09:35:45 -0800 Subject: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? In-Reply-To: <764624943.1370729.1450612822686.JavaMail.yahoo@mail.yahoo.com> References: <764624943.1370729.1450612822686.JavaMail.yahoo.ref@mail.yahoo.com> <764624943.1370729.1450612822686.JavaMail.yahoo@mail.yahoo.com> Message-ID: In this case, the class that you are referring to is IDisposable. Call the Dispose function on the Mesh instance when you are done with it. -Steve Steve Baer Robert McNeel & Associates www.rhino3d.com On Sun, Dec 20, 2015 at 4:00 AM, Djordje Spasic via Ironpython-users < ironpython-users at python.org> wrote: > I am a creating a huge mesh object (some 900 megabytes in size) in Rhino3d > application by using its ironpython 2.7 interpreter. > Once I am done with analysing this mesh, I would like to somehow delete it > from the memory. > > I did a bit of search on stackoverflow.com, and I found out that "*del*" > statement will only delete the reference to mentioned mesh. Not the mesh > object itself. > And that after some time, the mesh object will eventually get garbage > collected. At least this is what some users on stackoverflow say about the > regular cpython. > > Is "*gc.collect()*" the only way by which I could instantly release the > memory, and there for somehow remove the mentioned large mesh from the > memory? > I've also found replies on stackoverflow.com which state that " > *gc.collect()*" should be avoided (at least when it comes to regular > python, not specifically ironpython). > I've also find comments on stackoverflow which claim that in IronPython > it is not even guaranteed the memory will be released > > if nothing else is holding a reference. > > Any comments on all these issues? > > Is it even possible to instantly free the memory from the deleted large > object in ironpython (2.7)? > > Thank you for the reply. > > Kind regards, > Djordje Spasic > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From issworld2000 at yahoo.com Mon Dec 21 19:18:30 2015 From: issworld2000 at yahoo.com (Djordje Spasic) Date: Tue, 22 Dec 2015 00:18:30 +0000 (UTC) Subject: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? In-Reply-To: References: Message-ID: <201495310.2033012.1450743510098.JavaMail.yahoo@mail.yahoo.com> Thank you Steve. What about the points from which the mesh is made (a regular python lists with Point3d objects in it). Should I use the "del" statement to delete them, and then call gc.collect() afterwards?: import gcdel meshPts? # meshPts is a python list containing Point3d objects from which the "largeMesh" is madegc.collect() largeMesh.Dispose() ? Thank you. Djordje Spasic From: Steve Baer To: "ironpython-users at python.org" Sent: Monday, December 21, 2015 6:35 PM Subject: Re: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? In this case, the class that you are referring to is IDisposable. Call the Dispose function on the Mesh instance when you are done with it. -Steve Steve BaerRobert McNeel & Associateswww.rhino3d.com On Sun, Dec 20, 2015 at 4:00 AM, Djordje Spasic via Ironpython-users wrote: I am a creating a huge mesh object (some 900 megabytes in size) in Rhino3d application by using its ironpython 2.7 interpreter.Once I am done with analysing this mesh, I would like to somehow delete it from the memory. I did a bit of search on stackoverflow.com, and I found out that "del" statement will only delete the reference to mentioned mesh. Not the mesh object itself. And that after some time, the mesh object will eventually get garbage collected. At least this is what some users on stackoverflow say about the regular cpython. Is "gc.collect()" the only way by which I could instantly release the memory, and there for somehow remove the mentioned large mesh from the memory? I've also found replies on stackoverflow.com which state that "gc.collect()" should be avoided (at least when it comes to regular python, not specifically ironpython). I've also find?comments on stackoverflow which claim that in IronPython it is not even guaranteed the memory will be released if nothing else is holding a reference. Any comments on all these issues? Is it even possible to instantly free the memory from the deleted large object in ironpython (2.7)? Thank you for the reply. Kind regards, Djordje Spasic _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at mcneel.com Tue Dec 22 01:19:14 2015 From: steve at mcneel.com (Steve Baer) Date: Mon, 21 Dec 2015 22:19:14 -0800 Subject: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? In-Reply-To: <201495310.2033012.1450743510098.JavaMail.yahoo@mail.yahoo.com> References: <201495310.2033012.1450743510098.JavaMail.yahoo@mail.yahoo.com> Message-ID: <89C4848F-BF4B-4E5B-90DA-AABA8D99F302@mcneel.com> Sorry, I don't know what specifically will force the clean up of those points. Typically you shouldn't have to care and the garbage collector will do it's job when the memory pressure is high enough. > On Dec 21, 2015, at 4:18 PM, Djordje Spasic wrote: > > Thank you Steve. > What about the points from which the mesh is made (a regular python lists with Point3d objects in it). > Should I use the "del" statement to delete them, and then call gc.collect() afterwards?: > > import gc > del meshPts # meshPts is a python list containing Point3d objects from which the "largeMesh" is made > gc.collect() > largeMesh.Dispose() > > ? > > Thank you. > Djordje Spasic > > > > From: Steve Baer > To: "ironpython-users at python.org" > Sent: Monday, December 21, 2015 6:35 PM > Subject: Re: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? > > In this case, the class that you are referring to is IDisposable. Call the Dispose function on the Mesh instance when you are done with it. > > -Steve > > Steve Baer > Robert McNeel & Associates > www.rhino3d.com > > On Sun, Dec 20, 2015 at 4:00 AM, Djordje Spasic via Ironpython-users wrote: > I am a creating a huge mesh object (some 900 megabytes in size) in Rhino3d application by using its ironpython 2.7 interpreter. > Once I am done with analysing this mesh, I would like to somehow delete it from the memory. > > I did a bit of search on stackoverflow.com, and I found out that "del" statement will only delete the reference to mentioned mesh. Not the mesh object itself. > And that after some time, the mesh object will eventually get garbage collected. At least this is what some users on stackoverflow say about the regular cpython. > > Is "gc.collect()" the only way by which I could instantly release the memory, and there for somehow remove the mentioned large mesh from the memory? > I've also found replies on stackoverflow.com which state that "gc.collect()" should be avoided (at least when it comes to regular python, not specifically ironpython). > I've also find comments on stackoverflow which claim that in IronPython it is not even guaranteed the memory will be released if nothing else is holding a reference. > > Any comments on all these issues? > > Is it even possible to instantly free the memory from the deleted large object in ironpython (2.7)? > > Thank you for the reply. > > Kind regards, > Djordje Spasic > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at codesys.com Tue Dec 22 03:06:15 2015 From: m.schaber at codesys.com (Markus Schaber) Date: Tue, 22 Dec 2015 08:06:15 +0000 Subject: [Ironpython-users] Creating public IronPython API In-Reply-To: <1D1E498A61DE1143B022C4F687FCD9BA03761D52BED3@SRVEX02.spiegelburg.net> References: <1D1E498A61DE1143B022C4F687FCD9BA03761D52BED3@SRVEX02.spiegelburg.net> Message-ID: <727D8E16AE957149B447FE368139F2B59E26B6E1@SERVER10> Hi, Benedict, We?re using a third approach when embedding IronPython in CODESYS: We?re creating our own Module using ScriptEngine.CreateModule(), and then providing our objects using ScriptScope.SetVariable(). Constants, instances and delegates are provided directly, classes/types are passed through DynamicHelpers.GetPythonTypeFromType(). Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org] On Behalf Of Benedikt Eggers Sent: Monday, December 21, 2015 11:54 AM To: ironpython-users at python.org Subject: [Ironpython-users] Creating public IronPython API Hello, when you create public ironpython apis for your applications written in C#, would you prefer to create the API using c# with using the PythonModule attribute, or would you wrap every thing in IronPython written modules and call the in c# written application core from there? Currently I?m struggling with this descision and don?t know, what will be the best solution. Thank you all in advance! Benedikt -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at codesys.com Tue Dec 22 05:04:45 2015 From: m.schaber at codesys.com (Markus Schaber) Date: Tue, 22 Dec 2015 10:04:45 +0000 Subject: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? In-Reply-To: <764624943.1370729.1450612822686.JavaMail.yahoo@mail.yahoo.com> References: <764624943.1370729.1450612822686.JavaMail.yahoo.ref@mail.yahoo.com> <764624943.1370729.1450612822686.JavaMail.yahoo@mail.yahoo.com> Message-ID: <727D8E16AE957149B447FE368139F2B59E26C798@SERVER10> Hi, IronPython runs on .NET which has a very different garbage collector than the one used in cPython. cPython uses reference counting, and a synchronous collector which collects cyclic garbage. Thus, objects which are not parts of cycles are guaranteed to be collected in the very moment when the last reference to them is removed, and the ?del? statement is one way this could happen. (Just setting the variable reference None or some other object, or the variable dropping out of scope are some other possibilities.) However, collection of cyclic garbage happens somewhere later, depending on the thresholds of newly allocated objects. (See https://docs.python.org/2/library/gc.html). IronPython uses the .NET garbage collector which does not employ reference counting (at least not in Microsoft .NET, Mono and Rotor). Garbage collection always happens at a non-deterministic time ? usually triggered by the ?memory pressure? of the current process, which is mostly related to the amount of allocated memory over time. In both cases, gc.collect() forces a complete garbage collection to occur now. (Actually, gc.collect() on IronPython mainly calls to System.GC.Collect() for this purpose, apart from performing some IronPython specific cleanups.) Usually, there is no need to actively call the garbage collector ? however, if you really have several hundred MBs of Memory which you want to release back to the OS immediately, I think it is justified to call the garbage collector. Especially if your process will not allocate any memory soon, the GC might not kick in for a long time if you don?t call it explicitly. However, I want to emphasize that this is a special case, and generally, ?normal? applications do not need to call the garbage collector explicitly, and should not (as frequent calls to the GC will impact performance negatively). Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org] On Behalf Of Djordje Spasic via Ironpython-users Sent: Monday, December 21, 2015 5:19 PM To: ironpython-users at python.org Subject: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? I am a creating a huge mesh object (some 900 megabytes in size) in Rhino3d application by using its ironpython 2.7 interpreter. Once I am done with analysing this mesh, I would like to somehow delete it from the memory. I did a bit of search on stackoverflow.com, and I found out that "del" statement will only delete the reference to mentioned mesh. Not the mesh object itself. And that after some time, the mesh object will eventually get garbage collected. At least this is what some users on stackoverflow say about the regular cpython. Is "gc.collect()" the only way by which I could instantly release the memory, and there for somehow remove the mentioned large mesh from the memory? I've also found replies on stackoverflow.com which state that "gc.collect()" should be avoided (at least when it comes to regular python, not specifically ironpython). I've also find comments on stackoverflow which claim that in IronPython it is not even guaranteed the memory will be released if nothing else is holding a reference. Any comments on all these issues? Is it even possible to instantly free the memory from the deleted large object in ironpython (2.7)? Thank you for the reply. Kind regards, Djordje Spasic -------------- next part -------------- An HTML attachment was scrubbed... URL: From issworld2000 at yahoo.com Tue Dec 22 12:45:28 2015 From: issworld2000 at yahoo.com (Djordje Spasic) Date: Tue, 22 Dec 2015 17:45:28 +0000 (UTC) Subject: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? In-Reply-To: <727D8E16AE957149B447FE368139F2B59E26C798@SERVER10> References: <727D8E16AE957149B447FE368139F2B59E26C798@SERVER10> Message-ID: <2078815203.2407249.1450806328265.JavaMail.yahoo@mail.yahoo.com> Thank you Markus. That was helpful. Kind regards, Djordje Spasic From: Markus Schaber To: Djordje Spasic Cc: Discussion of IronPython Sent: Tuesday, December 22, 2015 11:04 AM Subject: RE: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? #yiv9528227099 #yiv9528227099 -- _filtered #yiv9528227099 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv9528227099 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;} _filtered #yiv9528227099 {font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv9528227099 #yiv9528227099 p.yiv9528227099MsoNormal, #yiv9528227099 li.yiv9528227099MsoNormal, #yiv9528227099 div.yiv9528227099MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}#yiv9528227099 a:link, #yiv9528227099 span.yiv9528227099MsoHyperlink {color:blue;text-decoration:underline;}#yiv9528227099 a:visited, #yiv9528227099 span.yiv9528227099MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv9528227099 span.yiv9528227099E-MailFormatvorlage17 {color:windowtext;font-weight:normal;font-style:normal;}#yiv9528227099 .yiv9528227099MsoChpDefault {font-size:10.0pt;} _filtered #yiv9528227099 {margin:70.85pt 70.85pt 2.0cm 70.85pt;}#yiv9528227099 div.yiv9528227099WordSection1 {}#yiv9528227099 Hi, ? IronPython runs on .NET which has a very different garbage collector than the one used in cPython. ? cPython uses reference counting, and a synchronous collector which collects cyclic garbage. Thus, objects which are not parts of cycles are guaranteed to be collected in the very moment when the last reference to them is removed, and the ?del? statement is one way this could happen. (Just setting the variable reference None or some other object, or the variable dropping out of scope are some other possibilities.) However, collection of cyclic garbage happens somewhere later, depending on the thresholds of newly allocated objects. (Seehttps://docs.python.org/2/library/gc.html). ? IronPython uses the .NET garbage collector which does not employ reference counting (at least not in Microsoft .NET, Mono and Rotor). Garbage collection always happens at a non-deterministic time ? usually triggered by the ?memory pressure? of the current process, which is mostly related to the amount of allocated memory over time. ? In both cases, gc.collect() forces a complete garbage collection to occur now. (Actually, gc.collect() on IronPython mainly calls to System.GC.Collect() for this purpose, apart from performing some IronPython specific cleanups.) ? Usually, there is no need to actively call the garbage collector ? however, if you really have several hundred MBs of Memory which you want to release back to the OS immediately, I think it is justified to call the garbage collector. Especially if your process will not allocate any memory soon, the GC might not kick in for a long time if you don?t call it explicitly. ? However, I want to emphasize that this is a special case, and generally, ?normal? applications do not need to call the garbage collector explicitly, and should not (as frequent calls to the GC will impact performance negatively). ? ? Best regards Markus Schaber CODESYS?a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org]On Behalf Of Djordje Spasic via Ironpython-users Sent: Monday, December 21, 2015 5:19 PM To: ironpython-users at python.org Subject: [Ironpython-users] Delete a large object in ironpython, and releasing the memory? ? I am a creating a huge mesh object (some 900 megabytes in size) in Rhino3d application by using its ironpython 2.7 interpreter. Once I am done with analysing this mesh, I would like to somehow delete it from the memory. I did a bit of search on stackoverflow.com, and I found out that "del" statement will only delete the reference to mentioned mesh. Not the mesh object itself. And that after some time, the mesh object will eventually get garbage collected. At least this is what some users on stackoverflow say about the regular cpython. Is "gc.collect()" the only way by which I could instantly release the memory, and there for somehow remove the mentioned large mesh from the memory? I've also found replies on stackoverflow.com which state that "gc.collect()" should be avoided (at least when it comes to regular python, not specifically ironpython). I've also find?comments on stackoverflow which claim that in IronPython it is not even guaranteed the memory will be released if nothing else is holding a reference. Any comments on all these issues? Is it even possible to instantly free the memory from the deleted large object in ironpython (2.7)? Thank you for the reply. Kind regards, Djordje Spasic ? -------------- next part -------------- An HTML attachment was scrubbed... URL: