From jdhardy at gmail.com Mon Aug 1 07:31:20 2011 From: jdhardy at gmail.com (Jeff Hardy) Date: Sun, 31 Jul 2011 22:31:20 -0700 Subject: [Ironpython-users] IronPython Tools (NOT Python Tools For VS2010) In-Reply-To: References: <9E504A03-7C3B-41E1-8792-52F2001E572B@gmail.com> Message-ID: Sounds good. - Jeff On Fri, Jul 29, 2011 at 5:11 PM, Slide wrote: > Ok, so do we want to clear out any issues in the tracker having to do with > ip tools? > > On Jul 29, 2011 5:06 PM, "Jimmy Schementi" wrote: >> Yes, which is why the tools are not enabled by default in the latest >> installer. >> >> ~Jimmy >> >> >> On Jul 29, 2011, at 7:59 PM, Slide wrote: >> >>> Are the IronPython Tools officially deprecated in favor of the Python >>> Tools for VS2010? >>> >>> Thanks, >>> >>> slide >>> >>> -- >>> slide-o-blog >>> http://slide-o-blog.blogspot.com/ >>> _______________________________________________ >>> Ironpython-users mailing list >>> Ironpython-users at python.org >>> http://mail.python.org/mailman/listinfo/ironpython-users > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users > > From m.schaber at 3s-software.com Mon Aug 1 08:25:57 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Mon, 1 Aug 2011 08:25:57 +0200 Subject: [Ironpython-users] dotNET object directory list similar to OS X'sFinder In-Reply-To: <4E3466A8.9040005@duber.cz> References: <4E3466A8.9040005@duber.cz> Message-ID: Hi, Luk??, Von: Luk?? Dubeda > a simple question: is there a similar navigation control object in .NET > (even 3rd party) that'd provide a similar experience like those OS X > Finder directory lists that after selecting a folder slide to the left > while exposing the contents of the folder on the right. I don't know of one, but maybe you look at DevExpress and other 3rd party vendors. > Basically providing a left-to-right easy navigation so that the user > immediately see the contents of the selected folder, column by column. > > Sorry for such a stupid descriptiong, but I'm currently unable to find a > single image of what I'm describing :D which might explain why I can't > find anything similar to this in .NET. As far as I know, this is called Miller Columns (http://en.wikipedia.org/wiki/Miller_Columns) came to MacOS via NextStep. > However, I'm certain even Qt has a similar directory navigation control as > well. > > Does anybody know of such a control for .NET? If there is one for QT or GTK+, than you could use the .NET bindings for QT or GTK. This would force you to implement the whole UI via that library, however. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From loocas at duber.cz Mon Aug 1 10:53:28 2011 From: loocas at duber.cz (=?UTF-8?B?THVrw6HFoSBEdWLEm2Rh?=) Date: Mon, 01 Aug 2011 10:53:28 +0200 Subject: [Ironpython-users] dotNET object directory list similar to OS X'sFinder In-Reply-To: References: <4E3466A8.9040005@duber.cz> Message-ID: <4E366988.10806@duber.cz> Hi, Markus, thank you very much for the info! Much appretiated. As for Qt bindings, this is something new to me, I though Qt was out of reach for C# or IronPython devs? Where can I get more info about this? I remember searching for Qt bindings for .NET, but only found some very complex code showing how to bind C++ code via .NET or something. I'm not a C++ programmer, not even a C# dev, I only write programs in IronPython :( Thank you again. Luk?? Dub?da Director [T] +420 602 444 164 duber studio(tm) [M] info at duber.cz [W] http://www.duber.cz [A] R.A.Dvorsk?ho 601, Praha 10 [A] 10900, Czech Republic, Europe On 1.8.2011 8:25, Markus Schaber wrote: > Hi, Luk??, > > Von: Luk?? Dubeda > >> a simple question: is there a similar navigation control object in .NET >> (even 3rd party) that'd provide a similar experience like those OS X >> Finder directory lists that after selecting a folder slide to the left >> while exposing the contents of the folder on the right. > > I don't know of one, but maybe you look at DevExpress and other 3rd party vendors. > >> Basically providing a left-to-right easy navigation so that the user >> immediately see the contents of the selected folder, column by column. >> >> Sorry for such a stupid descriptiong, but I'm currently unable to find a >> single image of what I'm describing :D which might explain why I can't >> find anything similar to this in .NET. > > As far as I know, this is called Miller Columns (http://en.wikipedia.org/wiki/Miller_Columns) came to MacOS via NextStep. > >> However, I'm certain even Qt has a similar directory navigation control as >> well. >> >> Does anybody know of such a control for .NET? > > If there is one for QT or GTK+, than you could use the .NET bindings for QT or GTK. This would force you to implement the whole UI via that library, however. > > > Best regards > > Markus Schaber > > ___________________________ > We software Automation. > > 3S-Smart Software Solutions GmbH > Markus Schaber | Developer > Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 > > Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com > CoDeSys internet forum: http://forum.3s-software.com > Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects > > Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From m.schaber at 3s-software.com Mon Aug 1 11:16:29 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Mon, 1 Aug 2011 11:16:29 +0200 Subject: [Ironpython-users] dotNET object directory list similar to OS X'sFinder Message-ID: Hi, Luk??, Von: Luk?? Dub?da [mailto:loocas at duber.cz] > thank you very much for the info! Much appretiated. > > As for Qt bindings, this is something new to me, I though Qt was out of > reach for C# or IronPython devs? Where can I get more info about this? I > remember searching for Qt bindings for .NET, but only found some very > complex code showing how to bind C++ code via .NET or something. I'm not a > C++ programmer, not even a C# dev, I only write programs in IronPython :( I personally only used gtk# (http://www.mono-project.com/GtkSharp. This is well-maintained by the mono project, but also works with Windows .NET). http://mono-framework.com/Gui_Toolkits mentions Qyoto and QT4Dotnet - but I don't have any personal experience with them. Btw, I would not expect any of those three bindings (gtk#, Qyoto and QT4Dotnet) to be 1:1 compatible with the direct cPython bindings for QT and Gtk+. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From no_reply at codeplex.com Mon Aug 1 16:49:06 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 1 Aug 2011 07:49:06 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 7/31/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Implement the _hashlib module 2. [Status update] Implement the _hashlib module ---------------------------------------------- ISSUES 1. [New comment] Implement the _hashlib module http://ironpython.codeplex.com/workitem/21408 User jdhardy has commented on the issue: "I don't think so, since I doubt we'll see a speed boost from it. The only purpose would be to support other OpenSSL or CryptoAPI hashes."----------------- 2. [Status update] Implement the _hashlib module http://ironpython.codeplex.com/workitem/21408 User jdhardy has updated the issue: Status has changed from Active to Closed with the following comment, "_hashlib isn't required for hashlib to work, so this isn't critical." ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Tue Aug 2 02:02:23 2011 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 2 Aug 2011 00:02:23 +0000 Subject: [Ironpython-users] Announcing Python Tools for Visual Studio - RC2 Message-ID: <6C7ABA8B4E309440B857D74348836F2E28EF3D5E@TK5EX14MBXC293.redmond.corp.microsoft.com> We're pleased to announce the release of Python Tools for Visual Studio - RC 2. Python Tools for Visual Studio (PTVS) is an open-source plug-in for Visual Studio which supports programming with the Python programming language. PTVS is released under the Apache License, 2.0. This release includes the core features you'd expect from most IDEs including: Advanced code modeling which enable intellisense, finding references, and goto definition. Supports for common refactorings such as rename variable and extract method Support for debugging and profiling Python applications Integrated IPython REPL support for interactive development and interactive cluster development Support for MPI cluster debugging including automatic deployment to the cluster PTVS supports working with your Python distribution of choice - whether that's the standard Python distribution, an alternate packaging of CPython such as Enthought Python Distribution or ActivePython, or a completely different Python implementation such as IronPython or PyPy. PTVS supports all versions of Python from 2.5 through 3.2 - so no matter what Python you're likely to find it supported. In addition to supporting any Python implementation PTVS contains integrated support for IronPython including drag and drop GUI support and enhanced intellisense when working with .NET APIs. This release includes only minor bug fixes for issues reported against RC1 and discovered via our own internal testing. This is planned to be the last release candidate before releasing 1.0 final. A complete list of issues fixed for this release is available here: http://bit.ly/PTVS-fixed-issues-RC2 We'd like to thank all of the users who took the time to report issues and feedback: andresmac, AphexSA, bkadamgk, cendalc, cyberchand, flyingfether, JulesJacobs, lundebro, Tiphon, and xavier_grundus. Thanks, The Python Tools for Visual Studio Team From otac0n at gietzen.us Tue Aug 2 03:27:53 2011 From: otac0n at gietzen.us (John Gietzen) Date: Mon, 1 Aug 2011 20:27:53 -0500 Subject: [Ironpython-users] ImportError: No module named codecs Message-ID: I'm trying to compile Pygments to be called from a C# library, but I've come accross a few hurdles. The first was an issue with function calls with more that 13 arguments throwing an error stating that the compiler is "Unable to make a reference to a transient module from a non-transient module." See: http://ironpython.codeplex.com/workitem/31125 There is a previous issue saying that it was fixed in 2.7.1b1, but it still fails with the 150 argument call that is present in Pygments. Now, I've run into a brick wall. I cannot get IronPython to import the `codecs` module, no matter what I try. Using reflector, I can see that a class the module exists in "IronPython.Modules", nut there doesn't seem to be a `[assembly: PythonModule]` attribute for it. Even in the interactive console when I try to simply execute `import codecs` I get a message saying "ImportError: No module named codecs". I have noticed that there is a "_codecs" module, but it does not have e.g the `open` method. What am I doing wrong? Thanks in advance, John Gietzen -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Tue Aug 2 06:30:33 2011 From: slide.o.mix at gmail.com (Slide) Date: Mon, 1 Aug 2011 21:30:33 -0700 Subject: [Ironpython-users] external libraries Message-ID: What are the guidelines for bringing in part or all of an external library? What licenses are compatible with the rest of the IP source code so it won't be tainted by anything? Thanks, slide -- slide-o-blog http://slide-o-blog.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at 3s-software.com Tue Aug 2 08:11:04 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Tue, 2 Aug 2011 08:11:04 +0200 Subject: [Ironpython-users] ImportError: No module named codecs In-Reply-To: References: Message-ID: Hi, John, Von: John Gietzen > I'm trying to compile Pygments to be called from a C# library, but I've come accross a few hurdles. > The first was an issue with function calls with more that 13 arguments throwing an error stating that the compiler is "Unable to make a reference to a transient module from a non-transient module."? See: http://ironpython.codeplex.com/workitem/31125 > There is a previous issue saying that it was fixed in 2.7.1b1, but it still fails with the 150 argument call that is present in Pygments. 150 arguments? That seems far from sane for me, but the Pygments people seem to have a reason for it, I hope. :-) Maybe you can pack all those arguments into a tuple, effectively changing the call into a 1-argument call? Caller site: Change "result = function(a,b,c,d) into result = function((a,b,c,d))" Calee site: Change "def function(a,b,c,d):" to "def function(tuple):" \n " a,b,c,d = tuple" > Now, I've run into a brick wall.? I cannot get IronPython to import the `codecs` module, no matter what I try.? Using reflector, I can see that a class the module exists in "IronPython.Modules", nut there doesn't seem to be a `[assembly: PythonModule]` attribute for it. As far as I can see, that class implements the _codecs module. The "codecs" module is a pure python module. > Even in the interactive console when I try to simply execute `import codecs` I get a message saying "ImportError: No module named codecs". I can open the codec module just fine from the interactive console, in both 2.7.1b2 and 2.6.0. > I have noticed that there is a "_codecs" module, but it does not have e.g the `open` method. The design is the same than in cPython: codecs.py is a high level module written in pure python, and it uses a low level native module _codecs internally. _codecs is a C-written Library in cPython (.dll or .so), while it is a C# class providing the same interface in IronPython. This allows IronPython to reuse the pure python part of the standard library. > What am I doing wrong? Maybe your search path (sys.path) does not include the directory where the python standard library was installed? Or you did not install it at all? For me, it was installed by the IronPython installer. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From no_reply at codeplex.com Tue Aug 2 14:55:59 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 2 Aug 2011 05:55:59 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/1/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [Status update] importing some modules (e.g.'import random') fails in IronPython Interactive window 2. [Status update] 2.7.1 beta 4 does not installs with vs 2010 c# express on windows xp 3. [Status update] Should F5 work in the Visual Studio 2010 integration in IronPython 2.7 release? 4. [Status update] IronPython tools colors 5. [Status update] Visual Studio tools: Cannot copy files within an IronPython project in Solution Explorer 6. [Status update] Django autocompletion/intellisense doesn't happen in the IPy Tools for VS 7. [Status update] IronPython Tools for VS crashes VS on attempt to code completion in .py file. InvalidOperationException. 8. [Status update] Visual Studio Tools 2.7: Can't edit Python code in WPF app 9. [Status update] Tools: Adding newlines before a statement indents it 10. [Status update] Visual Studio 2010 Crash w/ IronPython tools 11. [Status update] visual studio integration site.py 12. [Status update] ipy.exe Visual Studio debugging - Watches 13. [Status update] Problem creating an IonPython 2.7A1 Project with VS 2010 14. [New comment] Create a FULLY StandAlone ".exe" binary? 15. [New comment] Rename *.cs files to properly reflect the CPython builtin modules they implement 16. [New comment] Implement the _hashlib module 17. [New issue] Compiling a function call with 14 arguments errors with "Unable to make a reference to a transient module from a non-transient module." 18. [New comment] Compiling a function call with 14 arguments errors with "Unable to make a reference to a transient module from a non-transient module." 19. [New issue] Nuget needs to be updated with IronPython 2.7+ 20. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 21. [Status update] 1.x: Compilation via CodeDomProvider.CompileAssemblyFromSource fails 22. [New comment] "print 1," displays incorrectly from interactive sessions ---------------------------------------------- ISSUES 1. [Status update] importing some modules (e.g.'import random') fails in IronPython Interactive window http://ironpython.codeplex.com/workitem/29077 User slide_o_mix has updated the issue: Status has changed from Active to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 2. [Status update] 2.7.1 beta 4 does not installs with vs 2010 c# express on windows xp http://ironpython.codeplex.com/workitem/30912 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 3. [Status update] Should F5 work in the Visual Studio 2010 integration in IronPython 2.7 release? http://ironpython.codeplex.com/workitem/30451 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 4. [Status update] IronPython tools colors http://ironpython.codeplex.com/workitem/27185 User slide_o_mix has updated the issue: Status has changed from Active to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 5. [Status update] Visual Studio tools: Cannot copy files within an IronPython project in Solution Explorer http://ironpython.codeplex.com/workitem/30284 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 6. [Status update] Django autocompletion/intellisense doesn't happen in the IPy Tools for VS http://ironpython.codeplex.com/workitem/29269 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 7. [Status update] IronPython Tools for VS crashes VS on attempt to code completion in .py file. InvalidOperationException. http://ironpython.codeplex.com/workitem/29229 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 8. [Status update] Visual Studio Tools 2.7: Can't edit Python code in WPF app http://ironpython.codeplex.com/workitem/28630 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 9. [Status update] Tools: Adding newlines before a statement indents it http://ironpython.codeplex.com/workitem/28854 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 10. [Status update] Visual Studio 2010 Crash w/ IronPython tools http://ironpython.codeplex.com/workitem/28682 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 11. [Status update] visual studio integration site.py http://ironpython.codeplex.com/workitem/2536 User slide_o_mix has updated the issue: Status has changed from Active to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 12. [Status update] ipy.exe Visual Studio debugging - Watches http://ironpython.codeplex.com/workitem/2539 User slide_o_mix has updated the issue: Status has changed from Active to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 13. [Status update] Problem creating an IonPython 2.7A1 Project with VS 2010 http://ironpython.codeplex.com/workitem/28200 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "IronPython Tools has been deprecated in favor of http://pytools.codeplex.com/ please try that toolset and file issues on the issue tracker there."----------------- 14. [New comment] Create a FULLY StandAlone ".exe" binary? http://ironpython.codeplex.com/workitem/20621 User slide_o_mix has commented on the issue: "So, you are ok with a platform specific (Linux, Windows, OSX) executable? That is, the stand alone executable would only be able to run on one platform."----------------- 15. [New comment] Rename *.cs files to properly reflect the CPython builtin modules they implement http://ironpython.codeplex.com/workitem/21026 User slide_o_mix has commented on the issue: "This seems to be fixed (at least for the files mentioned) in 2.7"----------------- 16. [New comment] Implement the _hashlib module http://ironpython.codeplex.com/workitem/21408 User MarkusSchaber has commented on the issue: "Closing it just because it is not critical may be a bit harsh. Do you want to discourage _hashlib implementations, or do you just regard it as "not important"?"----------------- 17. [New issue] Compiling a function call with 14 arguments errors with "Unable to make a reference to a transient module from a non-transient module." http://ironpython.codeplex.com/workitem/31125 User otac0n has proposed the issue: "Pygments has a function call with 150 parameters."----------------- 18. [New comment] Compiling a function call with 14 arguments errors with "Unable to make a reference to a transient module from a non-transient module." http://ironpython.codeplex.com/workitem/31125 User otac0n has commented on the issue: "Pygments' `lexers/other.py` contains a lexer for Gnuplot that triggers the error. This happens with all versions of IronPython I have tried (2.7.1b1, 2.7.1b2, 2.7, 2.6.1)."----------------- 19. [New issue] Nuget needs to be updated with IronPython 2.7+ http://ironpython.codeplex.com/workitem/31126 User otac0n has proposed the issue: "The current version of IronPython on NuGet is 2.6.1 This should be updated."----------------- 20. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User slide_o_mix has commented on the issue: "Would it be a problem if it was a COPY of the internal bytes?"----------------- 21. [Status update] 1.x: Compilation via CodeDomProvider.CompileAssemblyFromSource fails http://ironpython.codeplex.com/workitem/480 User slide_o_mix has updated the issue: Status has changed from Active to Closed with the following comment, "This was closed in MS bug but didn't get migrated here."----------------- 22. [New comment] "print 1," displays incorrectly from interactive sessions http://ironpython.codeplex.com/workitem/14835 User slide_o_mix has commented on the issue: "This is still around even on the latest trunk." ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From otac0n at gietzen.us Tue Aug 2 14:59:32 2011 From: otac0n at gietzen.us (John Gietzen) Date: Tue, 2 Aug 2011 07:59:32 -0500 Subject: [Ironpython-users] ImportError: No module named codecs In-Reply-To: References: Message-ID: Yes, this was correct. I had never installed the package, I was just grabbing the Bin zip and running that. I have now compiled the dependencies directly into my assembly using pyc.py. On Tue, Aug 2, 2011 at 1:11 AM, Markus Schaber wrote: > Hi, John, > > Von: John Gietzen > > > I'm trying to compile Pygments to be called from a C# library, but I've > come accross a few hurdles. > > > The first was an issue with function calls with more that 13 arguments > throwing an error stating that the compiler is "Unable to make a reference > to a transient module from a non-transient module." See: > http://ironpython.codeplex.com/workitem/31125 > > There is a previous issue saying that it was fixed in 2.7.1b1, but it > still fails with the 150 argument call that is present in Pygments. > > 150 arguments? That seems far from sane for me, but the Pygments people > seem to have a reason for it, I hope. :-) > > Maybe you can pack all those arguments into a tuple, effectively changing > the call into a 1-argument call? > > Caller site: > Change "result = function(a,b,c,d) into result = function((a,b,c,d))" > > Calee site: > Change "def function(a,b,c,d):" to "def function(tuple):" \n " a,b,c,d = > tuple" > > > Now, I've run into a brick wall. I cannot get IronPython to import the > `codecs` module, no matter what I try. Using reflector, I can see that a > class the module exists in "IronPython.Modules", nut there doesn't seem to > be a `[assembly: PythonModule]` attribute for it. > > As far as I can see, that class implements the _codecs module. The "codecs" > module is a pure python module. > > > Even in the interactive console when I try to simply execute `import > codecs` I get a message saying "ImportError: No module named codecs". > > I can open the codec module just fine from the interactive console, in both > 2.7.1b2 and 2.6.0. > > > I have noticed that there is a "_codecs" module, but it does not have e.g > the `open` method. > > The design is the same than in cPython: codecs.py is a high level module > written in pure python, and it uses a low level native module _codecs > internally. _codecs is a C-written Library in cPython (.dll or .so), while > it is a C# class providing the same interface in IronPython. This allows > IronPython to reuse the pure python part of the standard library. > > > What am I doing wrong? > > Maybe your search path (sys.path) does not include the directory where the > python standard library was installed? Or you did not install it at all? > > For me, it was installed by the IronPython installer. > > > Best regards > > Markus Schaber > > ___________________________ > We software Automation. > > 3S-Smart Software Solutions GmbH > Markus Schaber | Developer > Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax > +49-831-54031-50 > > Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com > CoDeSys internet forum: http://forum.3s-software.com > Download CoDeSys sample projects: > http://www.3s-software.com/index.shtml?sample_projects > > Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade > register: Kempten HRB 6186 | Tax ID No.: DE 167014915 > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Aug 2 17:41:42 2011 From: jdhardy at gmail.com (Jeff Hardy) Date: Tue, 2 Aug 2011 08:41:42 -0700 Subject: [Ironpython-users] external libraries In-Reply-To: References: Message-ID: Unfortunately, I'm not entirely sure. We do include the Python & Ruby stdlibs, which have their own licenses, and zlib.net, which is MIT/BSD. I'm going to hazard a guess that you're thinking of #ZipLib, which is GPL + Classpath, which isn't as scary as it sounds, but still makes me slightly nervous. I'd prefer to avoid it if possible. At the very least, it might be an external, optional dependency. On that note, I did happen across https://github.com/IronLanguages/main/blob/master/Hosts/Silverlight/Chiron/Zip.cs that you might find interesting. - Jeff On Mon, Aug 1, 2011 at 9:30 PM, Slide wrote: > What are the guidelines for bringing in part or all of an external library? > What licenses are compatible with the rest of the IP source code so it won't > be tainted by anything? > Thanks, > slide > > -- > slide-o-blog > http://slide-o-blog.blogspot.com/ > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users > > From slide.o.mix at gmail.com Tue Aug 2 17:53:10 2011 From: slide.o.mix at gmail.com (Slide) Date: Tue, 2 Aug 2011 08:53:10 -0700 Subject: [Ironpython-users] external libraries In-Reply-To: References: Message-ID: No, I was actually thinking of pulling something in from Mono which has nothing to do with zlib or zipimport :-) I am planning on reusing the existing decompression that is currently used in the zlib module for zipimport (which is coming along nicely by the way). Thanks, slide On Tue, Aug 2, 2011 at 8:41 AM, Jeff Hardy wrote: > Unfortunately, I'm not entirely sure. We do include the Python & Ruby > stdlibs, which have their own licenses, and zlib.net, which is > MIT/BSD. I'm going to hazard a guess that you're thinking of #ZipLib, > which is GPL + Classpath, which isn't as scary as it sounds, but still > makes me slightly nervous. I'd prefer to avoid it if possible. At the > very least, it might be an external, optional dependency. > > On that note, I did happen across > > https://github.com/IronLanguages/main/blob/master/Hosts/Silverlight/Chiron/Zip.cs > that you might find interesting. > > - Jeff > > On Mon, Aug 1, 2011 at 9:30 PM, Slide wrote: > > What are the guidelines for bringing in part or all of an external > library? > > What licenses are compatible with the rest of the IP source code so it > won't > > be tainted by anything? > > Thanks, > > slide > > > > -- > > slide-o-blog > > http://slide-o-blog.blogspot.com/ > > > > _______________________________________________ > > Ironpython-users mailing list > > Ironpython-users at python.org > > http://mail.python.org/mailman/listinfo/ironpython-users > > > > > -- slide-o-blog http://slide-o-blog.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jschementi at gmail.com Tue Aug 2 18:04:29 2011 From: jschementi at gmail.com (Jimmy Schementi) Date: Tue, 2 Aug 2011 12:04:29 -0400 Subject: [Ironpython-users] external libraries In-Reply-To: References: Message-ID: The projects have multiple licenses because of external dependencies. In general, if we can keep the compiler and library implementations Apache 2 that'd be great. If we do need to bring in something with a different license, it should be it's own assembly. ~Jimmy On Tue, Aug 2, 2011 at 11:53 AM, Slide wrote: > No, I was actually thinking of pulling something in from Mono which has > nothing to do with zlib or zipimport :-) I am planning on reusing the > existing decompression that is currently used in the zlib module for > zipimport (which is coming along nicely by the way). > Thanks, > slide > > On Tue, Aug 2, 2011 at 8:41 AM, Jeff Hardy wrote: >> >> Unfortunately, I'm not entirely sure. We do include the Python & Ruby >> stdlibs, which have their own licenses, and zlib.net, which is >> MIT/BSD. I'm going to hazard a guess that you're thinking of #ZipLib, >> which is GPL + Classpath, which isn't as scary as it sounds, but still >> makes me slightly nervous. I'd prefer to avoid it if possible. At the >> very least, it might be an external, optional dependency. >> >> On that note, I did happen across >> >> https://github.com/IronLanguages/main/blob/master/Hosts/Silverlight/Chiron/Zip.cs >> that you might find interesting. >> >> - Jeff >> >> On Mon, Aug 1, 2011 at 9:30 PM, Slide wrote: >> > What are the guidelines for bringing in part or all of an external >> > library? >> > What licenses are compatible with the rest of the IP source code so it >> > won't >> > be tainted by anything? >> > Thanks, >> > slide >> > >> > -- >> > slide-o-blog >> > http://slide-o-blog.blogspot.com/ >> > >> > _______________________________________________ >> > Ironpython-users mailing list >> > Ironpython-users at python.org >> > http://mail.python.org/mailman/listinfo/ironpython-users >> > >> > > > > > -- > slide-o-blog > http://slide-o-blog.blogspot.com/ > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users > > From jdhardy at gmail.com Tue Aug 2 18:30:18 2011 From: jdhardy at gmail.com (Jeff Hardy) Date: Tue, 2 Aug 2011 09:30:18 -0700 Subject: [Ironpython-users] external libraries In-Reply-To: References: Message-ID: Hah, I guess we all know what happens when one assumes :) Mono has some GPL bits I believe, so double check the exact licence, but it should otherwise be OK. Also, what Jimmy said - if it's isolated in it's own assembly there shouldn't be any issues. - Jeff On Tue, Aug 2, 2011 at 8:53 AM, Slide wrote: > No, I was actually thinking of pulling something in from Mono which has > nothing to do with zlib or zipimport :-) I am planning on reusing the > existing decompression that is currently used in the zlib module for > zipimport (which is coming along nicely by the way). > Thanks, > slide > > On Tue, Aug 2, 2011 at 8:41 AM, Jeff Hardy wrote: >> >> Unfortunately, I'm not entirely sure. We do include the Python & Ruby >> stdlibs, which have their own licenses, and zlib.net, which is >> MIT/BSD. I'm going to hazard a guess that you're thinking of #ZipLib, >> which is GPL + Classpath, which isn't as scary as it sounds, but still >> makes me slightly nervous. I'd prefer to avoid it if possible. At the >> very least, it might be an external, optional dependency. >> >> On that note, I did happen across >> >> https://github.com/IronLanguages/main/blob/master/Hosts/Silverlight/Chiron/Zip.cs >> that you might find interesting. >> >> - Jeff >> >> On Mon, Aug 1, 2011 at 9:30 PM, Slide wrote: >> > What are the guidelines for bringing in part or all of an external >> > library? >> > What licenses are compatible with the rest of the IP source code so it >> > won't >> > be tainted by anything? >> > Thanks, >> > slide >> > >> > -- >> > slide-o-blog >> > http://slide-o-blog.blogspot.com/ >> > >> > _______________________________________________ >> > Ironpython-users mailing list >> > Ironpython-users at python.org >> > http://mail.python.org/mailman/listinfo/ironpython-users >> > >> > > > > > -- > slide-o-blog > http://slide-o-blog.blogspot.com/ > From no_reply at codeplex.com Wed Aug 3 11:27:23 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 3 Aug 2011 02:27:23 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/2/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] _sha256.sha224 isn't implemented 2. [New comment] Implement the _hashlib module 3. [New comment] Implement the _hashlib module 4. [New comment] Nuget needs to be updated with IronPython 2.7+ 5. [New comment] Nuget needs to be updated with IronPython 2.7+ 6. [New issue] Improve Release build process 7. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 8. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 9. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 10. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 11. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 12. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 13. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 14. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 15. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object ---------------------------------------------- ISSUES 1. [New comment] _sha256.sha224 isn't implemented http://ironpython.codeplex.com/workitem/16870 User slide_o_mix has commented on the issue: "Mono has an implementation of SHA224, can we pull it in and use it?"----------------- 2. [New comment] Implement the _hashlib module http://ironpython.codeplex.com/workitem/21408 User slide_o_mix has commented on the issue: "Markus, what specifically are you looking for from _hashlib? We already implement _sha and friends (minus sha224)."----------------- 3. [New comment] Implement the _hashlib module http://ironpython.codeplex.com/workitem/21408 User jdhardy has commented on the issue: "Well, it's a judgement call, but since I don't think it will ever be implemented, it might as well be closed. It can always be re-opened if needed."----------------- 4. [New comment] Nuget needs to be updated with IronPython 2.7+ http://ironpython.codeplex.com/workitem/31126 User jdhardy has commented on the issue: "This is critical for 2.7.1, as I've put it off for far too long. It will require some improvements to the build system that I'd like to make anyway (namely the zip building, which can then be used to build the Nuget package if it wasn't immediately thrown away)."----------------- 5. [New comment] Nuget needs to be updated with IronPython 2.7+ http://ironpython.codeplex.com/workitem/31126 User jdhardy has commented on the issue: "See [workitem:31144] for more."----------------- 6. [New issue] Improve Release build process http://ironpython.codeplex.com/workitem/31144 User jdhardy has proposed the issue: "The zip build process is a bit clunky at the moment. It would be nice to be able to re-use the same staging directory for zip generation, nuget packages, CI artifacts, and even a revamped MSI builder. First off, the staging directory construction should be moved to a MSBuild file so that it can be cross-platform. The actual package construction can then be done in MSBuild files as well."----------------- 7. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User jdhardy has commented on the issue: "At the very least there should be a ToByteArray (or whatever) method that makes a copy (this has bit me before). It seems to me that getting at the raw _bytes isn't always possible, but it's been a while since I looked at it."----------------- 8. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User adal has commented on the issue: "A copy of the internal bytes would be fine. Ideally you would get the original, to avoid copying data (in my use case I worked with gigabytes). Maybe an extra method could be added, GetUnderlyingByteArray() which would return None if it fails to retrieve it and then you could fall back to the copy. "----------------- 9. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User slide_o_mix has commented on the issue: "Looking at the Bytes.cs, I don't see a case where you couldn't grab a copy of the internal _bytes. @jdhardy are you thinking of PythonBuffer?"----------------- 10. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User slide_o_mix has commented on the issue: "Also, Bytes implements IList (which means it implements IEnumerable) so you should be able to call ToArray() extension method already to get a copy of the data in byte[] form. We could still probably expose an internal pointer to the _bytes member with the understanding that it can have repercussions for using it."----------------- 11. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User adal has commented on the issue: "ToArray doesn't seem to work. >>> b"test".ToArray() Traceback (most recent call last): File "", line 1, in AttributeError: 'bytes' object has no attribute 'ToArray' "----------------- 12. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User slide_o_mix has commented on the issue: "I thought this was to be used from the C#, C++/CLI side, not from the python side."----------------- 13. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User adal has commented on the issue: "I need to get in Python a byte[] from a Python bytes object to pass to other C# or C++/CLI modules which take as arguments byte[]. Passing the Python bytes object directly would also be nice. "----------------- 14. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User adal has commented on the issue: "For example file = System.IO.BinaryWriter(...) file.Write(b"test") file.Close() "----------------- 15. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User slide_o_mix has commented on the issue: "In light of that, I propose the following methods: /// /// Returns a copy of the internal byte array. /// public byte[] ToByteArray() { byte[] res = new byte[_bytes.Length]; _bytes.CopyTo(res, 0); return res; } /// /// Allows access to the internal byte array representation. /// This method should be used sparingly! /// public byte[] GetUnderlyingByteArray() { return _bytes; } " ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Thu Aug 4 15:29:22 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 4 Aug 2011 06:29:22 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/3/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Implement the _hashlib module 2. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 3. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object 4. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object ---------------------------------------------- ISSUES 1. [New comment] Implement the _hashlib module http://ironpython.codeplex.com/workitem/21408 User MarkusSchaber has commented on the issue: "Never mind, but if there really is no speed problem or other disadvantage to be expected, then we can keep it closed."----------------- 2. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User jdhardy has commented on the issue: "It would be nice if the conversion were implicit, but .NET `byte[]` are mutable while Python `bytes` are immutable. For safety's sake, the conversion needs to be explicit. I'm fine with those two methods, but I would call the unsafe one GetUnsafeByteArray(), just to make it absolutely clear that it's not safe, and if it breaks, the caller gets to keep the pieces."----------------- 3. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User slide_o_mix has commented on the issue: "Sounds good, I'll rename to GetUnsafeByteArray(). Nice name :-)"----------------- 4. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User slide_o_mix has commented on the issue: "Fixed in 0e160ad" ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Fri Aug 5 09:52:27 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 5 Aug 2011 00:52:27 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/4/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object ---------------------------------------------- ISSUES 1. [New comment] Please add a function somewhere which returns the underlying byte[] from a bytes object http://ironpython.codeplex.com/workitem/27175 User jdhardy has commented on the issue: "I made one minor change: these methods will only show up after 'import clr' like all of the other .NET-specific methods." ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From igor.brejc at gmail.com Sun Aug 7 08:12:11 2011 From: igor.brejc at gmail.com (Igor Brejc) Date: Sun, 7 Aug 2011 08:12:11 +0200 Subject: [Ironpython-users] AccessViolationException on Python.CreateEngine() call Message-ID: Hi, I'm developing a cartography application (http://maperitive.net) in C# and I plan to use IronPython as a scripting extension of the application. I've been successfully using IronPython for several months and most users don't have any issues with it, but a small percentage of users is having problems. With the help from one of them I managed to dig out the exception stack trace. The exception occurs while calling the Python.CreateEngine()?method: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Failed to load language 'IronPython 2.6.2': Attempted to read or write protected memory. This is often an indication that other memory is corrupt. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Microsoft.Scripting.Actions.TopNamespaceTracker.PublishComTypes(Assembly interopAssembly) at IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object sender, AssemblyLoadedEventArgs e) at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext pythonContext, CodeContext context) at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager, IDictionary`2 options) --- End of inner exception stack trace --- at Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager domainManager, Boolean& alreadyLoaded) at Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager manager, LanguageConfiguration config) at Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager manager, AssemblyQualifiedTypeName providerName, LanguageContext& language) at Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String providerAssemblyQualifiedTypeName) at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String assemblyQualifiedTypeName) at IronPython.Hosting.Python.GetEngine(ScriptRuntime runtime) I couldn't find anything on Google that would be related to this. Some info about the user's environment: - Win7 64bit - Using .NET 2.0-3.5 (not 4.0) - IronPython is not installed in GAC, the app uses assemblies locally on the disk (v 2.6.2) - The user runs the application as an ordinary user (not administrator) I use Win7 64bit myself, but I didn't have any such problems and I cannot reproduce this problem on any of my machines (Win7, Ubuntu). Thanks for any help, Igor Brejc From no_reply at codeplex.com Mon Aug 8 15:28:46 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 8 Aug 2011 06:28:46 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/7/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] os.access(..., os.F_OK) is incorrect for directories 2. [New issue] wpf module in Silverlight ---------------------------------------------- ISSUES 1. [New comment] os.access(..., os.F_OK) is incorrect for directories http://ironpython.codeplex.com/workitem/31079 User jdhardy has commented on the issue: "Fixed in 5dcfaf1."----------------- 2. [New issue] wpf module in Silverlight http://ironpython.codeplex.com/workitem/31204 User Quirpie has proposed the issue: "when trying to execute one script using Silverlight 4 that uses "import clr" i get one System.NotImplementedException." ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Mon Aug 8 18:12:39 2011 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 8 Aug 2011 09:12:39 -0700 Subject: [Ironpython-users] AccessViolationException on Python.CreateEngine() call In-Reply-To: References: Message-ID: Hi Igor, The exception is occurring somewhere in IronPython's COM interop code, but I'm not exactly sure why - the code where the exception occurred pulls COM types out of interop assemblies. You'll have to (somehow) figure out what assembly is getting loaded in the AppDomain when the exception happens, which will probably require live debugging or a custom IronPython build. I'm not sure if it's a bug in IronPython, or if there's a squirrelly COM object on the user's machine that causes IronPython to break, but my guess is the latter. - Jeff P.S. I saw your SO question before this, but feel free to keep the discussion where ever you prefer. On Sat, Aug 6, 2011 at 11:12 PM, Igor Brejc wrote: > Hi, > > I'm developing a cartography application (http://maperitive.net) in C# > and I plan to use IronPython as a scripting extension of the > application. I've been successfully using IronPython for several > months and most users don't have any issues with it, but a small > percentage of users is having problems. > > With the help from one of them I managed to dig out the exception > stack trace. The exception occurs while calling the > Python.CreateEngine()?method: > > System.Reflection.TargetInvocationException: Exception has been thrown > by the target of an invocation. > ---> System.Reflection.TargetInvocationException: > Failed to load language 'IronPython 2.6.2': Attempted to read or write > protected memory. This is often an indication that other memory is > corrupt. > ---> System.AccessViolationException: Attempted to read or write > protected memory. This is often an indication that other memory is > corrupt. > at Microsoft.Scripting.Actions.TopNamespaceTracker.PublishComTypes(Assembly > interopAssembly) > at IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object > sender, AssemblyLoadedEventArgs e) > at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext > pythonContext, CodeContext context) > at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager, > IDictionary`2 options) > --- End of inner exception stack trace --- > at Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager > domainManager, Boolean& alreadyLoaded) > at Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager > manager, LanguageConfiguration config) > at Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager > manager, AssemblyQualifiedTypeName providerName, LanguageContext& > language) > at Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String > providerAssemblyQualifiedTypeName) > at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String > assemblyQualifiedTypeName) > at IronPython.Hosting.Python.GetEngine(ScriptRuntime runtime) > > I couldn't find anything on Google that would be related to this. Some > info about the user's environment: > > - Win7 64bit > - Using .NET 2.0-3.5 (not 4.0) > - IronPython is not installed in GAC, the app uses assemblies locally > on the disk (v 2.6.2) > - The user runs the application as an ordinary user (not administrator) > > I use Win7 64bit myself, but I didn't have any such problems and I > cannot reproduce this problem on any of my machines (Win7, Ubuntu). > > Thanks for any help, > Igor Brejc > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users > From igor.brejc at gmail.com Mon Aug 8 19:17:12 2011 From: igor.brejc at gmail.com (Igor Brejc) Date: Mon, 8 Aug 2011 19:17:12 +0200 Subject: [Ironpython-users] AccessViolationException on Python.CreateEngine() call In-Reply-To: References: Message-ID: Hi Jeff, Thanks for responding. I'll update the SO question if/when someone (I guess it will probably have to be me) figures out what the problem is. One update: we did some more debugging. The user installed IronPython 2.6.2 msi (.NET 2.0) and ipy64.exe breaks down when run. I guess this excludes any of my code or the fact that IP was used outside of GAC. What's strange is that sometimes it's AccessViolationException and sometimes NullReferenceException (but the failing method is the same). So I guess I'll need to build a custom IP build with some log4net logging of that method, since live debugging is not a realistic option here. Thanks for your help, Igor On Mon, Aug 8, 2011 at 6:12 PM, Jeff Hardy wrote: > Hi Igor, > > The exception is occurring somewhere in IronPython's COM interop code, > but I'm not exactly sure why - the code where the exception occurred > pulls COM types out of interop assemblies. You'll have to (somehow) > figure out what assembly is getting loaded in the AppDomain when the > exception happens, which will probably require live debugging or a > custom IronPython build. > > I'm not sure if it's a bug in IronPython, or if there's a squirrelly > COM object on the user's machine that causes IronPython to break, but > my guess is the latter. > > - Jeff > > P.S. I saw your SO question before this, but feel free to keep the > discussion where ever you prefer. > > On Sat, Aug 6, 2011 at 11:12 PM, Igor Brejc wrote: > > Hi, > > > > I'm developing a cartography application (http://maperitive.net) in C# > > and I plan to use IronPython as a scripting extension of the > > application. I've been successfully using IronPython for several > > months and most users don't have any issues with it, but a small > > percentage of users is having problems. > > > > With the help from one of them I managed to dig out the exception > > stack trace. The exception occurs while calling the > > Python.CreateEngine() method: > > > > System.Reflection.TargetInvocationException: Exception has been thrown > > by the target of an invocation. > > ---> System.Reflection.TargetInvocationException: > > Failed to load language 'IronPython 2.6.2': Attempted to read or write > > protected memory. This is often an indication that other memory is > > corrupt. > > ---> System.AccessViolationException: Attempted to read or write > > protected memory. This is often an indication that other memory is > > corrupt. > > at > Microsoft.Scripting.Actions.TopNamespaceTracker.PublishComTypes(Assembly > > interopAssembly) > > at > IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object > > sender, AssemblyLoadedEventArgs e) > > at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext > > pythonContext, CodeContext context) > > at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager, > > IDictionary`2 options) > > --- End of inner exception stack trace --- > > at > Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager > > domainManager, Boolean& alreadyLoaded) > > at > Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager > > manager, LanguageConfiguration config) > > at > Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager > > manager, AssemblyQualifiedTypeName providerName, LanguageContext& > > language) > > at > Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String > > providerAssemblyQualifiedTypeName) > > at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String > > assemblyQualifiedTypeName) > > at IronPython.Hosting.Python.GetEngine(ScriptRuntime runtime) > > > > I couldn't find anything on Google that would be related to this. Some > > info about the user's environment: > > > > - Win7 64bit > > - Using .NET 2.0-3.5 (not 4.0) > > - IronPython is not installed in GAC, the app uses assemblies locally > > on the disk (v 2.6.2) > > - The user runs the application as an ordinary user (not administrator) > > > > I use Win7 64bit myself, but I didn't have any such problems and I > > cannot reproduce this problem on any of my machines (Win7, Ubuntu). > > > > Thanks for any help, > > Igor Brejc > > _______________________________________________ > > Ironpython-users mailing list > > Ironpython-users at python.org > > http://mail.python.org/mailman/listinfo/ironpython-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From igor.brejc at gmail.com Mon Aug 8 19:50:20 2011 From: igor.brejc at gmail.com (Igor Brejc) Date: Mon, 8 Aug 2011 19:50:20 +0200 Subject: [Ironpython-users] AccessViolationException on Python.CreateEngine() call In-Reply-To: References: Message-ID: Hi Jeff, One question: I'm looking at the codeplex SVN repository (since I assume this is where 2.6.2 code still resides). What exactly do I need to check out in order to be able to build it? IronPython_2_6 directory or the whole repository? There seems to be a lot of stuff in the IronPython_Main dir. Thanks, Igor On Mon, Aug 8, 2011 at 7:17 PM, Igor Brejc wrote: > Hi Jeff, > > Thanks for responding. I'll update the SO question if/when someone (I guess > it will probably have to be me) figures out what the problem is. > > One update: we did some more debugging. The user installed IronPython 2.6.2 > msi (.NET 2.0) and ipy64.exe breaks down when run. I guess this excludes any > of my code or the fact that IP was used outside of GAC. > > What's strange is that sometimes it's AccessViolationException and > sometimes NullReferenceException (but the failing method is the same). > > So I guess I'll need to build a custom IP build with some log4net logging > of that method, since live debugging is not a realistic option here. > > Thanks for your help, > Igor > > > On Mon, Aug 8, 2011 at 6:12 PM, Jeff Hardy wrote: > >> Hi Igor, >> >> The exception is occurring somewhere in IronPython's COM interop code, >> but I'm not exactly sure why - the code where the exception occurred >> pulls COM types out of interop assemblies. You'll have to (somehow) >> figure out what assembly is getting loaded in the AppDomain when the >> exception happens, which will probably require live debugging or a >> custom IronPython build. >> >> I'm not sure if it's a bug in IronPython, or if there's a squirrelly >> COM object on the user's machine that causes IronPython to break, but >> my guess is the latter. >> >> - Jeff >> >> P.S. I saw your SO question before this, but feel free to keep the >> discussion where ever you prefer. >> >> On Sat, Aug 6, 2011 at 11:12 PM, Igor Brejc wrote: >> > Hi, >> > >> > I'm developing a cartography application (http://maperitive.net) in C# >> > and I plan to use IronPython as a scripting extension of the >> > application. I've been successfully using IronPython for several >> > months and most users don't have any issues with it, but a small >> > percentage of users is having problems. >> > >> > With the help from one of them I managed to dig out the exception >> > stack trace. The exception occurs while calling the >> > Python.CreateEngine() method: >> > >> > System.Reflection.TargetInvocationException: Exception has been thrown >> > by the target of an invocation. >> > ---> System.Reflection.TargetInvocationException: >> > Failed to load language 'IronPython 2.6.2': Attempted to read or write >> > protected memory. This is often an indication that other memory is >> > corrupt. >> > ---> System.AccessViolationException: Attempted to read or write >> > protected memory. This is often an indication that other memory is >> > corrupt. >> > at >> Microsoft.Scripting.Actions.TopNamespaceTracker.PublishComTypes(Assembly >> > interopAssembly) >> > at >> IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object >> > sender, AssemblyLoadedEventArgs e) >> > at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext >> > pythonContext, CodeContext context) >> > at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager, >> > IDictionary`2 options) >> > --- End of inner exception stack trace --- >> > at >> Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager >> > domainManager, Boolean& alreadyLoaded) >> > at >> Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager >> > manager, LanguageConfiguration config) >> > at >> Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager >> > manager, AssemblyQualifiedTypeName providerName, LanguageContext& >> > language) >> > at >> Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String >> > providerAssemblyQualifiedTypeName) >> > at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String >> > assemblyQualifiedTypeName) >> > at IronPython.Hosting.Python.GetEngine(ScriptRuntime runtime) >> > >> > I couldn't find anything on Google that would be related to this. Some >> > info about the user's environment: >> > >> > - Win7 64bit >> > - Using .NET 2.0-3.5 (not 4.0) >> > - IronPython is not installed in GAC, the app uses assemblies locally >> > on the disk (v 2.6.2) >> > - The user runs the application as an ordinary user (not administrator) >> > >> > I use Win7 64bit myself, but I didn't have any such problems and I >> > cannot reproduce this problem on any of my machines (Win7, Ubuntu). >> > >> > Thanks for any help, >> > Igor Brejc >> > _______________________________________________ >> > Ironpython-users mailing list >> > Ironpython-users at python.org >> > http://mail.python.org/mailman/listinfo/ironpython-users >> > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Mon Aug 8 20:35:15 2011 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 8 Aug 2011 11:35:15 -0700 Subject: [Ironpython-users] AccessViolationException on Python.CreateEngine() call In-Reply-To: References: Message-ID: IronPython_2_6 should be all you need. The rest is the start of 2.7 that later got moved to GitHub. - Jeff On Mon, Aug 8, 2011 at 10:50 AM, Igor Brejc wrote: > Hi Jeff, > One question: I'm looking at the codeplex SVN repository (since I assume > this is where 2.6.2 code still resides). What exactly do I need to check out > in order to be able to build it? IronPython_2_6 directory or the whole > repository? There seems to be a lot of stuff in the IronPython_Main dir. > Thanks, > Igor > > On Mon, Aug 8, 2011 at 7:17 PM, Igor Brejc wrote: >> >> Hi Jeff, >> Thanks for responding. I'll update the SO question if/when someone (I >> guess it will probably have to be me) figures out what the problem is. >> One update: we did some more debugging. The user installed IronPython >> 2.6.2 msi (.NET 2.0) and ipy64.exe breaks down when run. I guess this >> excludes any of my code or the fact that IP was used outside of GAC. >> What's strange is that sometimes it's AccessViolationException and >> sometimes NullReferenceException (but the failing method is the same). >> So I guess I'll need to build a custom IP build with some log4net logging >> of that method, since live debugging is not a realistic option here. >> Thanks for your help, >> Igor >> >> On Mon, Aug 8, 2011 at 6:12 PM, Jeff Hardy wrote: >>> >>> Hi Igor, >>> >>> The exception is occurring somewhere in IronPython's COM interop code, >>> but I'm not exactly sure why - the code where the exception occurred >>> pulls COM types out of interop assemblies. You'll have to (somehow) >>> figure out what assembly is getting loaded in the AppDomain when the >>> exception happens, which will probably require live debugging or a >>> custom IronPython build. >>> >>> I'm not sure if it's a bug in IronPython, or if there's a squirrelly >>> COM object on the user's machine that causes IronPython to break, but >>> my guess is the latter. >>> >>> - Jeff >>> >>> P.S. I saw your SO question before this, but feel free to keep the >>> discussion where ever you prefer. >>> >>> On Sat, Aug 6, 2011 at 11:12 PM, Igor Brejc wrote: >>> > Hi, >>> > >>> > I'm developing a cartography application (http://maperitive.net) in C# >>> > and I plan to use IronPython as a scripting extension of the >>> > application. I've been successfully using IronPython for several >>> > months and most users don't have any issues with it, but a small >>> > percentage of users is having problems. >>> > >>> > With the help from one of them I managed to dig out the exception >>> > stack trace. The exception occurs while calling the >>> > Python.CreateEngine()?method: >>> > >>> > System.Reflection.TargetInvocationException: Exception has been thrown >>> > by the target of an invocation. >>> > ---> System.Reflection.TargetInvocationException: >>> > Failed to load language 'IronPython 2.6.2': Attempted to read or write >>> > protected memory. This is often an indication that other memory is >>> > corrupt. >>> > ---> System.AccessViolationException: Attempted to read or write >>> > protected memory. This is often an indication that other memory is >>> > corrupt. >>> > at >>> > Microsoft.Scripting.Actions.TopNamespaceTracker.PublishComTypes(Assembly >>> > interopAssembly) >>> > at >>> > IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object >>> > sender, AssemblyLoadedEventArgs e) >>> > at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext >>> > pythonContext, CodeContext context) >>> > at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager, >>> > IDictionary`2 options) >>> > --- End of inner exception stack trace --- >>> > at >>> > Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager >>> > domainManager, Boolean& alreadyLoaded) >>> > at >>> > Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager >>> > manager, LanguageConfiguration config) >>> > at >>> > Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager >>> > manager, AssemblyQualifiedTypeName providerName, LanguageContext& >>> > language) >>> > at >>> > Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String >>> > providerAssemblyQualifiedTypeName) >>> > at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String >>> > assemblyQualifiedTypeName) >>> > at IronPython.Hosting.Python.GetEngine(ScriptRuntime runtime) >>> > >>> > I couldn't find anything on Google that would be related to this. Some >>> > info about the user's environment: >>> > >>> > - Win7 64bit >>> > - Using .NET 2.0-3.5 (not 4.0) >>> > - IronPython is not installed in GAC, the app uses assemblies locally >>> > on the disk (v 2.6.2) >>> > - The user runs the application as an ordinary user (not administrator) >>> > >>> > I use Win7 64bit myself, but I didn't have any such problems and I >>> > cannot reproduce this problem on any of my machines (Win7, Ubuntu). >>> > >>> > Thanks for any help, >>> > Igor Brejc >>> > _______________________________________________ >>> > Ironpython-users mailing list >>> > Ironpython-users at python.org >>> > http://mail.python.org/mailman/listinfo/ironpython-users >>> > >> > > From igor.brejc at gmail.com Mon Aug 8 21:27:14 2011 From: igor.brejc at gmail.com (Igor Brejc) Date: Mon, 8 Aug 2011 21:27:14 +0200 Subject: [Ironpython-users] AccessViolationException on Python.CreateEngine() call In-Reply-To: References: Message-ID: Well in the end I built it from the ZIP package :). Anyway, here are some results. IP always breaks down when examining System.Runtime.Hosting.ActivationArguments type, on the if (type.IsImport && type.IsInterface) line. This is the only type the method breaks down on. PublishComTypes examines the following assemblies: 2011-08-08 20:18:48,971 DEBUG [1] Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes (interopassembly='mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089') 2011-08-08 20:18:50,490 DEBUG [1] Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes (interopassembly='System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089') 2011-08-08 20:18:51,451 DEBUG [1] Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes (interopassembly='mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089') 2011-08-08 20:18:52,695 DEBUG [1] Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes (interopassembly='System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089') Questions: 1. Is there any reason why both assemblies are examined twice? 2. How critical is this method for running IP? In other words if I comment it out, would IP be able to work normally? 3. Is there an improved version of this code in 2.7? The code comments say "Since scanning all loaded assemblies can be expensive, in the future, we might consider a more explicit user binder to trigger scanning of COM types." One other strange thing: _sometimes_ (looks like randomly), the method throws AccessViolationException right at the start, when AssemblyTypeNames.LoadTypesFromAssembly() is called on the mscorlib assembly. I haven't added any logging in that method, so I cannot say where exactly this happens. I can extend the logging if necessary. Pasting the method code (without my logging code): public static void PublishComTypes(Assembly interopAssembly) { #if !SILVERLIGHT lock (_comTypeCache) { // We lock over the entire operation so that we can publish a consistent view foreach (Type type in AssemblyTypeNames.LoadTypesFromAssembly(interopAssembly, false)) { if (type.IsImport && type.IsInterface) { Type existing; if (_comTypeCache.TryGetValue(type.GUID, out existing)) { if (!existing.IsDefined(typeof(CoClassAttribute), false)) { // prefer the type w/ CoClassAttribute on it. Example: // MS.Office.Interop.Excel.Worksheet // vs // MS.Office.Interop.Excel._Worksheet // Worksheet defines all the interfaces that the type supports and has CoClassAttribute. // _Worksheet is just the interface for the worksheet. // // They both have the same GUID though. _comTypeCache[type.GUID] = type; } } else { _comTypeCache[type.GUID] = type; } } } } #endif } On Mon, Aug 8, 2011 at 8:35 PM, Jeff Hardy wrote: > IronPython_2_6 should be all you need. The rest is the start of 2.7 > that later got moved to GitHub. > > - Jeff > > On Mon, Aug 8, 2011 at 10:50 AM, Igor Brejc wrote: > > Hi Jeff, > > One question: I'm looking at the codeplex SVN repository (since I assume > > this is where 2.6.2 code still resides). What exactly do I need to check > out > > in order to be able to build it? IronPython_2_6 directory or the whole > > repository? There seems to be a lot of stuff in the IronPython_Main dir. > > Thanks, > > Igor > > > > On Mon, Aug 8, 2011 at 7:17 PM, Igor Brejc wrote: > >> > >> Hi Jeff, > >> Thanks for responding. I'll update the SO question if/when someone (I > >> guess it will probably have to be me) figures out what the problem is. > >> One update: we did some more debugging. The user installed IronPython > >> 2.6.2 msi (.NET 2.0) and ipy64.exe breaks down when run. I guess this > >> excludes any of my code or the fact that IP was used outside of GAC. > >> What's strange is that sometimes it's AccessViolationException and > >> sometimes NullReferenceException (but the failing method is the same). > >> So I guess I'll need to build a custom IP build with some log4net > logging > >> of that method, since live debugging is not a realistic option here. > >> Thanks for your help, > >> Igor > >> > >> On Mon, Aug 8, 2011 at 6:12 PM, Jeff Hardy wrote: > >>> > >>> Hi Igor, > >>> > >>> The exception is occurring somewhere in IronPython's COM interop code, > >>> but I'm not exactly sure why - the code where the exception occurred > >>> pulls COM types out of interop assemblies. You'll have to (somehow) > >>> figure out what assembly is getting loaded in the AppDomain when the > >>> exception happens, which will probably require live debugging or a > >>> custom IronPython build. > >>> > >>> I'm not sure if it's a bug in IronPython, or if there's a squirrelly > >>> COM object on the user's machine that causes IronPython to break, but > >>> my guess is the latter. > >>> > >>> - Jeff > >>> > >>> P.S. I saw your SO question before this, but feel free to keep the > >>> discussion where ever you prefer. > >>> > >>> On Sat, Aug 6, 2011 at 11:12 PM, Igor Brejc > wrote: > >>> > Hi, > >>> > > >>> > I'm developing a cartography application (http://maperitive.net) in > C# > >>> > and I plan to use IronPython as a scripting extension of the > >>> > application. I've been successfully using IronPython for several > >>> > months and most users don't have any issues with it, but a small > >>> > percentage of users is having problems. > >>> > > >>> > With the help from one of them I managed to dig out the exception > >>> > stack trace. The exception occurs while calling the > >>> > Python.CreateEngine() method: > >>> > > >>> > System.Reflection.TargetInvocationException: Exception has been > thrown > >>> > by the target of an invocation. > >>> > ---> System.Reflection.TargetInvocationException: > >>> > Failed to load language 'IronPython 2.6.2': Attempted to read or > write > >>> > protected memory. This is often an indication that other memory is > >>> > corrupt. > >>> > ---> System.AccessViolationException: Attempted to read or write > >>> > protected memory. This is often an indication that other memory is > >>> > corrupt. > >>> > at > >>> > > Microsoft.Scripting.Actions.TopNamespaceTracker.PublishComTypes(Assembly > >>> > interopAssembly) > >>> > at > >>> > > IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object > >>> > sender, AssemblyLoadedEventArgs e) > >>> > at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext > >>> > pythonContext, CodeContext context) > >>> > at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager > manager, > >>> > IDictionary`2 options) > >>> > --- End of inner exception stack trace --- > >>> > at > >>> > > Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager > >>> > domainManager, Boolean& alreadyLoaded) > >>> > at > >>> > > Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager > >>> > manager, LanguageConfiguration config) > >>> > at > >>> > > Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager > >>> > manager, AssemblyQualifiedTypeName providerName, LanguageContext& > >>> > language) > >>> > at > >>> > > Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String > >>> > providerAssemblyQualifiedTypeName) > >>> > at > Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String > >>> > assemblyQualifiedTypeName) > >>> > at IronPython.Hosting.Python.GetEngine(ScriptRuntime runtime) > >>> > > >>> > I couldn't find anything on Google that would be related to this. > Some > >>> > info about the user's environment: > >>> > > >>> > - Win7 64bit > >>> > - Using .NET 2.0-3.5 (not 4.0) > >>> > - IronPython is not installed in GAC, the app uses assemblies locally > >>> > on the disk (v 2.6.2) > >>> > - The user runs the application as an ordinary user (not > administrator) > >>> > > >>> > I use Win7 64bit myself, but I didn't have any such problems and I > >>> > cannot reproduce this problem on any of my machines (Win7, Ubuntu). > >>> > > >>> > Thanks for any help, > >>> > Igor Brejc > >>> > _______________________________________________ > >>> > Ironpython-users mailing list > >>> > Ironpython-users at python.org > >>> > http://mail.python.org/mailman/listinfo/ironpython-users > >>> > > >> > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Mon Aug 8 21:34:40 2011 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 8 Aug 2011 12:34:40 -0700 Subject: [Ironpython-users] AccessViolationException on Python.CreateEngine() call In-Reply-To: References: Message-ID: Two quick answers: 1. It's not critical, unless you need access COM objects (like Word/Excel automation or something). 2. The exact same code is in 2.7, and I think it's still active. 3. I can't understand why it would break like that when examining those assemblies. Dino? Thoughts? - Jeff On Mon, Aug 8, 2011 at 12:27 PM, Igor Brejc wrote: > Well in the end I built it from the ZIP package :). > Anyway, here are some results. IP always breaks down when > examining?System.Runtime.Hosting.ActivationArguments type, on the > ? ? ?if (type.IsImport && type.IsInterface) > line. This is the only type the method breaks down on. > PublishComTypes examines the following assemblies: > 2011-08-08 20:18:48,971 DEBUG [1] > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > (interopassembly='mscorlib, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089') > 2011-08-08 20:18:50,490 DEBUG [1] > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > (interopassembly='System, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089') > 2011-08-08 20:18:51,451 DEBUG [1] > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > (interopassembly='mscorlib, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089') > 2011-08-08 20:18:52,695 DEBUG [1] > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > (interopassembly='System, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089') > Questions: > > Is there any reason why both assemblies are examined twice? > How critical is this method for running IP? In other words if I comment it > out, would IP be able to work normally? > Is there an improved version of this code in 2.7? The code comments say > "Since scanning all loaded assemblies can be expensive, in the future, we > might consider a more explicit?user binder to trigger scanning of COM > types." > > One other strange thing: _sometimes_ (looks like randomly), the method > throws AccessViolationException right at the start, > when?AssemblyTypeNames.LoadTypesFromAssembly() is called on the mscorlib > assembly. I haven't added any logging in that method, so I cannot say where > exactly this happens. I can extend the logging if necessary. > Pasting the method code (without my logging code): > ? ? ? ? public static void PublishComTypes(Assembly interopAssembly) > ? ? ? ? { > #if !SILVERLIGHT > ? ? ? ? ? ? lock (_comTypeCache) > ? ? ? ? ? ? { // We lock over the entire operation so that we can publish a > consistent view > ? ? ? ? ? ? ? ? foreach (Type type in > AssemblyTypeNames.LoadTypesFromAssembly(interopAssembly, false)) > ? ? ? ? ? ? ? ? { > ? ? ? ? ? ? ? ? ? ? ? ? if (type.IsImport && type.IsInterface) > ? ? ? ? ? ? ? ? ? ? ? ? { > ? ? ? ? ? ? ? ? ? ? ? ? ? ? Type existing; > ? ? ? ? ? ? ? ? ? ? ? ? ? ? if (_comTypeCache.TryGetValue(type.GUID, out > existing)) > ? ? ? ? ? ? ? ? ? ? ? ? ? ? { > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if > (!existing.IsDefined(typeof(CoClassAttribute), false)) > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? { > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // prefer the type w/ CoClassAttribute > on it. ?Example: > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // ? ?MS.Office.Interop.Excel.Worksheet > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // ? ? ? ? ?vs > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // ? ?MS.Office.Interop.Excel._Worksheet > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // ?Worksheet defines all the interfaces > that the type supports and has CoClassAttribute. > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // ?_Worksheet is just the interface for > the worksheet. > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // They both have the same GUID though. > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? _comTypeCache[type.GUID] = type; > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } > ? ? ? ? ? ? ? ? ? ? ? ? ? ? } else > ? ? ? ? ? ? ? ? ? ? ? ? ? ? { > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? _comTypeCache[type.GUID] = type; > ? ? ? ? ? ? ? ? ? ? ? ? ? ? } > ? ? ? ? ? ? ? ? ? ? ? ? } > ? ? ? ? ? ? ? ? } > ? ? ? ? ? ? } > #endif > ? ? ? ? } > > On Mon, Aug 8, 2011 at 8:35 PM, Jeff Hardy wrote: >> >> IronPython_2_6 should be all you need. The rest is the start of 2.7 >> that later got moved to GitHub. >> >> - Jeff >> >> On Mon, Aug 8, 2011 at 10:50 AM, Igor Brejc wrote: >> > Hi Jeff, >> > One question: I'm looking at the codeplex SVN repository (since I assume >> > this is where 2.6.2 code still resides). What exactly do I need to check >> > out >> > in order to be able to build it? IronPython_2_6 directory or the whole >> > repository? There seems to be a lot of stuff in the IronPython_Main dir. >> > Thanks, >> > Igor >> > >> > On Mon, Aug 8, 2011 at 7:17 PM, Igor Brejc wrote: >> >> >> >> Hi Jeff, >> >> Thanks for responding. I'll update the SO question if/when someone (I >> >> guess it will probably have to be me) figures out what the problem is. >> >> One update: we did some more debugging. The user installed IronPython >> >> 2.6.2 msi (.NET 2.0) and ipy64.exe breaks down when run. I guess this >> >> excludes any of my code or the fact that IP was used outside of GAC. >> >> What's strange is that sometimes it's AccessViolationException and >> >> sometimes NullReferenceException (but the failing method is the same). >> >> So I guess I'll need to build a custom IP build with some log4net >> >> logging >> >> of that method, since live debugging is not a realistic option here. >> >> Thanks for your help, >> >> Igor >> >> >> >> On Mon, Aug 8, 2011 at 6:12 PM, Jeff Hardy wrote: >> >>> >> >>> Hi Igor, >> >>> >> >>> The exception is occurring somewhere in IronPython's COM interop code, >> >>> but I'm not exactly sure why - the code where the exception occurred >> >>> pulls COM types out of interop assemblies. You'll have to (somehow) >> >>> figure out what assembly is getting loaded in the AppDomain when the >> >>> exception happens, which will probably require live debugging or a >> >>> custom IronPython build. >> >>> >> >>> I'm not sure if it's a bug in IronPython, or if there's a squirrelly >> >>> COM object on the user's machine that causes IronPython to break, but >> >>> my guess is the latter. >> >>> >> >>> - Jeff >> >>> >> >>> P.S. I saw your SO question before this, but feel free to keep the >> >>> discussion where ever you prefer. >> >>> >> >>> On Sat, Aug 6, 2011 at 11:12 PM, Igor Brejc >> >>> wrote: >> >>> > Hi, >> >>> > >> >>> > I'm developing a cartography application (http://maperitive.net) in >> >>> > C# >> >>> > and I plan to use IronPython as a scripting extension of the >> >>> > application. I've been successfully using IronPython for several >> >>> > months and most users don't have any issues with it, but a small >> >>> > percentage of users is having problems. >> >>> > >> >>> > With the help from one of them I managed to dig out the exception >> >>> > stack trace. The exception occurs while calling the >> >>> > Python.CreateEngine()?method: >> >>> > >> >>> > System.Reflection.TargetInvocationException: Exception has been >> >>> > thrown >> >>> > by the target of an invocation. >> >>> > ---> System.Reflection.TargetInvocationException: >> >>> > Failed to load language 'IronPython 2.6.2': Attempted to read or >> >>> > write >> >>> > protected memory. This is often an indication that other memory is >> >>> > corrupt. >> >>> > ---> System.AccessViolationException: Attempted to read or write >> >>> > protected memory. This is often an indication that other memory is >> >>> > corrupt. >> >>> > at >> >>> > >> >>> > Microsoft.Scripting.Actions.TopNamespaceTracker.PublishComTypes(Assembly >> >>> > interopAssembly) >> >>> > at >> >>> > >> >>> > IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object >> >>> > sender, AssemblyLoadedEventArgs e) >> >>> > at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext >> >>> > pythonContext, CodeContext context) >> >>> > at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager >> >>> > manager, >> >>> > IDictionary`2 options) >> >>> > --- End of inner exception stack trace --- >> >>> > at >> >>> > >> >>> > Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager >> >>> > domainManager, Boolean& alreadyLoaded) >> >>> > at >> >>> > >> >>> > Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager >> >>> > manager, LanguageConfiguration config) >> >>> > at >> >>> > >> >>> > Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager >> >>> > manager, AssemblyQualifiedTypeName providerName, LanguageContext& >> >>> > language) >> >>> > at >> >>> > >> >>> > Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String >> >>> > providerAssemblyQualifiedTypeName) >> >>> > at >> >>> > Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String >> >>> > assemblyQualifiedTypeName) >> >>> > at IronPython.Hosting.Python.GetEngine(ScriptRuntime runtime) >> >>> > >> >>> > I couldn't find anything on Google that would be related to this. >> >>> > Some >> >>> > info about the user's environment: >> >>> > >> >>> > - Win7 64bit >> >>> > - Using .NET 2.0-3.5 (not 4.0) >> >>> > - IronPython is not installed in GAC, the app uses assemblies >> >>> > locally >> >>> > on the disk (v 2.6.2) >> >>> > - The user runs the application as an ordinary user (not >> >>> > administrator) >> >>> > >> >>> > I use Win7 64bit myself, but I didn't have any such problems and I >> >>> > cannot reproduce this problem on any of my machines (Win7, Ubuntu). >> >>> > >> >>> > Thanks for any help, >> >>> > Igor Brejc >> >>> > _______________________________________________ >> >>> > Ironpython-users mailing list >> >>> > Ironpython-users at python.org >> >>> > http://mail.python.org/mailman/listinfo/ironpython-users >> >>> > >> >> >> > >> > > > From jdhardy at gmail.com Mon Aug 8 21:40:27 2011 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 8 Aug 2011 12:40:27 -0700 Subject: [Ironpython-users] Who's using IronPython? Message-ID: I'd like to create a 'Who's using IronPython?' to show the IronPython is being used and maybe help drive adoption. (See http://www.boost.org/users/uses_open.html for an example). What I need: Company Name [commercial] Product [commercial] or Project [OSS] Name URL Description of product/project If your own product uses IronPython, or you know of one that does, please let me know. - Jeff From dinov at microsoft.com Tue Aug 9 05:45:32 2011 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 9 Aug 2011 03:45:32 +0000 Subject: [Ironpython-users] AccessViolationException on Python.CreateEngine() call In-Reply-To: References: Message-ID: <6C7ABA8B4E309440B857D74348836F2E28EFE6A0@TK5EX14MBXC293.redmond.corp.microsoft.com> The AV exception here indicates that something is going wrong in native code - it sounds like it could be a CLR bug or a crash in some other component. Does this all repro with just ipy.exe (so in 32-bit mode)? The best way to figure out what's going on is to use the native debuggers. You can download those here: http://www.windbg.org/ (Note if you don't want to run the installer on the user's machine it is possible to xcopy them from one machine to another). Given that it seems to repro w/ just running ipy64.exe you should be able to just do something like: "C:\Program Files (x86)\Debugging Tools for Windows\windbg.exe" "C:\Program Files\IronPython 2.6\ipy64.exe" Once it's started you should just type "g" and enter in the command line (or use the menus to go :)) and it should stop when the crash is hit. From there into the command line you can type: .symfix .reload ~*kb30 That will set the symbol path to Microsoft's public symbol servers, reload symbols, and then dump the stack trace of all the threads. It might also be useful to know the version of the CLR if it's crashing in mscorwks, you can do: lm v mmscorwks To get that. And finally if it is a CLR bug someone might want a crash dump which you could get with: .dump /mfh somelocation.dmp but just hold onto that for now - it's just in case and I don't have an easy place to send it to. > -----Original Message----- > From: Jeff Hardy [mailto:jdhardy at gmail.com] > Sent: Monday, August 08, 2011 12:35 PM > To: Igor Brejc > Cc: ironpython-users at python.org; Dino Viehland > Subject: Re: [Ironpython-users] AccessViolationException on > Python.CreateEngine() call > > Two quick answers: > 1. It's not critical, unless you need access COM objects (like Word/Excel > automation or something). > 2. The exact same code is in 2.7, and I think it's still active. > 3. I can't understand why it would break like that when examining those > assemblies. > > Dino? Thoughts? > > - Jeff > > On Mon, Aug 8, 2011 at 12:27 PM, Igor Brejc wrote: > > Well in the end I built it from the ZIP package :). > > Anyway, here are some results. IP always breaks down when examining > > System.Runtime.Hosting.ActivationArguments type, on the > > ? ? ?if (type.IsImport && type.IsInterface) line. This is the only > > type the method breaks down on. > > PublishComTypes examines the following assemblies: > > 2011-08-08 20:18:48,971 DEBUG [1] > > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > > (interopassembly='mscorlib, Version=2.0.0.0, Culture=neutral, > > PublicKeyToken=b77a5c561934e089') > > 2011-08-08 20:18:50,490 DEBUG [1] > > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > > (interopassembly='System, Version=2.0.0.0, Culture=neutral, > > PublicKeyToken=b77a5c561934e089') > > 2011-08-08 20:18:51,451 DEBUG [1] > > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > > (interopassembly='mscorlib, Version=2.0.0.0, Culture=neutral, > > PublicKeyToken=b77a5c561934e089') > > 2011-08-08 20:18:52,695 DEBUG [1] > > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > > (interopassembly='System, Version=2.0.0.0, Culture=neutral, > > PublicKeyToken=b77a5c561934e089') > > Questions: > > > > Is there any reason why both assemblies are examined twice? > > How critical is this method for running IP? In other words if I > > comment it out, would IP be able to work normally? > > Is there an improved version of this code in 2.7? The code comments > > say "Since scanning all loaded assemblies can be expensive, in the > > future, we might consider a more explicit?user binder to trigger > > scanning of COM types." > > > > One other strange thing: _sometimes_ (looks like randomly), the method > > throws AccessViolationException right at the start, when > > AssemblyTypeNames.LoadTypesFromAssembly() is called on the mscorlib > > assembly. I haven't added any logging in that method, so I cannot say > > where exactly this happens. I can extend the logging if necessary. > > Pasting the method code (without my logging code): > > ? ? ? ? public static void PublishComTypes(Assembly interopAssembly) > > ? ? ? ? { > > #if !SILVERLIGHT > > ? ? ? ? ? ? lock (_comTypeCache) > > ? ? ? ? ? ? { // We lock over the entire operation so that we can > > publish a consistent view > > ? ? ? ? ? ? ? ? foreach (Type type in > > AssemblyTypeNames.LoadTypesFromAssembly(interopAssembly, false)) > > ? ? ? ? ? ? ? ? { > > ? ? ? ? ? ? ? ? ? ? ? ? if (type.IsImport && type.IsInterface) > > ? ? ? ? ? ? ? ? ? ? ? ? { > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? Type existing; > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? if (_comTypeCache.TryGetValue(type.GUID, > > out > > existing)) > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? { > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if > > (!existing.IsDefined(typeof(CoClassAttribute), false)) > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? { > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // prefer the type w/ > > CoClassAttribute on it. ?Example: > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // > > MS.Office.Interop.Excel.Worksheet > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // ? ? ? ? ?vs > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // > > MS.Office.Interop.Excel._Worksheet > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // ?Worksheet defines all the > > interfaces that the type supports and has CoClassAttribute. > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // ?_Worksheet is just the > > interface for the worksheet. > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // They both have the same GUID though. > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? _comTypeCache[type.GUID] = type; > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? } else > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? { > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? _comTypeCache[type.GUID] = type; > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? } > > ? ? ? ? ? ? ? ? ? ? ? ? } > > ? ? ? ? ? ? ? ? } > > ? ? ? ? ? ? } > > #endif > > ? ? ? ? } > > > > On Mon, Aug 8, 2011 at 8:35 PM, Jeff Hardy wrote: > >> > >> IronPython_2_6 should be all you need. The rest is the start of 2.7 > >> that later got moved to GitHub. > >> > >> - Jeff > >> > >> On Mon, Aug 8, 2011 at 10:50 AM, Igor Brejc > wrote: > >> > Hi Jeff, > >> > One question: I'm looking at the codeplex SVN repository (since I > >> > assume this is where 2.6.2 code still resides). What exactly do I > >> > need to check out in order to be able to build it? IronPython_2_6 > >> > directory or the whole repository? There seems to be a lot of stuff > >> > in the IronPython_Main dir. > >> > Thanks, > >> > Igor > >> > > >> > On Mon, Aug 8, 2011 at 7:17 PM, Igor Brejc > wrote: > >> >> > >> >> Hi Jeff, > >> >> Thanks for responding. I'll update the SO question if/when someone > >> >> (I guess it will probably have to be me) figures out what the problem is. > >> >> One update: we did some more debugging. The user installed > >> >> IronPython > >> >> 2.6.2 msi (.NET 2.0) and ipy64.exe breaks down when run. I guess > >> >> this excludes any of my code or the fact that IP was used outside of > GAC. > >> >> What's strange is that sometimes it's AccessViolationException and > >> >> sometimes NullReferenceException (but the failing method is the > same). > >> >> So I guess I'll need to build a custom IP build with some log4net > >> >> logging of that method, since live debugging is not a realistic > >> >> option here. > >> >> Thanks for your help, > >> >> Igor > >> >> > >> >> On Mon, Aug 8, 2011 at 6:12 PM, Jeff Hardy > wrote: > >> >>> > >> >>> Hi Igor, > >> >>> > >> >>> The exception is occurring somewhere in IronPython's COM interop > >> >>> code, but I'm not exactly sure why - the code where the exception > >> >>> occurred pulls COM types out of interop assemblies. You'll have > >> >>> to (somehow) figure out what assembly is getting loaded in the > >> >>> AppDomain when the exception happens, which will probably > require > >> >>> live debugging or a custom IronPython build. > >> >>> > >> >>> I'm not sure if it's a bug in IronPython, or if there's a > >> >>> squirrelly COM object on the user's machine that causes > >> >>> IronPython to break, but my guess is the latter. > >> >>> > >> >>> - Jeff > >> >>> > >> >>> P.S. I saw your SO question before this, but feel free to keep > >> >>> the discussion where ever you prefer. > >> >>> > >> >>> On Sat, Aug 6, 2011 at 11:12 PM, Igor Brejc > >> >>> > >> >>> wrote: > >> >>> > Hi, > >> >>> > > >> >>> > I'm developing a cartography application > >> >>> > (http://maperitive.net) in C# and I plan to use IronPython as a > >> >>> > scripting extension of the application. I've been successfully > >> >>> > using IronPython for several months and most users don't have > >> >>> > any issues with it, but a small percentage of users is having > >> >>> > problems. > >> >>> > > >> >>> > With the help from one of them I managed to dig out the > >> >>> > exception stack trace. The exception occurs while calling the > >> >>> > Python.CreateEngine()?method: > >> >>> > > >> >>> > System.Reflection.TargetInvocationException: Exception has been > >> >>> > thrown by the target of an invocation. > >> >>> > ---> System.Reflection.TargetInvocationException: > >> >>> > Failed to load language 'IronPython 2.6.2': Attempted to read > >> >>> > or write protected memory. This is often an indication that > >> >>> > other memory is corrupt. > >> >>> > ---> System.AccessViolationException: Attempted to read or > >> >>> > ---> write > >> >>> > protected memory. This is often an indication that other memory > >> >>> > is corrupt. > >> >>> > at > >> >>> > > >> >>> > > Microsoft.Scripting.Actions.TopNamespaceTracker.PublishComTypes > >> >>> > (Assembly > >> >>> > interopAssembly) > >> >>> > at > >> >>> > > >> >>> > > IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyL > >> >>> > oaded(Object sender, AssemblyLoadedEventArgs e) at > >> >>> > IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext > >> >>> > pythonContext, CodeContext context) at > >> >>> > IronPython.Runtime.PythonContext..ctor(ScriptDomainManager > >> >>> > manager, > >> >>> > IDictionary`2 options) > >> >>> > --- End of inner exception stack trace --- at > >> >>> > > >> >>> > > Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageC > >> >>> > ontext(ScriptDomainManager domainManager, Boolean& > >> >>> > alreadyLoaded) at > >> >>> > > >> >>> > Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContex > >> >>> > t(ScriptDomainManager manager, LanguageConfiguration config) at > >> >>> > > >> >>> > Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(Sc > >> >>> > riptDomainManager manager, AssemblyQualifiedTypeName > >> >>> > providerName, LanguageContext& > >> >>> > language) > >> >>> > at > >> >>> > > >> >>> > > Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTy > >> >>> > peName(String > >> >>> > providerAssemblyQualifiedTypeName) > >> >>> > at > >> >>> > > Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(S > >> >>> > tring > >> >>> > assemblyQualifiedTypeName) > >> >>> > at IronPython.Hosting.Python.GetEngine(ScriptRuntime runtime) > >> >>> > > >> >>> > I couldn't find anything on Google that would be related to this. > >> >>> > Some > >> >>> > info about the user's environment: > >> >>> > > >> >>> > - Win7 64bit > >> >>> > - Using .NET 2.0-3.5 (not 4.0) > >> >>> > - IronPython is not installed in GAC, the app uses assemblies > >> >>> > locally on the disk (v 2.6.2) > >> >>> > - The user runs the application as an ordinary user (not > >> >>> > administrator) > >> >>> > > >> >>> > I use Win7 64bit myself, but I didn't have any such problems > >> >>> > and I cannot reproduce this problem on any of my machines (Win7, > Ubuntu). > >> >>> > > >> >>> > Thanks for any help, > >> >>> > Igor Brejc > >> >>> > _______________________________________________ > >> >>> > Ironpython-users mailing list > >> >>> > Ironpython-users at python.org > >> >>> > http://mail.python.org/mailman/listinfo/ironpython-users > >> >>> > > >> >> > >> > > >> > > > > > From igor.brejc at gmail.com Tue Aug 9 08:35:29 2011 From: igor.brejc at gmail.com (Igor Brejc) Date: Tue, 9 Aug 2011 08:35:29 +0200 Subject: [Ironpython-users] AccessViolationException on Python.CreateEngine() call In-Reply-To: <6C7ABA8B4E309440B857D74348836F2E28EFE6A0@TK5EX14MBXC293.redmond.corp.microsoft.com> References: <6C7ABA8B4E309440B857D74348836F2E28EFE6A0@TK5EX14MBXC293.redmond.corp.microsoft.com> Message-ID: Hi Dino, It fails both on ipy and ipy64. Unfortunately I'm not sure executing such a debugging would really be an option, I communicate with the user via email only and it would be too much to ask of him to do these debugging steps himself (I already bothered him enough with all the "try this" stuff :) ). I could ask him of course, but it's up to him, I guess. The thing is that I cannot say this same error happens on any other machine, so until I can get some more statistics from multiple users having this same problem, I guess I'll leave it as it is. The user says that he has a lot of software installed, so it could be something unique in his configuration that's causing the problem. What I'm trying out right now is giving him an IP build with the PublishComTypes method effectively commented out (just like it is for the Silverlight build), since not having COM types exposed is not a big issue for my use case. I'll let you know if this helps or not. Thanks for your help, Igor On Tue, Aug 9, 2011 at 5:45 AM, Dino Viehland wrote: > The AV exception here indicates that something is going wrong in native > code - it sounds > like it could be a CLR bug or a crash in some other component. Does this > all repro with > just ipy.exe (so in 32-bit mode)? > > The best way to figure out what's going on is to use the native debuggers. > You can > download those here: http://www.windbg.org/ (Note if you don't want to run > the > installer on the user's machine it is possible to xcopy them from one > machine to > another). > > Given that it seems to repro w/ just running ipy64.exe you should be able > to just do > something like: > > "C:\Program Files (x86)\Debugging Tools for Windows\windbg.exe" "C:\Program > Files\IronPython 2.6\ipy64.exe" > > Once it's started you should just type "g" and enter in the command line > (or use the menus to go :)) > and it should stop when the crash is hit. From there into the command line > you can type: > > .symfix > .reload > ~*kb30 > > That will set the symbol path to Microsoft's public symbol servers, reload > symbols, and then > dump the stack trace of all the threads. It might also be useful to know > the version of the CLR > if it's crashing in mscorwks, you can do: > > lm v mmscorwks > > To get that. And finally if it is a CLR bug someone might want a crash > dump which you could get > with: > > .dump /mfh somelocation.dmp > > but just hold onto that for now - it's just in case and I don't have an > easy place to send it to. > > > > -----Original Message----- > > From: Jeff Hardy [mailto:jdhardy at gmail.com] > > Sent: Monday, August 08, 2011 12:35 PM > > To: Igor Brejc > > Cc: ironpython-users at python.org; Dino Viehland > > Subject: Re: [Ironpython-users] AccessViolationException on > > Python.CreateEngine() call > > > > Two quick answers: > > 1. It's not critical, unless you need access COM objects (like Word/Excel > > automation or something). > > 2. The exact same code is in 2.7, and I think it's still active. > > 3. I can't understand why it would break like that when examining those > > assemblies. > > > > Dino? Thoughts? > > > > - Jeff > > > > On Mon, Aug 8, 2011 at 12:27 PM, Igor Brejc > wrote: > > > Well in the end I built it from the ZIP package :). > > > Anyway, here are some results. IP always breaks down when examining > > > System.Runtime.Hosting.ActivationArguments type, on the > > > if (type.IsImport && type.IsInterface) line. This is the only > > > type the method breaks down on. > > > PublishComTypes examines the following assemblies: > > > 2011-08-08 20:18:48,971 DEBUG [1] > > > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > > > (interopassembly='mscorlib, Version=2.0.0.0, Culture=neutral, > > > PublicKeyToken=b77a5c561934e089') > > > 2011-08-08 20:18:50,490 DEBUG [1] > > > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > > > (interopassembly='System, Version=2.0.0.0, Culture=neutral, > > > PublicKeyToken=b77a5c561934e089') > > > 2011-08-08 20:18:51,451 DEBUG [1] > > > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > > > (interopassembly='mscorlib, Version=2.0.0.0, Culture=neutral, > > > PublicKeyToken=b77a5c561934e089') > > > 2011-08-08 20:18:52,695 DEBUG [1] > > > Microsoft.Scripting.Actions.TopNamespaceTracker - PublishComTypes > > > (interopassembly='System, Version=2.0.0.0, Culture=neutral, > > > PublicKeyToken=b77a5c561934e089') > > > Questions: > > > > > > Is there any reason why both assemblies are examined twice? > > > How critical is this method for running IP? In other words if I > > > comment it out, would IP be able to work normally? > > > Is there an improved version of this code in 2.7? The code comments > > > say "Since scanning all loaded assemblies can be expensive, in the > > > future, we might consider a more explicit user binder to trigger > > > scanning of COM types." > > > > > > One other strange thing: _sometimes_ (looks like randomly), the method > > > throws AccessViolationException right at the start, when > > > AssemblyTypeNames.LoadTypesFromAssembly() is called on the mscorlib > > > assembly. I haven't added any logging in that method, so I cannot say > > > where exactly this happens. I can extend the logging if necessary. > > > Pasting the method code (without my logging code): > > > public static void PublishComTypes(Assembly interopAssembly) > > > { > > > #if !SILVERLIGHT > > > lock (_comTypeCache) > > > { // We lock over the entire operation so that we can > > > publish a consistent view > > > foreach (Type type in > > > AssemblyTypeNames.LoadTypesFromAssembly(interopAssembly, false)) > > > { > > > if (type.IsImport && type.IsInterface) > > > { > > > Type existing; > > > if (_comTypeCache.TryGetValue(type.GUID, > > > out > > > existing)) > > > { > > > if > > > (!existing.IsDefined(typeof(CoClassAttribute), false)) > > > { > > > // prefer the type w/ > > > CoClassAttribute on it. Example: > > > // > > > MS.Office.Interop.Excel.Worksheet > > > // vs > > > // > > > MS.Office.Interop.Excel._Worksheet > > > // Worksheet defines all the > > > interfaces that the type supports and has CoClassAttribute. > > > // _Worksheet is just the > > > interface for the worksheet. > > > // > > > // They both have the same GUID > though. > > > _comTypeCache[type.GUID] = type; > > > } > > > } else > > > { > > > _comTypeCache[type.GUID] = type; > > > } > > > } > > > } > > > } > > > #endif > > > } > > > > > > On Mon, Aug 8, 2011 at 8:35 PM, Jeff Hardy wrote: > > >> > > >> IronPython_2_6 should be all you need. The rest is the start of 2.7 > > >> that later got moved to GitHub. > > >> > > >> - Jeff > > >> > > >> On Mon, Aug 8, 2011 at 10:50 AM, Igor Brejc > > wrote: > > >> > Hi Jeff, > > >> > One question: I'm looking at the codeplex SVN repository (since I > > >> > assume this is where 2.6.2 code still resides). What exactly do I > > >> > need to check out in order to be able to build it? IronPython_2_6 > > >> > directory or the whole repository? There seems to be a lot of stuff > > >> > in the IronPython_Main dir. > > >> > Thanks, > > >> > Igor > > >> > > > >> > On Mon, Aug 8, 2011 at 7:17 PM, Igor Brejc > > wrote: > > >> >> > > >> >> Hi Jeff, > > >> >> Thanks for responding. I'll update the SO question if/when someone > > >> >> (I guess it will probably have to be me) figures out what the > problem is. > > >> >> One update: we did some more debugging. The user installed > > >> >> IronPython > > >> >> 2.6.2 msi (.NET 2.0) and ipy64.exe breaks down when run. I guess > > >> >> this excludes any of my code or the fact that IP was used outside > of > > GAC. > > >> >> What's strange is that sometimes it's AccessViolationException and > > >> >> sometimes NullReferenceException (but the failing method is the > > same). > > >> >> So I guess I'll need to build a custom IP build with some log4net > > >> >> logging of that method, since live debugging is not a realistic > > >> >> option here. > > >> >> Thanks for your help, > > >> >> Igor > > >> >> > > >> >> On Mon, Aug 8, 2011 at 6:12 PM, Jeff Hardy > > wrote: > > >> >>> > > >> >>> Hi Igor, > > >> >>> > > >> >>> The exception is occurring somewhere in IronPython's COM interop > > >> >>> code, but I'm not exactly sure why - the code where the exception > > >> >>> occurred pulls COM types out of interop assemblies. You'll have > > >> >>> to (somehow) figure out what assembly is getting loaded in the > > >> >>> AppDomain when the exception happens, which will probably > > require > > >> >>> live debugging or a custom IronPython build. > > >> >>> > > >> >>> I'm not sure if it's a bug in IronPython, or if there's a > > >> >>> squirrelly COM object on the user's machine that causes > > >> >>> IronPython to break, but my guess is the latter. > > >> >>> > > >> >>> - Jeff > > >> >>> > > >> >>> P.S. I saw your SO question before this, but feel free to keep > > >> >>> the discussion where ever you prefer. > > >> >>> > > >> >>> On Sat, Aug 6, 2011 at 11:12 PM, Igor Brejc > > >> >>> > > >> >>> wrote: > > >> >>> > Hi, > > >> >>> > > > >> >>> > I'm developing a cartography application > > >> >>> > (http://maperitive.net) in C# and I plan to use IronPython as a > > >> >>> > scripting extension of the application. I've been successfully > > >> >>> > using IronPython for several months and most users don't have > > >> >>> > any issues with it, but a small percentage of users is having > > >> >>> > problems. > > >> >>> > > > >> >>> > With the help from one of them I managed to dig out the > > >> >>> > exception stack trace. The exception occurs while calling the > > >> >>> > Python.CreateEngine() method: > > >> >>> > > > >> >>> > System.Reflection.TargetInvocationException: Exception has been > > >> >>> > thrown by the target of an invocation. > > >> >>> > ---> System.Reflection.TargetInvocationException: > > >> >>> > Failed to load language 'IronPython 2.6.2': Attempted to read > > >> >>> > or write protected memory. This is often an indication that > > >> >>> > other memory is corrupt. > > >> >>> > ---> System.AccessViolationException: Attempted to read or > > >> >>> > ---> write > > >> >>> > protected memory. This is often an indication that other memory > > >> >>> > is corrupt. > > >> >>> > at > > >> >>> > > > >> >>> > > > Microsoft.Scripting.Actions.TopNamespaceTracker.PublishComTypes > > >> >>> > (Assembly > > >> >>> > interopAssembly) > > >> >>> > at > > >> >>> > > > >> >>> > > > IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyL > > >> >>> > oaded(Object sender, AssemblyLoadedEventArgs e) at > > >> >>> > IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext > > >> >>> > pythonContext, CodeContext context) at > > >> >>> > IronPython.Runtime.PythonContext..ctor(ScriptDomainManager > > >> >>> > manager, > > >> >>> > IDictionary`2 options) > > >> >>> > --- End of inner exception stack trace --- at > > >> >>> > > > >> >>> > > > Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageC > > >> >>> > ontext(ScriptDomainManager domainManager, Boolean& > > >> >>> > alreadyLoaded) at > > >> >>> > > > >> >>> > Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContex > > >> >>> > t(ScriptDomainManager manager, LanguageConfiguration config) at > > >> >>> > > > >> >>> > Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(Sc > > >> >>> > riptDomainManager manager, AssemblyQualifiedTypeName > > >> >>> > providerName, LanguageContext& > > >> >>> > language) > > >> >>> > at > > >> >>> > > > >> >>> > > > Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTy > > >> >>> > peName(String > > >> >>> > providerAssemblyQualifiedTypeName) > > >> >>> > at > > >> >>> > > > Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(S > > >> >>> > tring > > >> >>> > assemblyQualifiedTypeName) > > >> >>> > at IronPython.Hosting.Python.GetEngine(ScriptRuntime runtime) > > >> >>> > > > >> >>> > I couldn't find anything on Google that would be related to > this. > > >> >>> > Some > > >> >>> > info about the user's environment: > > >> >>> > > > >> >>> > - Win7 64bit > > >> >>> > - Using .NET 2.0-3.5 (not 4.0) > > >> >>> > - IronPython is not installed in GAC, the app uses assemblies > > >> >>> > locally on the disk (v 2.6.2) > > >> >>> > - The user runs the application as an ordinary user (not > > >> >>> > administrator) > > >> >>> > > > >> >>> > I use Win7 64bit myself, but I didn't have any such problems > > >> >>> > and I cannot reproduce this problem on any of my machines (Win7, > > Ubuntu). > > >> >>> > > > >> >>> > Thanks for any help, > > >> >>> > Igor Brejc > > >> >>> > _______________________________________________ > > >> >>> > Ironpython-users mailing list > > >> >>> > Ironpython-users at python.org > > >> >>> > http://mail.python.org/mailman/listinfo/ironpython-users > > >> >>> > > > >> >> > > >> > > > >> > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From igor.brejc at gmail.com Tue Aug 9 08:41:47 2011 From: igor.brejc at gmail.com (Igor Brejc) Date: Tue, 9 Aug 2011 08:41:47 +0200 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: References: Message-ID: (no company name yet) - I'm the author (Igor Brejc) Maperitive [currently free + commercial version in the future] http://maperitive.net A desktop GIS/cartography software written in C#, running on Win, Linux and Mac (using Mono). Primarily oriented towards use of free geography sources like OpenStreetMap. IronPython is currently used experimentally to extend the cartography capabilities ( http://braincrunch.tumblr.com/post/4286086882/maperitive-python-scripting-introduction). In future IronPython will be used as a toolkit for application automation, GIS processing and mapmaking. On Mon, Aug 8, 2011 at 9:40 PM, Jeff Hardy wrote: > I'd like to create a 'Who's using IronPython?' to show the IronPython > is being used and maybe help drive adoption. (See > http://www.boost.org/users/uses_open.html for an example). > > What I need: > Company Name [commercial] > Product [commercial] or Project [OSS] Name > URL > Description of product/project > > If your own product uses IronPython, or you know of one that does, > please let me know. > > - Jeff > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dblank at cs.brynmawr.edu Tue Aug 9 17:19:14 2011 From: dblank at cs.brynmawr.edu (Douglas S. Blank) Date: Tue, 09 Aug 2011 11:19:14 -0400 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: References: Message-ID: <4E414FF2.7090802@cs.brynmawr.edu> On 08/08/2011 03:40 PM, Jeff Hardy wrote: > I'd like to create a 'Who's using IronPython?' to show the IronPython > is being used and maybe help drive adoption. (See > http://www.boost.org/users/uses_open.html for an example). I thought that other people might be interested, so responding to entire list. Project: The Calico Project URL: http::/CalicoProject.org/ Description of project: The Calico Project is a framework for learning, doing, and playing with computation. At its core is an integrated editor, interactive console, and social interaction framework for exploring computer science through modern, dynamic languages. It is designed to be a simple, yet powerful, integrated development environment (IDE) for students, teachers, researchers. It runs on most any operating system, including Linux, Mac OS X, and Windows. All sources for the Calico Project are open and free. Calico allows interactive-switching between a variety of .NET languages (eg, Python, Ruby, Scheme, F#, C#, Boo, and a visual programming language) with a single keystroke. In addition, some of the languages can share data and code. For example, you can run a Scheme program (using proper tail-call optimized code) from Python. Other languages can be added by dropping a folder into the system. Libraries work with all languages, and currently include 2D graphics, robots, and a physics simulation engine. Implemented in a portable .NET manner, run by Mono, and graphics in Gtk#. Screen shots and videos: http://www.youtube.com/watch?v=GryaCuiaE3o (62 lines of code) http://www.youtube.com/watch?v=ReaSMQs-IFE (33 lines of code) http://calicoproject.org/CalicoScreenShots Free PDF/Low-cost paperback Textbook now available: http://calicoproject.org/Learning_Computing_With_Robots_Using_Calico_Python (Interested in CS education? Let me know! In use in the classroom this fall, 2011) -Doug -- Douglas S. Blank, Associate Professor and Chair Department of Computer Science, Bryn Mawr College http://cs.brynmawr.edu/~dblank (610)526-6501 From BRIAN.ASHCROFT at asu.edu Tue Aug 9 18:11:58 2011 From: BRIAN.ASHCROFT at asu.edu (Brian Ashcroft) Date: Tue, 9 Aug 2011 09:11:58 -0700 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: References: Message-ID: Project: Cell CT URL: http://www.asufoundation.org/aboutus/newsmedia/tabid/178/mid/791/newsid7 91/325/Default.aspx Description of project: I am using python as the scripting language for a CT scan projection. We are developing a high performance system for doing CT scans of individual cells and small tissues. The system needs to be easily adaptable, reliable and fast. Python allows the users to reconfigure the scripts easily, without knowledge of the multithreaded lower environment. From: ironpython-users-bounces+brian.ashcroft=asu.edu at python.org [mailto:ironpython-users-bounces+brian.ashcroft=asu.edu at python.org] On Behalf Of Igor Brejc Sent: Monday, August 08, 2011 11:42 PM To: Jeff Hardy Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? (no company name yet) - I'm the author (Igor Brejc) Maperitive [currently free + commercial version in the future] http://maperitive.net A desktop GIS/cartography software written in C#, running on Win, Linux and Mac (using Mono). Primarily oriented towards use of free geography sources like OpenStreetMap. IronPython is currently used experimentally to extend the cartography capabilities (http://braincrunch.tumblr.com/post/4286086882/maperitive-python-scripti ng-introduction). In future IronPython will be used as a toolkit for application automation, GIS processing and mapmaking. On Mon, Aug 8, 2011 at 9:40 PM, Jeff Hardy wrote: I'd like to create a 'Who's using IronPython?' to show the IronPython is being used and maybe help drive adoption. (See http://www.boost.org/users/uses_open.html for an example). What I need: Company Name [commercial] Product [commercial] or Project [OSS] Name URL Description of product/project If your own product uses IronPython, or you know of one that does, please let me know. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at mcneel.com Tue Aug 9 18:50:07 2011 From: steve at mcneel.com (Steve Baer) Date: Tue, 9 Aug 2011 09:50:07 -0700 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: References: Message-ID: Company Name: Robert McNeel & Associates (www.mcneel.com) Product: Rhinoceros URL: http://python.rhino3d.com, http://www.rhino3d.com/ , http://mac.rhino3d.com/ Description of product/project: Rhino is a 3d NURBS modeling application for designers to design and build products ranging in size from jewelry to sport stadiums. We are using IronPython as a scripting language in both our Windows and Mac (through mono) versions of Rhino. We are also allowing for IronPython scripts to run inside of our grasshopper product (http://www.grasshopper3d.com/ ) From: Brian Ashcroft Sent: Tuesday, August 09, 2011 9:11 AM To: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? Project: Cell CT URL: http://www.asufoundation.org/aboutus/newsmedia/tabid/178/mid/791/newsid791/325/Default.aspx Description of project: I am using python as the scripting language for a CT scan projection. We are developing a high performance system for doing CT scans of individual cells and small tissues. The system needs to be easily adaptable, reliable and fast. Python allows the users to reconfigure the scripts easily, without knowledge of the multithreaded lower environment. From: ironpython-users-bounces+brian.ashcroft=asu.edu at python.org [mailto:ironpython-users-bounces+brian.ashcroft=asu.edu at python.org] On Behalf Of Igor Brejc Sent: Monday, August 08, 2011 11:42 PM To: Jeff Hardy Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? (no company name yet) - I'm the author (Igor Brejc) Maperitive [currently free + commercial version in the future] http://maperitive.net A desktop GIS/cartography software written in C#, running on Win, Linux and Mac (using Mono). Primarily oriented towards use of free geography sources like OpenStreetMap. IronPython is currently used experimentally to extend the cartography capabilities (http://braincrunch.tumblr.com/post/4286086882/maperitive-python-scripting-introduction). In future IronPython will be used as a toolkit for application automation, GIS processing and mapmaking. On Mon, Aug 8, 2011 at 9:40 PM, Jeff Hardy wrote: I'd like to create a 'Who's using IronPython?' to show the IronPython is being used and maybe help drive adoption. (See http://www.boost.org/users/uses_open.html for an example). What I need: Company Name [commercial] Product [commercial] or Project [OSS] Name URL Description of product/project If your own product uses IronPython, or you know of one that does, please let me know. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users -------------------------------------------------------------------------------- _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Tue Aug 9 19:10:56 2011 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 9 Aug 2011 17:10:56 +0000 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: References: Message-ID: <6C7ABA8B4E309440B857D74348836F2E28F002DC@TK5EX14MBXC293.redmond.corp.microsoft.com> About a year ago for some reason I was going through finding people using IronPython - Here's what I came up with back then: Tooling support: SharpDevelop has added IronPython support a little over a year ago ZeusEdit is another IDE w/ IronPython support http://www.zeusedit.com/python.html JetBrain's PyCharm recently added IronPython support http://blogs.jetbrains.com/pycharm/2010/04/pycharm-build-96-115-is-available/ Eclipse has a plugin to support IronPython http://pydev.blogspot.com/2009/11/pydev-151-released.html 0xIDE converts Xbase++/Clipper apps to IronPython http://homepages.ihug.com.au/~garys/index.html Full Blown Apps: Resolver One: http://www.resolversystems.com/products/ Apps embedding us: Manifold (a geographic information system) supports scripting w/ IronPython: http://www.manifold.net/doc/scripts.htm SparkViewEngine http://sparkviewengine.com/ for ASP.NET has IronPython support (http://sparkviewengine.com/documentation/ironpython) although it looks to be at Ipy 2.0. Spotfire (an analytics platform) supports IronPython scripting (http://stn.spotfire.com/stn/Configure/ScriptingIntroduction.aspx, http://stn.spotfire.com/stn/Site/News.aspx) ComicRack (e-comic reader) has IronPython support http://comicrack.cyolito.com/downloads/ComicRack/Old-Versions/ComicRackSetup09114.exe/ and is up to date w/ 2.6 support Paint3D has IronPython support http://www.paint3d.net/ EPiServer (CMS) supports IronPython scripts https://www.coderesort.com/p/epicode/wiki/DiagnosticConsole Inference for .NET supports IronPython and IronRuby (http://inferencefordotnet.com/languages/IronPython.aspx) - this one's rather old though but it adds Python scripting to word/excel... Luminescense which is some sort of multimedia tool uses IronPython scripting http://www.luminescence-software.org/ Multiverse (MMOGS) supports IronPython http://www.bing.com/search?q=site%3Ahttp%3A%2F%2Fupdate.multiverse.net%2F+ironpython&form=QBLH&qs=n&sk=&sc=8-45 FinalBuilder (build automation) supports scripting w/ IronPython http://help.finalbuilder.com/Index.htm?scriptinginfb.htm Global System Builder (http://gsb.codeplex.com/) is a web-based IDE w/ Python support http://softwareindustrialization.com/CategoryView,category,IronPython.aspx Time Cockpit - not sure what this is - but it supports IronPython scripts in its console (http://www.timecockpit.com/help/html/a7465f29-c739-4a14-bf5b-09821133dd9a.htm) Blaze - some desktop experience app - supports IronPython scripts http://blaze-wins.sourceforge.net/index.php?page=commands Crack.Net - scripting debugging w/ IronPython http://dotnetkicks.com/wpf/Crack_NET_A_runtime_debugging_and_scripting_tool_for_NET Contact Center Express 3.0.2 - call center suite w/ IronPython plugin support: http://www.avayacce.com/Public_Whats_New_CCE302.htm xPL (home automation) mentions IronPython and says it's the "primary scripting language" http://www.xplproject.org.uk/forums/viewtopic.php?f=1&t=873 Libraries suggesting our use: AdamSoftware has blogged about scripting their app w/ IronPython: http://blogs.adamsoftware.net/Engine/ScriptingADAMwithIronPythonPart2.aspx Libraries for extending MS applications/libraries: Embedding support w/ XAML http://pybinding.codeplex.com/ SharePoint workflow support: http://ipy4spd.codeplex.com/ From: ironpython-users-bounces+dinov=microsoft.com at python.org [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Steve Baer Sent: Tuesday, August 09, 2011 9:50 AM To: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? Company Name: Robert McNeel & Associates (www.mcneel.com) Product: Rhinoceros URL: http://python.rhino3d.com, http://www.rhino3d.com/ , http://mac.rhino3d.com/ Description of product/project: Rhino is a 3d NURBS modeling application for designers to design and build products ranging in size from jewelry to sport stadiums. We are using IronPython as a scripting language in both our Windows and Mac (through mono) versions of Rhino. We are also allowing for IronPython scripts to run inside of our grasshopper product (http://www.grasshopper3d.com/ ) From: Brian Ashcroft Sent: Tuesday, August 09, 2011 9:11 AM To: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? Project: Cell CT URL: http://www.asufoundation.org/aboutus/newsmedia/tabid/178/mid/791/newsid791/325/Default.aspx Description of project: I am using python as the scripting language for a CT scan projection. We are developing a high performance system for doing CT scans of individual cells and small tissues. The system needs to be easily adaptable, reliable and fast. Python allows the users to reconfigure the scripts easily, without knowledge of the multithreaded lower environment. From: ironpython-users-bounces+brian.ashcroft=asu.edu at python.org [mailto:ironpython-users-bounces+brian.ashcroft=asu.edu at python.org] On Behalf Of Igor Brejc Sent: Monday, August 08, 2011 11:42 PM To: Jeff Hardy Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? (no company name yet) - I'm the author (Igor Brejc) Maperitive [currently free + commercial version in the future] http://maperitive.net A desktop GIS/cartography software written in C#, running on Win, Linux and Mac (using Mono). Primarily oriented towards use of free geography sources like OpenStreetMap. IronPython is currently used experimentally to extend the cartography capabilities (http://braincrunch.tumblr.com/post/4286086882/maperitive-python-scripting-introduction). In future IronPython will be used as a toolkit for application automation, GIS processing and mapmaking. On Mon, Aug 8, 2011 at 9:40 PM, Jeff Hardy > wrote: I'd like to create a 'Who's using IronPython?' to show the IronPython is being used and maybe help drive adoption. (See http://www.boost.org/users/uses_open.html for an example). What I need: Company Name [commercial] Product [commercial] or Project [OSS] Name URL Description of product/project If your own product uses IronPython, or you know of one that does, please let me know. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users ________________________________ _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumitb at microsoft.com Wed Aug 10 01:15:58 2011 From: sumitb at microsoft.com (Sumit Basu) Date: Tue, 9 Aug 2011 23:15:58 +0000 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: <6C7ABA8B4E309440B857D74348836F2E28F002DC@TK5EX14MBXC293.redmond.corp.microsoft.com> References: <6C7ABA8B4E309440B857D74348836F2E28F002DC@TK5EX14MBXC293.redmond.corp.microsoft.com> Message-ID: I'd add one more to that list - Sho (which we made public in January, but wasn't public when you made the list) :): Sho (data analysis and prototyping environment): http://research.microsoft.com/sho From: ironpython-users-bounces+sumitb=microsoft.com at python.org [mailto:ironpython-users-bounces+sumitb=microsoft.com at python.org] On Behalf Of Dino Viehland Sent: Tuesday, August 09, 2011 10:11 AM To: Steve Baer; ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? About a year ago for some reason I was going through finding people using IronPython - Here's what I came up with back then: Tooling support: SharpDevelop has added IronPython support a little over a year ago ZeusEdit is another IDE w/ IronPython support http://www.zeusedit.com/python.html JetBrain's PyCharm recently added IronPython support http://blogs.jetbrains.com/pycharm/2010/04/pycharm-build-96-115-is-available/ Eclipse has a plugin to support IronPython http://pydev.blogspot.com/2009/11/pydev-151-released.html 0xIDE converts Xbase++/Clipper apps to IronPython http://homepages.ihug.com.au/~garys/index.html Full Blown Apps: Resolver One: http://www.resolversystems.com/products/ Apps embedding us: Manifold (a geographic information system) supports scripting w/ IronPython: http://www.manifold.net/doc/scripts.htm SparkViewEngine http://sparkviewengine.com/ for ASP.NET has IronPython support (http://sparkviewengine.com/documentation/ironpython) although it looks to be at Ipy 2.0. Spotfire (an analytics platform) supports IronPython scripting (http://stn.spotfire.com/stn/Configure/ScriptingIntroduction.aspx, http://stn.spotfire.com/stn/Site/News.aspx) ComicRack (e-comic reader) has IronPython support http://comicrack.cyolito.com/downloads/ComicRack/Old-Versions/ComicRackSetup09114.exe/ and is up to date w/ 2.6 support Paint3D has IronPython support http://www.paint3d.net/ EPiServer (CMS) supports IronPython scripts https://www.coderesort.com/p/epicode/wiki/DiagnosticConsole Inference for .NET supports IronPython and IronRuby (http://inferencefordotnet.com/languages/IronPython.aspx) - this one's rather old though but it adds Python scripting to word/excel... Luminescense which is some sort of multimedia tool uses IronPython scripting http://www.luminescence-software.org/ Multiverse (MMOGS) supports IronPython http://www.bing.com/search?q=site%3Ahttp%3A%2F%2Fupdate.multiverse.net%2F+ironpython&form=QBLH&qs=n&sk=&sc=8-45 FinalBuilder (build automation) supports scripting w/ IronPython http://help.finalbuilder.com/Index.htm?scriptinginfb.htm Global System Builder (http://gsb.codeplex.com/) is a web-based IDE w/ Python support http://softwareindustrialization.com/CategoryView,category,IronPython.aspx Time Cockpit - not sure what this is - but it supports IronPython scripts in its console (http://www.timecockpit.com/help/html/a7465f29-c739-4a14-bf5b-09821133dd9a.htm) Blaze - some desktop experience app - supports IronPython scripts http://blaze-wins.sourceforge.net/index.php?page=commands Crack.Net - scripting debugging w/ IronPython http://dotnetkicks.com/wpf/Crack_NET_A_runtime_debugging_and_scripting_tool_for_NET Contact Center Express 3.0.2 - call center suite w/ IronPython plugin support: http://www.avayacce.com/Public_Whats_New_CCE302.htm xPL (home automation) mentions IronPython and says it's the "primary scripting language" http://www.xplproject.org.uk/forums/viewtopic.php?f=1&t=873 Libraries suggesting our use: AdamSoftware has blogged about scripting their app w/ IronPython: http://blogs.adamsoftware.net/Engine/ScriptingADAMwithIronPythonPart2.aspx Libraries for extending MS applications/libraries: Embedding support w/ XAML http://pybinding.codeplex.com/ SharePoint workflow support: http://ipy4spd.codeplex.com/ From: ironpython-users-bounces+dinov=microsoft.com at python.org [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Steve Baer Sent: Tuesday, August 09, 2011 9:50 AM To: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? Company Name: Robert McNeel & Associates (www.mcneel.com) Product: Rhinoceros URL: http://python.rhino3d.com, http://www.rhino3d.com/ , http://mac.rhino3d.com/ Description of product/project: Rhino is a 3d NURBS modeling application for designers to design and build products ranging in size from jewelry to sport stadiums. We are using IronPython as a scripting language in both our Windows and Mac (through mono) versions of Rhino. We are also allowing for IronPython scripts to run inside of our grasshopper product (http://www.grasshopper3d.com/ ) From: Brian Ashcroft Sent: Tuesday, August 09, 2011 9:11 AM To: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? Project: Cell CT URL: http://www.asufoundation.org/aboutus/newsmedia/tabid/178/mid/791/newsid791/325/Default.aspx Description of project: I am using python as the scripting language for a CT scan projection. We are developing a high performance system for doing CT scans of individual cells and small tissues. The system needs to be easily adaptable, reliable and fast. Python allows the users to reconfigure the scripts easily, without knowledge of the multithreaded lower environment. From: ironpython-users-bounces+brian.ashcroft=asu.edu at python.org [mailto:ironpython-users-bounces+brian.ashcroft=asu.edu at python.org] On Behalf Of Igor Brejc Sent: Monday, August 08, 2011 11:42 PM To: Jeff Hardy Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? (no company name yet) - I'm the author (Igor Brejc) Maperitive [currently free + commercial version in the future] http://maperitive.net A desktop GIS/cartography software written in C#, running on Win, Linux and Mac (using Mono). Primarily oriented towards use of free geography sources like OpenStreetMap. IronPython is currently used experimentally to extend the cartography capabilities (http://braincrunch.tumblr.com/post/4286086882/maperitive-python-scripting-introduction). In future IronPython will be used as a toolkit for application automation, GIS processing and mapmaking. On Mon, Aug 8, 2011 at 9:40 PM, Jeff Hardy > wrote: I'd like to create a 'Who's using IronPython?' to show the IronPython is being used and maybe help drive adoption. (See http://www.boost.org/users/uses_open.html for an example). What I need: Company Name [commercial] Product [commercial] or Project [OSS] Name URL Description of product/project If your own product uses IronPython, or you know of one that does, please let me know. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users ________________________________ _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From smortaz at exchange.microsoft.com Wed Aug 10 01:23:27 2011 From: smortaz at exchange.microsoft.com (Shahrokh Mortazavi) Date: Tue, 9 Aug 2011 23:23:27 +0000 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: References: <6C7ABA8B4E309440B857D74348836F2E28F002DC@TK5EX14MBXC293.redmond.corp.microsoft.com> Message-ID: Pythons Tools for Visual Studio Add-in for VS that supports IronPython (& CPython) editing, debugging, profiling, etc. http://pytools.codeplex.com MPI.Net Wrappers for MPI library: http://www.osl.iu.edu/research/mpi.net/ From: ironpython-users-bounces+smortaz=microsoft.com at python.org [mailto:ironpython-users-bounces+smortaz=microsoft.com at python.org] On Behalf Of Sumit Basu Sent: Tuesday, August 09, 2011 4:16 PM To: Dino Viehland; Steve Baer; ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? I'd add one more to that list - Sho (which we made public in January, but wasn't public when you made the list) :): Sho (data analysis and prototyping environment): http://research.microsoft.com/sho From: ironpython-users-bounces+sumitb=microsoft.com at python.org [mailto:ironpython-users-bounces+sumitb=microsoft.com at python.org] On Behalf Of Dino Viehland Sent: Tuesday, August 09, 2011 10:11 AM To: Steve Baer; ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? About a year ago for some reason I was going through finding people using IronPython - Here's what I came up with back then: Tooling support: SharpDevelop has added IronPython support a little over a year ago ZeusEdit is another IDE w/ IronPython support http://www.zeusedit.com/python.html JetBrain's PyCharm recently added IronPython support http://blogs.jetbrains.com/pycharm/2010/04/pycharm-build-96-115-is-available/ Eclipse has a plugin to support IronPython http://pydev.blogspot.com/2009/11/pydev-151-released.html 0xIDE converts Xbase++/Clipper apps to IronPython http://homepages.ihug.com.au/~garys/index.html Full Blown Apps: Resolver One: http://www.resolversystems.com/products/ Apps embedding us: Manifold (a geographic information system) supports scripting w/ IronPython: http://www.manifold.net/doc/scripts.htm SparkViewEngine http://sparkviewengine.com/ for ASP.NET has IronPython support (http://sparkviewengine.com/documentation/ironpython) although it looks to be at Ipy 2.0. Spotfire (an analytics platform) supports IronPython scripting (http://stn.spotfire.com/stn/Configure/ScriptingIntroduction.aspx, http://stn.spotfire.com/stn/Site/News.aspx) ComicRack (e-comic reader) has IronPython support http://comicrack.cyolito.com/downloads/ComicRack/Old-Versions/ComicRackSetup09114.exe/ and is up to date w/ 2.6 support Paint3D has IronPython support http://www.paint3d.net/ EPiServer (CMS) supports IronPython scripts https://www.coderesort.com/p/epicode/wiki/DiagnosticConsole Inference for .NET supports IronPython and IronRuby (http://inferencefordotnet.com/languages/IronPython.aspx) - this one's rather old though but it adds Python scripting to word/excel... Luminescense which is some sort of multimedia tool uses IronPython scripting http://www.luminescence-software.org/ Multiverse (MMOGS) supports IronPython http://www.bing.com/search?q=site%3Ahttp%3A%2F%2Fupdate.multiverse.net%2F+ironpython&form=QBLH&qs=n&sk=&sc=8-45 FinalBuilder (build automation) supports scripting w/ IronPython http://help.finalbuilder.com/Index.htm?scriptinginfb.htm Global System Builder (http://gsb.codeplex.com/) is a web-based IDE w/ Python support http://softwareindustrialization.com/CategoryView,category,IronPython.aspx Time Cockpit - not sure what this is - but it supports IronPython scripts in its console (http://www.timecockpit.com/help/html/a7465f29-c739-4a14-bf5b-09821133dd9a.htm) Blaze - some desktop experience app - supports IronPython scripts http://blaze-wins.sourceforge.net/index.php?page=commands Crack.Net - scripting debugging w/ IronPython http://dotnetkicks.com/wpf/Crack_NET_A_runtime_debugging_and_scripting_tool_for_NET Contact Center Express 3.0.2 - call center suite w/ IronPython plugin support: http://www.avayacce.com/Public_Whats_New_CCE302.htm xPL (home automation) mentions IronPython and says it's the "primary scripting language" http://www.xplproject.org.uk/forums/viewtopic.php?f=1&t=873 Libraries suggesting our use: AdamSoftware has blogged about scripting their app w/ IronPython: http://blogs.adamsoftware.net/Engine/ScriptingADAMwithIronPythonPart2.aspx Libraries for extending MS applications/libraries: Embedding support w/ XAML http://pybinding.codeplex.com/ SharePoint workflow support: http://ipy4spd.codeplex.com/ From: ironpython-users-bounces+dinov=microsoft.com at python.org [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Steve Baer Sent: Tuesday, August 09, 2011 9:50 AM To: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? Company Name: Robert McNeel & Associates (www.mcneel.com) Product: Rhinoceros URL: http://python.rhino3d.com, http://www.rhino3d.com/ , http://mac.rhino3d.com/ Description of product/project: Rhino is a 3d NURBS modeling application for designers to design and build products ranging in size from jewelry to sport stadiums. We are using IronPython as a scripting language in both our Windows and Mac (through mono) versions of Rhino. We are also allowing for IronPython scripts to run inside of our grasshopper product (http://www.grasshopper3d.com/ ) From: Brian Ashcroft Sent: Tuesday, August 09, 2011 9:11 AM To: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? Project: Cell CT URL: http://www.asufoundation.org/aboutus/newsmedia/tabid/178/mid/791/newsid791/325/Default.aspx Description of project: I am using python as the scripting language for a CT scan projection. We are developing a high performance system for doing CT scans of individual cells and small tissues. The system needs to be easily adaptable, reliable and fast. Python allows the users to reconfigure the scripts easily, without knowledge of the multithreaded lower environment. From: ironpython-users-bounces+brian.ashcroft=asu.edu at python.org [mailto:ironpython-users-bounces+brian.ashcroft=asu.edu at python.org] On Behalf Of Igor Brejc Sent: Monday, August 08, 2011 11:42 PM To: Jeff Hardy Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? (no company name yet) - I'm the author (Igor Brejc) Maperitive [currently free + commercial version in the future] http://maperitive.net A desktop GIS/cartography software written in C#, running on Win, Linux and Mac (using Mono). Primarily oriented towards use of free geography sources like OpenStreetMap. IronPython is currently used experimentally to extend the cartography capabilities (http://braincrunch.tumblr.com/post/4286086882/maperitive-python-scripting-introduction). In future IronPython will be used as a toolkit for application automation, GIS processing and mapmaking. On Mon, Aug 8, 2011 at 9:40 PM, Jeff Hardy > wrote: I'd like to create a 'Who's using IronPython?' to show the IronPython is being used and maybe help drive adoption. (See http://www.boost.org/users/uses_open.html for an example). What I need: Company Name [commercial] Product [commercial] or Project [OSS] Name URL Description of product/project If your own product uses IronPython, or you know of one that does, please let me know. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users ________________________________ _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at 3s-software.com Wed Aug 10 09:15:22 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Wed, 10 Aug 2011 09:15:22 +0200 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: References: <6C7ABA8B4E309440B857D74348836F2E28F002DC@TK5EX14MBXC293.redmond.corp.microsoft.com> Message-ID: Re-Post of http://groups.google.com/group/ironpy/browse_thread/thread/e35cd809779f9 bac?pli=1: The "Controller Development System" CoDeSys is the industry leading development tool (IDE and runtime system) for programming PLCs using the standardized IEC 61131-3 language. The current release V3.4 SP3 includes an IronPython 2.6.2 based scripting plugin that allows to automate and control established CoDeSys functionality like importing applications written in the PLCOpenXML standard, compiling and downloading applications to the device, or runtime monitoring of variables, both from within the IDE and from command line. The script writers can also utilize the power of the python standard library which is included, this allows for advanced task like sending monitored variable values via E-Mail. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From no_reply at codeplex.com Wed Aug 10 11:09:04 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 10 Aug 2011 02:09:04 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/9/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] Running IronPython on a background thread in Silverlight 2. [New issue] Running IronPython on a background thread in Silverlight ---------------------------------------------- ISSUES 1. [New issue] Running IronPython on a background thread in Silverlight http://ironpython.codeplex.com/workitem/31223 User ckarasinir has proposed the issue: "Running ironpython on a background thread in Silverlight fails with an AccessViolationException if the environment is also created in the background thread. Attached sample demonstrates the issue. Clicking on "Test 2" after a fresh start fails. But it works OK if "Test 1" is clicked first meaning the environment was created on the UI thread. The actual IronPython code that runs has some imports. The issue goes away when there are no imports in the IronPython source. Seems like an issue. I have tried "DynamicEngine.CreateRuntime();" as well without success."----------------- 2. [New issue] Running IronPython on a background thread in Silverlight http://ironpython.codeplex.com/workitem/31224 User ckarasinir has proposed the issue: "Running ironpython on a background thread in Silverlight fails with an AccessViolationException if the environment is also created in the background thread. Attached sample demonstrates the issue. Clicking on "Test 2" after a fresh start fails. But it works OK if "Test 1" is clicked first meaning the environment was created on the UI thread. The actual IronPython code that runs has some imports. The issue goes away when there are no imports in the IronPython source. Seems like an issue. I have tried "DynamicEngine.CreateRuntime();" as well without success." ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Klaus.Rohe at microsoft.com Wed Aug 10 10:06:03 2011 From: Klaus.Rohe at microsoft.com (Klaus Rohe) Date: Wed, 10 Aug 2011 08:06:03 +0000 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: <6C7ABA8B4E309440B857D74348836F2E28F002DC@TK5EX14MBXC293.redmond.corp.microsoft.com> References: <6C7ABA8B4E309440B857D74348836F2E28F002DC@TK5EX14MBXC293.redmond.corp.microsoft.com> Message-ID: <7208C2260D64374BA6A89BA44D11542E24355560@DB3EX14MBXC308.europe.corp.microsoft.com> Microsoft Sho: http://msdn.microsoft.com/en-us/devlabs/gg585581 Kind regards Klaus Von: ironpython-users-bounces+klrohe=microsoft.com at python.org [mailto:ironpython-users-bounces+klrohe=microsoft.com at python.org] Im Auftrag von Dino Viehland Gesendet: Dienstag, 9. August 2011 19:11 An: Steve Baer; ironpython-users at python.org Betreff: Re: [Ironpython-users] Who's using IronPython? About a year ago for some reason I was going through finding people using IronPython - Here's what I came up with back then: Tooling support: SharpDevelop has added IronPython support a little over a year ago ZeusEdit is another IDE w/ IronPython support http://www.zeusedit.com/python.html JetBrain's PyCharm recently added IronPython support http://blogs.jetbrains.com/pycharm/2010/04/pycharm-build-96-115-is-available/ Eclipse has a plugin to support IronPython http://pydev.blogspot.com/2009/11/pydev-151-released.html 0xIDE converts Xbase++/Clipper apps to IronPython http://homepages.ihug.com.au/~garys/index.html Full Blown Apps: Resolver One: http://www.resolversystems.com/products/ Apps embedding us: Manifold (a geographic information system) supports scripting w/ IronPython: http://www.manifold.net/doc/scripts.htm SparkViewEngine http://sparkviewengine.com/ for ASP.NET has IronPython support (http://sparkviewengine.com/documentation/ironpython) although it looks to be at Ipy 2.0. Spotfire (an analytics platform) supports IronPython scripting (http://stn.spotfire.com/stn/Configure/ScriptingIntroduction.aspx, http://stn.spotfire.com/stn/Site/News.aspx) ComicRack (e-comic reader) has IronPython support http://comicrack.cyolito.com/downloads/ComicRack/Old-Versions/ComicRackSetup09114.exe/ and is up to date w/ 2.6 support Paint3D has IronPython support http://www.paint3d.net/ EPiServer (CMS) supports IronPython scripts https://www.coderesort.com/p/epicode/wiki/DiagnosticConsole Inference for .NET supports IronPython and IronRuby (http://inferencefordotnet.com/languages/IronPython.aspx) - this one's rather old though but it adds Python scripting to word/excel... Luminescense which is some sort of multimedia tool uses IronPython scripting http://www.luminescence-software.org/ Multiverse (MMOGS) supports IronPython http://www.bing.com/search?q=site%3Ahttp%3A%2F%2Fupdate.multiverse.net%2F+ironpython&form=QBLH&qs=n&sk=&sc=8-45 FinalBuilder (build automation) supports scripting w/ IronPython http://help.finalbuilder.com/Index.htm?scriptinginfb.htm Global System Builder (http://gsb.codeplex.com/) is a web-based IDE w/ Python support http://softwareindustrialization.com/CategoryView,category,IronPython.aspx Time Cockpit - not sure what this is - but it supports IronPython scripts in its console (http://www.timecockpit.com/help/html/a7465f29-c739-4a14-bf5b-09821133dd9a.htm) Blaze - some desktop experience app - supports IronPython scripts http://blaze-wins.sourceforge.net/index.php?page=commands Crack.Net - scripting debugging w/ IronPython http://dotnetkicks.com/wpf/Crack_NET_A_runtime_debugging_and_scripting_tool_for_NET Contact Center Express 3.0.2 - call center suite w/ IronPython plugin support: http://www.avayacce.com/Public_Whats_New_CCE302.htm xPL (home automation) mentions IronPython and says it's the "primary scripting language" http://www.xplproject.org.uk/forums/viewtopic.php?f=1&t=873 Libraries suggesting our use: AdamSoftware has blogged about scripting their app w/ IronPython: http://blogs.adamsoftware.net/Engine/ScriptingADAMwithIronPythonPart2.aspx Libraries for extending MS applications/libraries: Embedding support w/ XAML http://pybinding.codeplex.com/ SharePoint workflow support: http://ipy4spd.codeplex.com/ From: ironpython-users-bounces+dinov=microsoft.com at python.org [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Steve Baer Sent: Tuesday, August 09, 2011 9:50 AM To: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? Company Name: Robert McNeel & Associates (www.mcneel.com) Product: Rhinoceros URL: http://python.rhino3d.com, http://www.rhino3d.com/ , http://mac.rhino3d.com/ Description of product/project: Rhino is a 3d NURBS modeling application for designers to design and build products ranging in size from jewelry to sport stadiums. We are using IronPython as a scripting language in both our Windows and Mac (through mono) versions of Rhino. We are also allowing for IronPython scripts to run inside of our grasshopper product (http://www.grasshopper3d.com/ ) From: Brian Ashcroft Sent: Tuesday, August 09, 2011 9:11 AM To: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? Project: Cell CT URL: http://www.asufoundation.org/aboutus/newsmedia/tabid/178/mid/791/newsid791/325/Default.aspx Description of project: I am using python as the scripting language for a CT scan projection. We are developing a high performance system for doing CT scans of individual cells and small tissues. The system needs to be easily adaptable, reliable and fast. Python allows the users to reconfigure the scripts easily, without knowledge of the multithreaded lower environment. From: ironpython-users-bounces+brian.ashcroft=asu.edu at python.org [mailto:ironpython-users-bounces+brian.ashcroft=asu.edu at python.org] On Behalf Of Igor Brejc Sent: Monday, August 08, 2011 11:42 PM To: Jeff Hardy Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? (no company name yet) - I'm the author (Igor Brejc) Maperitive [currently free + commercial version in the future] http://maperitive.net A desktop GIS/cartography software written in C#, running on Win, Linux and Mac (using Mono). Primarily oriented towards use of free geography sources like OpenStreetMap. IronPython is currently used experimentally to extend the cartography capabilities (http://braincrunch.tumblr.com/post/4286086882/maperitive-python-scripting-introduction). In future IronPython will be used as a toolkit for application automation, GIS processing and mapmaking. On Mon, Aug 8, 2011 at 9:40 PM, Jeff Hardy > wrote: I'd like to create a 'Who's using IronPython?' to show the IronPython is being used and maybe help drive adoption. (See http://www.boost.org/users/uses_open.html for an example). What I need: Company Name [commercial] Product [commercial] or Project [OSS] Name URL Description of product/project If your own product uses IronPython, or you know of one that does, please let me know. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users ________________________________ _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From maillist.netky at gmail.com Thu Aug 11 03:54:27 2011 From: maillist.netky at gmail.com (netky) Date: Thu, 11 Aug 2011 09:54:27 +0800 Subject: [Ironpython-users] New Mailing List is now available In-Reply-To: References: Message-ID: subscribed -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at 3s-software.com Thu Aug 11 14:48:33 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Thu, 11 Aug 2011 14:48:33 +0200 Subject: [Ironpython-users] Problem during "from mymodule import *" Message-ID: Hi, Von: Markus Schaber > The module in question is a module created with > "Python.CreateModule(engine, "mymodule"). A python file "utils.py" > imported by the main executed file now performs "from mymodule import *" > and gets the following exception: > > System.ArgumentException was caught > Message=An item with the same key has already been added. > Source=mscorlib > StackTrace: > at System.ThrowHelper.ThrowArgumentException(ExceptionResource > resource) [...] > > At the moment, I have no Idea how to solve this. > This is run with IronPython 2.7.1 beta 2 (Version 2.7.0.40) in .NET 4.0, and the same thing worked fine when running with IronPython 2.6.2 in .NET 2.0. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From m.schaber at 3s-software.com Thu Aug 11 14:43:25 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Thu, 11 Aug 2011 14:43:25 +0200 Subject: [Ironpython-users] Problem during "from mymodule import *" Message-ID: Hi, The module in question is a module created with "Python.CreateModule(engine, "mymodule"). A python file "utils.py" imported by the main executed file now performs "from mymodule import *" and gets the following exception: System.ArgumentException was caught Message=An item with the same key has already been added. Source=mscorlib StackTrace: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at Microsoft.Scripting.Debugging.DebuggableLambdaBuilder.LayOutVariables(Di ctionary`2 strongBoxedLocals, Dictionary`2 parameters) at Microsoft.Scripting.Debugging.DebuggableLambdaBuilder.TransformLambda(La mbdaExpression lambda) at Microsoft.Scripting.Debugging.DebuggableLambdaBuilder.Transform(LambdaEx pression lambda) at Microsoft.Scripting.Debugging.CompilerServices.DebugContext.TransformLam bda(LambdaExpression lambda, DebugLambdaInfo lambdaInfo) at IronPython.Runtime.FunctionCode.<>c__DisplayClass1a.b__19(Expression`1 x) at IronPython.Compiler.GeneratorRewriter.Reduce(Boolean shouldInterpret, Boolean emitDebugSymbols, Int32 compilationThreshold, IList`1 parameters, Func`2 bodyConverter) at IronPython.Runtime.FunctionCode.GetGeneratorOrNormalLambdaTracing(Python Context context) at IronPython.Runtime.FunctionCode.UpdateDelegate(PythonContext context, Boolean forceCreation) at IronPython.Runtime.FunctionCode.LazyCompileFirstTarget(PythonFunction function) at IronPython.Compiler.PythonCallTargets.OriginalCallTarget4(PythonFunction function, Object arg0, Object arg1, Object arg2, Object arg3) at IronPython.Runtime.PythonFunction.FunctionCaller`1.Default3Call1(CallSit e site, CodeContext context, Object func, T0 arg0) at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at ensure_tempdir$74(Closure , PythonFunction ) at IronPython.Compiler.PythonCallTargets.OriginalCallTarget0(PythonFunction function) at IronPython.Runtime.PythonFunction.FunctionCaller.Call0(CallSite site, CodeContext context, Object func) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFram e frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) at IronPython.Compiler.PythonScriptCode.Run(Scope scope) at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope) at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink) at Microsoft.Scripting.SourceUnit.Execute(Scope scope) at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope) at _3S.CoDeSys.ScriptEngine.ScriptExecutor.ExecuteInternal(ScriptSource source, IList`1 searchPath) in D:\AutomationPlatform\Implementation\Sources and Projects\ScriptEngine\ScriptExecutor.cs:line 189 InnerException: At the moment, I have no Idea how to solve this. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From m.schaber at 3s-software.com Fri Aug 12 17:01:48 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Fri, 12 Aug 2011 17:01:48 +0200 Subject: [Ironpython-users] Problem during "from mymodule import *" Message-ID: Hi, Von: ironpython-users-bounces+m.schaber=3s-software.com at python.org > Von: Markus Schaber > > The module in question is a module created with > > "Python.CreateModule(engine, "mymodule"). A python file "utils.py" > > imported by the main executed file now performs "from mymodule import > *" > > and gets the following exception: > > > > System.ArgumentException was caught > > Message=An item with the same key has already been added. > > Source=mscorlib > > StackTrace: > > at System.ThrowHelper.ThrowArgumentException(ExceptionResource > > resource) > [...] > > > > At the moment, I have no Idea how to solve this. > > > > This is run with IronPython 2.7.1 beta 2 (Version 2.7.0.40) in .NET 4.0, > and the same thing worked fine when running with IronPython 2.6.2 in .NET > 2.0. I tried to reproduce it in a small test case, but failed - the Exception did not appear there. One interesting data point may be that this exception seems not to appear everytime, and it only appears when I do not use Python.SetTrace to set a C# implemented tracebackDelegate. Maybe the tracing is broken in 2.7? Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From rjnienaber at gmail.com Sun Aug 14 10:28:20 2011 From: rjnienaber at gmail.com (Richard Nienaber) Date: Sun, 14 Aug 2011 09:28:20 +0100 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: References: Message-ID: (Excuse me if some of these have already been covered) Company Name: Thinkbox Software Product: Deadline (source ) URL: http://www.thinkboxsoftware.com/deadline/ Description of product/project: Deadline is a hassle-free administration and rendering toolkit for Windows, Linux, and Mac OSX based render farms. It offers a world of flexibility and a wide-range of management options for render farms of all sizes, and supports over 40 different rendering packages out of the box. Project: Silvershell URL: http://code.google.com/p/silvershell/ Description of product/project: Silvershell is an interactive Python interpreter (for Python 2.5 as it is based on IronPython 2) with two clients (implemented in pure Python). It runs in the browser with Silverlight 2 or on the desktop with a WPF (Windows Presentation Foundation - which means it won't run on Mono) User Interface. Company Name: ArenaNet Product: GuildWars ? (source ) URL: http://www.arena.net/ Description of product/project: (I think IronPython is used on their GuildWars game but I'm not sure) Richard On Mon, Aug 8, 2011 at 8:40 PM, Jeff Hardy wrote: > I'd like to create a 'Who's using IronPython?' to show the IronPython > is being used and maybe help drive adoption. (See > http://www.boost.org/users/uses_open.html for an example). > > What I need: > Company Name [commercial] > Product [commercial] or Project [OSS] Name > URL > Description of product/project > > If your own product uses IronPython, or you know of one that does, > please let me know. > > - Jeff > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From msr at schabi.de Sat Aug 13 20:07:29 2011 From: msr at schabi.de (MarkusSchaber) Date: Sat, 13 Aug 2011 11:07:29 -0700 (PDT) Subject: [Ironpython-users] Steps to reproduce crash (Was: Problem during "from mymodule import *") In-Reply-To: References: Message-ID: <1d975628-22bf-4665-8958-e5179484078c@z7g2000vbp.googlegroups.com> Hi, I finally managed to nail the problem down to a small self-contained example. (It seems not related to the from...import * statement as my first thought was. It seems the tracing hooks which pointed me to the source were not printing out the statement actually causing the crash.) Put the following two files into an empty directory with write permission. Running test2.py with IronPython 2.6 or cPython 2.7 creates the Temp directory as expected, running it with IronPython 2.7.1 beta 2 crashes. -- test2.py -- # test script... import sys, io, utils def trace_handler(a,b,c): return trace_handler; sys.settrace(trace_handler) utils.ensure_tempdir() utils.ensure_tempdir() print "script finished." -- -- -- -- utils.py -- # Utilities for other test scripts. import os, shutil DIR = os.path.dirname(__file__) def makepath(otherpath): return os.path.join(DIR, otherpath) TEMP = makepath("Temp") def ensure_tempdir(): if not os.path.isdir(TEMP): os.makedirs(TEMP) else: for root, dirs, files in os.walk(TEMP): for f in files: try: os.remove(os.path.join(root, f)) except: pass for d in dirs: shutil.rmtree(os.path.join(root, d), ignore_errors=True) -- -- -- HTH, Markus From danielj at arena.net Mon Aug 15 18:31:34 2011 From: danielj at arena.net (Daniel Jennings) Date: Mon, 15 Aug 2011 09:31:34 -0700 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: References: Message-ID: <6D931A4CF4139540BF6621A1E97D49370160BA5BBAEE@wallemail.arena.ncwest.ncsoft.corp> Let me update the ArenaNet one for y'all :) Company Name: ArenaNet Product: Guild Wars 2 Content Editor (Duo) URL: http://www.arena.net/ Description of product/project: Duo is the in-house content editor used for designing Guild Wars 2 (http://www.guildwars2.com/). We use IronPython to extend the functionality of the content editor without the need to change the core framework, as well as to allow us to adapt to changing requirements/specifications from other teams with minimal effort/interruption. Finally, the end-user can use the in-tool script editor to run IronPython scripts over the content (to both read and write to the model) using an editor derived from ScintillaNET. From: ironpython-users-bounces+danielj=arena.net at python.org [mailto:ironpython-users-bounces+danielj=arena.net at python.org] On Behalf Of Richard Nienaber Sent: Sunday, August 14, 2011 1:28 AM To: Jeff Hardy Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] Who's using IronPython? (Excuse me if some of these have already been covered) Company Name: Thinkbox Software Product: Deadline (source) URL: http://www.thinkboxsoftware.com/deadline/ Description of product/project: Deadline is a hassle-free administration and rendering toolkit for Windows, Linux, and Mac OSX based render farms. It offers a world of flexibility and a wide-range of management options for render farms of all sizes, and supports over 40 different rendering packages out of the box. Project: Silvershell URL: http://code.google.com/p/silvershell/ Description of product/project: Silvershell is an interactive Python interpreter (for Python 2.5 as it is based on IronPython 2) with two clients (implemented in pure Python). It runs in the browser with Silverlight 2 or on the desktop with a WPF (Windows Presentation Foundation - which means it won't run on Mono) User Interface. Company Name: ArenaNet Product: GuildWars ? (source) URL: http://www.arena.net/ Description of product/project: (I think IronPython is used on their GuildWars game but I'm not sure) Richard On Mon, Aug 8, 2011 at 8:40 PM, Jeff Hardy > wrote: I'd like to create a 'Who's using IronPython?' to show the IronPython is being used and maybe help drive adoption. (See http://www.boost.org/users/uses_open.html for an example). What I need: Company Name [commercial] Product [commercial] or Project [OSS] Name URL Description of product/project If your own product uses IronPython, or you know of one that does, please let me know. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at windward.net Tue Aug 16 00:01:14 2011 From: david at windward.net (David Thielen) Date: Mon, 15 Aug 2011 16:01:14 -0600 Subject: [Ironpython-users] Need an IronPython expert for a small paid contract job - for a cool purpose Message-ID: I sent this once but it appears to have not gone out, so I'm resending. Apologies if this comes in twice. Hi all; First off, I'm guessing that one of these two lists is the active list for IronPython - it was hard to figure out via Google. If I'm in the wrong place, please let me know. I need to hire someone to create an IronPython project that is a library.dll that is called from a C# app and it implements a C# interface. The implementation I already have completed in C#, C++ (managed), VB, and J#. It's about 40 lines of code so the actual code should be trivial. And if you've done C# calling IronPython and IronPython implementing an interface, this should be easy. This is for a code war we're sponsoring for students at the University of Colorado. A significant number are most familiar with Python and so I want to add Python as an option for their entry. I'm happy to pay for your time on this. If you can do this, please reply ASAP as we need to get this completed this week. Thanks - dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at 3s-software.com Tue Aug 16 08:01:19 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Tue, 16 Aug 2011 08:01:19 +0200 Subject: [Ironpython-users] Who's using IronPython? In-Reply-To: References: Message-ID: Hi, On Mon, Aug 8, 2011 at 8:40 PM, Jeff Hardy wrote: > I'd like to create a 'Who's using IronPython?' to show the IronPython > is being used and maybe help drive adoption. (See > http://www.boost.org/users/uses_open.html for an example). > What I need: > Company Name [commercial] 3S-Smart Software Solutions GmbH > Product [commercial] or Project [OSS] Name CoDeSys Developkment System > URL http://www.3s-software.com/index.shtml?en_CoDeSysV3_en > Description of product/project The "Controller Development System" CoDeSys is the industry leading development tool (IDE and runtime system) for programming PLCs using the standardized IEC 61131-3 language. The current release V3.4 SP4 includes an IronPython 2.6.2 based scripting plugin that allows to automate and control established CoDeSys functionality like importing applications written in the PLCOpenXML standard, compiling and downloading applications to the device, or runtime monitoring of variables, both from within the IDE and from command line. The script writers can also utilize the power of the included python standard library to implement advanced tasks like sending monitored variable values via E-Mail. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From slide.o.mix at gmail.com Tue Aug 16 18:17:58 2011 From: slide.o.mix at gmail.com (Slide) Date: Tue, 16 Aug 2011 09:17:58 -0700 Subject: [Ironpython-users] Mako Message-ID: I found this discussion from a few years ago and was wondering if anyone knew if everything needed for Mako to work with IronPython was integrated now https://groups.google.com/d/topic/mako-discuss/SGYx6rjb6OY/discussion Thanks, slide -- slide-o-blog http://slide-o-blog.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at windward.net Mon Aug 15 22:27:41 2011 From: david at windward.net (David Thielen) Date: Mon, 15 Aug 2011 14:27:41 -0600 Subject: [Ironpython-users] Need an IronPython expert for a small paid contract job - for a cool purpose Message-ID: Hi all; First off, I'm guessing that one of these two lists is the active list for IronPython - it was hard to figure out via Google. If I'm in the wrong place, please let me know. I need to hire someone to create an IronPython project that is a library.dll that is called from a C# app and it implements a C# interface. The implementation I already have completed in C#, C++ (managed), VB, and J#. It's about 40 lines of code so the actual code should be trivial. And if you've done C# calling IronPython and IronPython implementing an interface, this should be easy. This is for a code war we're sponsoring for students at the University of Colorado. A significant number are most familiar with Python and so I want to add Python as an option for their entry. I'm happy to pay for your time on this. If you can do this, please reply ASAP as we need to get this completed this week. Thanks - dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From sakesun at gmail.com Tue Aug 16 06:47:34 2011 From: sakesun at gmail.com (sakesun roykiatisak) Date: Mon, 15 Aug 2011 21:47:34 -0700 (PDT) Subject: [Ironpython-users] =?utf-8?b?4Lit4LmJ4Liy4LiH4LiW4Li24LiHOiBSZTog?= =?utf-8?q?_Need_an_IronPython_expert_for_a_small_paid_contract_job_-_for_?= =?utf-8?q?a_cool_purpose?= In-Reply-To: References: Message-ID: <31785335.3874.1313470054702.JavaMail.geo-discussion-forums@prdr3> Let me see if I could help. sakesun at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at 3s-software.com Wed Aug 17 12:17:51 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Wed, 17 Aug 2011 12:17:51 +0200 Subject: [Ironpython-users] Need an IronPython expert for a small paid contract job - for a cool purpose Message-ID: Hi, David, Von: David Thielen > I need to hire someone to create an IronPython project that is a library.dll that is called from a C# app and it implements a C# interface. The implementation I already have completed in C#, C++ (managed), VB, and J#. It's about 40 lines of code so the actual code should be trivial. And if you've done C# calling IronPython and IronPython implementing an interface, this should be easy. Currently, it is not possible to write such a library itsself in Ironpython. But it is possible to create a "glue" library in C# which runs an IronPython script which provides that class. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From sven.joerns at comsulting.de Thu Aug 18 11:38:01 2011 From: sven.joerns at comsulting.de (=?ISO-8859-15?Q?Sven_J=F6rns?=) Date: Thu, 18 Aug 2011 11:38:01 +0200 Subject: [Ironpython-users] IronPython 3 in new mono 2.10.4 Message-ID: <4E4CDD79.8010904@comsulting.de> Hi, today I installed the new version of mono 2.10.4 (http://www.mono-project.com/Release_Notes_Mono_2.10.4), because packaging problems on MacOS X should be fixed. But in this version there is "IronPython 3.0 (3.0.0.0) on .NET 4.0.30319.1" Is this the official new stable version of IronPython? - Sven -- PS: 2nd try with right email address From jschementi at gmail.com Thu Aug 18 14:36:54 2011 From: jschementi at gmail.com (Jimmy Schementi) Date: Thu, 18 Aug 2011 08:36:54 -0400 Subject: [Ironpython-users] IronPython 3 in new mono 2.10.4 In-Reply-To: <4E4CDD79.8010904@comsulting.de> References: <4E4CDD79.8010904@comsulting.de> Message-ID: <7569EC5F-926B-43D0-A330-3DABDFD885B7@gmail.com> All IronPython releases can be found on http://ironpython.codeplex.com, but no, IronPython 3.0 has not been released yet. I believe they just took the latest sources from http://github.com/IronLanguages/main, which has the 3.0.0.0 version. Not sure what actual commit they took, you'd have to ask the Mono team. ~Jimmy On Aug 18, 2011, at 5:38 AM, Sven J?rns wrote: > Hi, > > today I installed the new version of mono 2.10.4 > (http://www.mono-project.com/Release_Notes_Mono_2.10.4), because > packaging problems on MacOS X should be fixed. > But in this version there is "IronPython 3.0 (3.0.0.0) on .NET 4.0.30319.1" > Is this the official new stable version of IronPython? > > > - Sven > > > -- > > PS: 2nd try with right email address > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users From sakesun at gmail.com Wed Aug 17 12:41:12 2011 From: sakesun at gmail.com (sakesun roykiatisak) Date: Wed, 17 Aug 2011 03:41:12 -0700 (PDT) Subject: [Ironpython-users] =?utf-8?b?4Lit4LmJ4Liy4LiH4LiW4Li24LiHOiBSZTog?= =?utf-8?q?_Need_an_IronPython_expert_for_a_small_paid_contract_job_-_for_?= =?utf-8?q?a_cool_purpose?= In-Reply-To: References: Message-ID: <6746486.588.1313577672420.JavaMail.geo-discussion-forums@prgb5> clr.CompileModules" can be used to produce ".dll" from ".py" -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at 3s-software.com Fri Aug 19 12:37:28 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Fri, 19 Aug 2011 12:37:28 +0200 Subject: [Ironpython-users] =?utf-8?b?4Lit4LmJ4Liy4LiH4LiW4Li24LiHOiBSZTog?= =?utf-8?q?_Need_an_IronPython_expert_for_a_small_paid_contract_job?= =?utf-8?q?_-_for_a_cool_purpose?= In-Reply-To: <6746486.588.1313577672420.JavaMail.geo-discussion-forums@prgb5> References: <6746486.588.1313577672420.JavaMail.geo-discussion-forums@prgb5> Message-ID: Hi, Von: sakesun roykiatisak > clr.CompileModules" can be used to produce ".dll" from ".py" As far as I know, this gives a "compiled module dll" which is not useable as a generic .NET dll. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From abubakarm at gmail.com Fri Aug 19 12:47:49 2011 From: abubakarm at gmail.com (Abubakar) Date: Fri, 19 Aug 2011 19:47:49 +0900 Subject: [Ironpython-users] =?tis-620?b?zenSp7bWpzogUmU6IE5lZWQgYW4gSXJv?= =?tis-620?q?nPython_expert_for_a_small_paid_contract_job_-_for_a_c?= =?tis-620?q?ool_purpose?= In-Reply-To: References: <6746486.588.1313577672420.JavaMail.geo-discussion-forums@prgb5> Message-ID: what is a compiled module dll? Dont we have just one kind of dlls in .net :o ? On Fri, Aug 19, 2011 at 7:37 PM, Markus Schaber wrote: > Hi, > > Von: sakesun roykiatisak > > > clr.CompileModules" can be used to produce ".dll" from ".py" > > As far as I know, this gives a "compiled module dll" which is not useable > as a generic .NET dll. > > > > Best regards > > Markus Schaber > > ___________________________ > We software Automation. > > 3S-Smart Software Solutions GmbH > Markus Schaber | Developer > Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax > +49-831-54031-50 > > Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com > CoDeSys internet forum: http://forum.3s-software.com > Download CoDeSys sample projects: > http://www.3s-software.com/index.shtml?sample_projects > > Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade > register: Kempten HRB 6186 | Tax ID No.: DE 167014915 > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at 3s-software.com Fri Aug 19 13:01:06 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Fri, 19 Aug 2011 13:01:06 +0200 Subject: [Ironpython-users] =?utf-8?b?4Lit4LmJ4Liy4LiH4LiW4Li24LiHOiBSZTog?= =?utf-8?q?Need_an_IronPython_expert_for_a_small_paid_contract_job_?= =?utf-8?q?-_for_a_cool_purpose?= In-Reply-To: References: <6746486.588.1313577672420.JavaMail.geo-discussion-forums@prgb5> Message-ID: Hi, Von: Abubakar [mailto:abubakarm at gmail.com] > what is a compiled module dll? Dont we have just one kind of dlls in .net :o ? According to http://ironpython.codeplex.com/wikipage?title=Samples: -- snip -- While the assemblies produced by the IronPython Hosting APIs are true .NET assemblies, the dynamic nature of the Python language makes it difficult to use these from other .NET languages. In short, this means that attempting to import Python types into other .NET languages such as C# is not recommended. -- snap -- Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org http://mail.python.org/mailman/listinfo/ironpython-users From sj at comsulting.de Thu Aug 18 11:35:50 2011 From: sj at comsulting.de (=?ISO-8859-15?Q?Sven_J=F6rns?=) Date: Thu, 18 Aug 2011 11:35:50 +0200 Subject: [Ironpython-users] IronPython 3 in new mono 2.10.4 Message-ID: <4E4CDCF6.4030006@comsulting.de> Hi, today I installed the new version of mono 2.10.4 (http://www.mono-project.com/Release_Notes_Mono_2.10.4), because packaging problems on MacOS X should be fixed. But in this version there is "IronPython 3.0 (3.0.0.0) on .NET 4.0.30319.1" Is this the official new stable version of IronPython? - Sven From slide.o.mix at gmail.com Fri Aug 19 22:15:08 2011 From: slide.o.mix at gmail.com (Slide) Date: Fri, 19 Aug 2011 13:15:08 -0700 Subject: [Ironpython-users] IronPython 3 in new mono 2.10.4 In-Reply-To: <4E4CDCF6.4030006@comsulting.de> References: <4E4CDCF6.4030006@comsulting.de> Message-ID: This same question was asked a couple days ago. The Mono team grabbed a tag from git and it had been updated to version 3.0.0. It's just the based on the tag the Mono team grabbed, not an official release from the IronPython project. Thanks, slide On Thu, Aug 18, 2011 at 2:35 AM, Sven J?rns wrote: > Hi, > > today I installed the new version of mono 2.10.4 > (http://www.mono-project.com/Release_Notes_Mono_2.10.4), because > packaging problems on MacOS X should be fixed. > But in this version there is "IronPython 3.0 (3.0.0.0) on .NET 4.0.30319.1" > Is this the official new stable version of IronPython? > > > - Sven > > > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users > -- slide-o-blog http://slide-o-blog.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From sakesun at gmail.com Sat Aug 20 17:41:00 2011 From: sakesun at gmail.com (sakesun roykiatisak) Date: Sat, 20 Aug 2011 08:41:00 -0700 (PDT) Subject: [Ironpython-users] =?utf-8?b?4Lit4LmJ4Liy4LiH4LiW4Li24LiHOiBSZTog?= =?utf-8?b?IOC4reC5ieC4suC4h+C4luC4tuC4hzogUmU6ICBOZWVkIGFuIElyb25QeXRo?= =?utf-8?q?on_expert_for_a_small_paid_contract_job_-_for_a_cool_purpose?= In-Reply-To: References: <6746486.588.1313577672420.JavaMail.geo-discussion-forums@prgb5> Message-ID: <26906139.1389.1313854860762.JavaMail.geo-discussion-forums@prec11> Possibly, some registration trick might enable native .NET to find and use IronPython implementation. :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Aug 23 01:23:24 2011 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 22 Aug 2011 17:23:24 -0600 Subject: [Ironpython-users] IronPython 3 in new mono 2.10.4 In-Reply-To: References: <4E4CDCF6.4030006@comsulting.de> Message-ID: On Fri, Aug 19, 2011 at 2:15 PM, Slide wrote: > This same question was asked a couple days ago. The Mono team grabbed a tag > from git and it had been updated to version 3.0.0. It's just the based on > the tag the Mono team grabbed, not an official release from the IronPython > project. Yeah, the Mono team probably pulled from master, which is correct for IronRuby but not for IronPython. IronPython should come from the ipy-2.7-maint branch. That said, other than the version numbers, the branches should be almost identical. - Jeff From no_reply at codeplex.com Wed Aug 24 09:49:04 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 24 Aug 2011 00:49:04 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/23/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] wpf module in Silverlight ---------------------------------------------- ISSUES 1. [New comment] wpf module in Silverlight http://ironpython.codeplex.com/workitem/31204 User Quirpie has commented on the issue: "This is fixed now. And is not a problem with IronPython or DLR. " ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernd.viehmann at googlemail.com Wed Aug 24 10:05:17 2011 From: bernd.viehmann at googlemail.com (Bernd Viehmann) Date: Wed, 24 Aug 2011 10:05:17 +0200 Subject: [Ironpython-users] ASP.NET base class question: Inherit from ScriptPage? Message-ID: <4E54B0BD.60801@googlemail.com> Hello, is it possible to create an extended version of ScriptPage? In C# I normally extend System.Web.UI.Page to put my helper-tools on the page. As far as I know ScriptPage is the root-class for IronPython Webforms. I would like to do the same with my ipy-ASP.NET application. So my questions are: Can I extend ScriptPage by an ironpython-class like class betterScriptPage(ScriptPage): ........ How can I use my class as source for the web forms I create? What configuration must be changed? Kind regards and thank Bernd From bernd.viehmann at googlemail.com Wed Aug 24 10:12:16 2011 From: bernd.viehmann at googlemail.com (Bernd Viehmann) Date: Wed, 24 Aug 2011 10:12:16 +0200 Subject: [Ironpython-users] Did somebody has some tips and tricks for building a facebook-app in ASP.NET with iron-python Message-ID: <4E54B260.4010902@googlemail.com> Hello again. I have to create a simple facebook-app and want to use ironpython for it. Are there any suggestions what modules or libs would be the best way of doing that in ipy. I have googled to get some answers before but i am confused by the big amount of solutions. There are solutions made in .NET and also some stuff developed as python-module. My question is basically: What are your suggestions? Thank and kind regards Bernd From m.schaber at 3s-software.com Wed Aug 24 13:40:34 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Wed, 24 Aug 2011 13:40:34 +0200 Subject: [Ironpython-users] ValueError in IronPython 2.7.1 beta Message-ID: Hi, I still have the problem with the ValueError in IronPython 2.7.1 beta. I now managed to cut down the test case to a single file with just a few lines, and I can also reproduce it when executing it in the ipy.exe interactive interpreter: -- snip -- import os, sys def trace_handler(a,b,c): return trace_handler sys.settrace(trace_handler) for root, dirs, files in os.walk("."): pass -- snap -- Traceback (most recent call last): File "test.py", line 8, in ValueError: Ein Element mit dem gleichen Schl?ssel wurde bereits hinzugef?gt. Any ideas? Or is everyone out in summer holidays? :-) Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From dinov at microsoft.com Wed Aug 24 19:16:10 2011 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 24 Aug 2011 17:16:10 +0000 Subject: [Ironpython-users] ValueError in IronPython 2.7.1 beta In-Reply-To: References: Message-ID: <6C7ABA8B4E309440B857D74348836F2E28F33239@TK5EX14MBXC292.redmond.corp.microsoft.com> Repros for me too - The exception is coming from here: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Microsoft.Scripting.Debugging.DebuggableLambdaBuilder.LayOutVariables(Dictionary`2 strongBoxedLocals, Dictionary`2 parameters) at Microsoft.Scripting.Debugging.DebuggableLambdaBuilder.TransformLambda(LambdaExpression lambda) at Microsoft.Scripting.Debugging.DebuggableLambdaBuilder.Transform(LambdaExpression lambda) at Microsoft.Scripting.Debugging.CompilerServices.DebugContext.TransformLambda(LambdaExpression lambda, DebugLambdaInfo lambdaInfo) at IronPython.Runtime.FunctionCode.<>c__DisplayClass1a.b__19(Expression`1 x) at IronPython.Compiler.GeneratorRewriter.Reduce(Boolean shouldInterpret, Boolean emitDebugSymbols, Int32 compilationThreshold, IList`1 parameters, Func`2 bod yConverter) at IronPython.Runtime.FunctionCode.GetGeneratorOrNormalLambdaTracing(PythonContext context) at IronPython.Runtime.FunctionCode.UpdateDelegate(PythonContext context, Boolean forceCreation) at IronPython.Runtime.FunctionCode.LazyCompileFirstTarget(PythonFunction function) at IronPython.Compiler.PythonCallTargets.OriginalCallTarget4(PythonFunction function, Object arg0, Object arg1, Object arg2, Object arg3) at IronPython.Runtime.PythonFunction.FunctionCaller`1.Default3Call1(CallSite site, CodeContext context, Object func, T0 arg0) at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) at IronPython.Compiler.PythonScriptCode.Run(Scope scope) at IronPython.Hosting.PythonCommandLine.<>c__DisplayClass1.b__0() ValueError: An item with the same key has already been added. My guess would be that the debuggable lambda re-writer isn't handling re-use of the same parameter within different blocks. It might be possible to change this from calling Insert into using the indexer to assign (which allows replacements) but that's probably not the correct fix. Can you open a bug? I can look into it more later. > -----Original Message----- > From: ironpython-users-bounces+dinov=microsoft.com at python.org > [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On > Behalf Of Markus Schaber > Sent: Wednesday, August 24, 2011 4:41 AM > To: Discussion of IronPython > Subject: [Ironpython-users] ValueError in IronPython 2.7.1 beta > > Hi, > > I still have the problem with the ValueError in IronPython 2.7.1 beta. > > I now managed to cut down the test case to a single file with just a few lines, > and I can also reproduce it when executing it in the ipy.exe interactive > interpreter: > > -- snip -- > import os, sys > > def trace_handler(a,b,c): > return trace_handler > > sys.settrace(trace_handler) > > for root, dirs, files in os.walk("."): > pass > -- snap -- > > Traceback (most recent call last): > File "test.py", line 8, in > ValueError: Ein Element mit dem gleichen Schl?ssel wurde bereits > hinzugef?gt. > > Any ideas? Or is everyone out in summer holidays? :-) > > Best regards > > Markus Schaber > > ___________________________ > We software Automation. > > 3S-Smart Software Solutions GmbH > Markus Schaber | Developer > Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | > Fax +49-831-54031-50 > > Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com > CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys > sample projects: http://www.3s- > software.com/index.shtml?sample_projects > > Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade > register: Kempten HRB 6186 | Tax ID No.: DE 167014915 > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > http://mail.python.org/mailman/listinfo/ironpython-users From fzumstein at gmail.com Wed Aug 24 21:34:08 2011 From: fzumstein at gmail.com (Felix Zumstein) Date: Wed, 24 Aug 2011 21:34:08 +0200 Subject: [Ironpython-users] Cannot import numpy from IronPython in VS Message-ID: Hi all, I installed Numpy/SciPy from http://www.enthought.com/repo/.iron/ and I am running PTVS (1.0 Release Candidate 2), IronPython 2.7 and finally VS2010 Premium. Now, I can import numpy easily on ipy.exe and even in the interactive window in Visual Studio, but I can't make it work embedded in a C# project. Even following the suggestions in http://stackoverflow.com/questions/5526151/ironpython-invocation-from-c-with-scipy-fails-with-importexception-no-moduleand adding the path references, I still get a "No module named signal" error. Without adding the paths I get a "No module named numpy" error. If sombody could create a simple project like this one: http://code.msdn.microsoft.com/Using-IronPython-with-80747ebe but additionally including a call to numpy in the helloworld.py file would be awesome. thanks! Felix -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Thu Aug 25 00:09:30 2011 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 24 Aug 2011 22:09:30 +0000 Subject: [Ironpython-users] Cannot import numpy from IronPython in VS In-Reply-To: References: Message-ID: <6C7ABA8B4E309440B857D74348836F2E28F34025@TK5EX14MBXC292.redmond.corp.microsoft.com> It sounds like you're missing IronPython.Modules.dll - this contains the signal module which is implemented in C#. If just referencing it and making sure it gets copied next to IronPython.dll doesn't work then you'll need to call scriptRuntime.LoadAssembly(typeof(CTypes).Assembly); to get the modules loaded into the runtime. From: ironpython-users-bounces+dinov=microsoft.com at python.org [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Felix Zumstein Sent: Wednesday, August 24, 2011 12:34 PM To: ironpython-users at python.org Subject: [Ironpython-users] Cannot import numpy from IronPython in VS Hi all, I installed Numpy/SciPy from http://www.enthought.com/repo/.iron/ and I am running PTVS (1.0 Release Candidate 2), IronPython 2.7 and finally VS2010 Premium. Now, I can import numpy easily on ipy.exe and even in the interactive window in Visual Studio, but I can't make it work embedded in a C# project. Even following the suggestions in http://stackoverflow.com/questions/5526151/ironpython-invocation-from-c-with-scipy-fails-with-importexception-no-module and adding the path references, I still get a "No module named signal" error. Without adding the paths I get a "No module named numpy" error. If sombody could create a simple project like this one: http://code.msdn.microsoft.com/Using-IronPython-with-80747ebe but additionally including a call to numpy in the helloworld.py file would be awesome. thanks! Felix -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Thu Aug 25 11:18:53 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 25 Aug 2011 02:18:53 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/24/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] "from import *" fails, causes KeyError 2. [New comment] "from import *" fails, causes KeyError 3. [Status update] wpf module in Silverlight 4. [New issue] ArgumentException when using SetTrace ---------------------------------------------- ISSUES 1. [New issue] "from import *" fails, causes KeyError http://ironpython.codeplex.com/workitem/31305 User mejohansen has proposed the issue: "Version info: > IronPython 2.7 (2.7.0.40) on .NET 4.0.30319.1 Example: > >>> from email import * > Traceback (most recent call last): > File "", line 1, in > KeyError: base64mime > >>> import email > >>>"----------------- 2. [New comment] "from import *" fails, causes KeyError http://ironpython.codeplex.com/workitem/31305 User mejohansen has commented on the issue: "I found a workaround for IronPython __init__.py for the package must be changed to something like: >all_modules = ['module1', 'module2', 'module3'] > >for module in all_modules: > __import__('%s.%s' % (__name__, module)) Of course, for vanilla Python, it is sufficient to do: > __all__ = all_modules"----------------- 3. [Status update] wpf module in Silverlight http://ironpython.codeplex.com/workitem/31204 User jdhardy has updated the issue: Status has changed from Proposed to Closed. ----------------- 4. [New issue] ArgumentException when using SetTrace http://ironpython.codeplex.com/workitem/31308 User MarkusSchaber has proposed the issue: "Testscript: (also works in interactive mode, IronPython 2.7.1 beta): -- snip -- import os, sys def trace_handler(a,b,c): return trace_handler sys.settrace(trace_handler) for root, dirs, files in os.walk("."): pass -- snap -- Traceback (most recent call last): File "test.py", line 8, in ValueError: Ein Element mit dem gleichen Schl?ssel wurde bereits hinzugef?gt. .NET traceback: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Microsoft.Scripting.Debugging.DebuggableLambdaBuilder.LayOutVariables(Dictionary`2 strongBoxedLocals, Dictionary`2 parameters) at Microsoft.Scripting.Debugging.DebuggableLambdaBuilder.TransformLambda(LambdaExpression lambda) at Microsoft.Scripting.Debugging.DebuggableLambdaBuilder.Transform(LambdaExpression lambda) at Microsoft.Scripting.Debugging.CompilerServices.DebugContext.TransformLambda(LambdaExpression lambda, DebugLambdaInfo lambdaInfo) at IronPython.Runtime.FunctionCode.<>c__DisplayClass1a.b__19(Expression`1 x) at IronPython.Compiler.GeneratorRewriter.Reduce(Boolean shouldInterpret, Boolean emitDebugSymbols, Int32 compilationThreshold, IList`1 parameters, Func`2 bod yConverter) at IronPython.Runtime.FunctionCode.GetGeneratorOrNormalLambdaTracing(PythonContext context) at IronPython.Runtime.FunctionCode.UpdateDelegate(PythonContext context, Boolean forceCreation) at IronPython.Runtime.FunctionCode.LazyCompileFirstTarget(PythonFunction function) at IronPython.Compiler.PythonCallTargets.OriginalCallTarget4(PythonFunction function, Object arg0, Object arg1, Object arg2, Object arg3) at IronPython.Runtime.PythonFunction.FunctionCaller`1.Default3Call1(CallSite site, CodeContext context, Object func, T0 arg0) at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) at IronPython.Compiler.PythonScriptCode.Run(Scope scope) at IronPython.Hosting.PythonCommandLine.<>c__DisplayClass1.b__0() ValueError: An item with the same key has already been added. Dino Viehland writes: My guess would be that the debuggable lambda re-writer isn't handling re-use of the same parameter within different blocks. It might be possible to change this from calling Insert into using the indexer to assign (which allows replacements) but that's probably not the correct fix." ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fzumstein at gmail.com Thu Aug 25 23:31:16 2011 From: fzumstein at gmail.com (Felix Zumstein) Date: Thu, 25 Aug 2011 23:31:16 +0200 Subject: [Ironpython-users] Cannot import numpy from IronPython in VS In-Reply-To: <6C7ABA8B4E309440B857D74348836F2E28F34025@TK5EX14MBXC292.redmond.corp.microsoft.com> References: <6C7ABA8B4E309440B857D74348836F2E28F34025@TK5EX14MBXC292.redmond.corp.microsoft.com> Message-ID: Hi Dino In fact, the dlls were pointing to the Sho installation which were probably an older version. Now that I have deleted/referenced the correct dlls, I get another error: The type initializer for 'NumpyDotNet.NpyCoreApi' threw an exception. But I guess this could be because I am on 64bit Win7 and as I understand numpy only works on 32bit so far... thanks for the help! On Thu, Aug 25, 2011 at 12:09 AM, Dino Viehland wrote: > It sounds like you?re missing IronPython.Modules.dll ? this contains the > signal module which is implemented in C#. If just referencing it and making > sure it gets copied next to IronPython.dll doesn?t work then you?ll need to > call scriptRuntime.LoadAssembly(typeof(CTypes).Assembly); to get the modules > loaded into the runtime.**** > > ** ** > > *From:* ironpython-users-bounces+dinov=microsoft.com at python.org [mailto: > ironpython-users-bounces+dinov=microsoft.com at python.org] *On Behalf Of *Felix > Zumstein > *Sent:* Wednesday, August 24, 2011 12:34 PM > *To:* ironpython-users at python.org > *Subject:* [Ironpython-users] Cannot import numpy from IronPython in VS*** > * > > ** ** > > Hi all, > > I installed Numpy/SciPy from http://www.enthought.com/repo/.iron/ and I am > running PTVS (1.0 Release Candidate 2), IronPython 2.7 and finally VS2010 > Premium. > Now, I can import numpy easily on ipy.exe and even in the interactive > window in Visual Studio, but I can't make it work embedded in a C# project. > > Even following the suggestions in > http://stackoverflow.com/questions/5526151/ironpython-invocation-from-c-with-scipy-fails-with-importexception-no-moduleand adding the path references, I still get a "No module named signal" > error. Without adding the paths I get a "No module named numpy" error. > > If sombody could create a simple project like this one: > http://code.msdn.microsoft.com/Using-IronPython-with-80747ebe but > additionally including a call to numpy in the helloworld.py file would be > awesome. > > thanks! > Felix > > **** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.grenyer at gmail.com Fri Aug 26 09:40:10 2011 From: paul.grenyer at gmail.com (Paul Grenyer) Date: Fri, 26 Aug 2011 08:40:10 +0100 Subject: [Ironpython-users] Working Directory Message-ID: Hi All Is it possible to set the working directory at the command line? Google isn't helping me. What I want is: ipy.exe mypy.py. -- Thanks Paul Paul Grenyer e: paul.grenyer at gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer From m.schaber at 3s-software.com Fri Aug 26 09:42:27 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Fri, 26 Aug 2011 09:42:27 +0200 Subject: [Ironpython-users] Working Directory In-Reply-To: References: Message-ID: Hi, Von: ironpython-users-bounces+m.schaber=3s-software.com at python.org > Is it possible to set the working directory at the command line? > Google isn't helping me. What I want is: > > ipy.exe mypy.py. Why don't you use the command line methods for changing the directory? e. G. in bash, you could do (cd ; ipy.exe mypy.py) Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From paul.grenyer at gmail.com Fri Aug 26 09:49:53 2011 From: paul.grenyer at gmail.com (Paul Grenyer) Date: Fri, 26 Aug 2011 08:49:53 +0100 Subject: [Ironpython-users] Working Directory In-Reply-To: References: Message-ID: Hi On Fri, Aug 26, 2011 at 8:42 AM, Markus Schaber wrote: > Hi, > > Von: ironpython-users-bounces+m.schaber=3s-software.com at python.org >> Is it possible to set the working directory at the command line? >> Google isn't helping me. What I want is: >> >> ipy.exe mypy.py. > > Why don't you use the command line methods for changing the directory? That doesn't work so well for my build script. If something fails I end up in the wrong directory. -- Thanks Paul Paul Grenyer e: paul.grenyer at gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer From m.schaber at 3s-software.com Fri Aug 26 10:14:26 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Fri, 26 Aug 2011 10:14:26 +0200 Subject: [Ironpython-users] Working Directory In-Reply-To: References: Message-ID: Hi, Paul, Von: ironpython-users-bounces+m.schaber=3s-software.com at python.org > On Fri, Aug 26, 2011 at 8:42 AM, Markus Schaber software.com> wrote: > > Von: ironpython-users-bounces+m.schaber=3s-software.com at python.org > >> Is it possible to set the working directory at the command line? > >> Google isn't helping me. What I want is: > >> > >> ipy.exe mypy.py. > > > > Why don't you use the command line methods for changing the directory? > > That doesn't work so well for my build script. If something fails I end up > in the wrong directory. Thats why I did use the brackets () in my example command: (cd ; ipy.exe mypy.py) They spawn a subshell, so after the closing bracket, the original directory is restored. I think, you can achive similar effects by saving the working directory (e. G. in a variable), or using pushd/popd. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From paul.grenyer at gmail.com Fri Aug 26 11:04:08 2011 From: paul.grenyer at gmail.com (Paul Grenyer) Date: Fri, 26 Aug 2011 10:04:08 +0100 Subject: [Ironpython-users] Working Directory In-Reply-To: References: Message-ID: HI Ok, I'm trying a different approach where I pass in the path the to file I want to work on. However, I can't get the command line syntax right: ipy.exe acceptance_test.py ../bin/release/DirList It keeps treating the second parameter as python file. What's the correct syntax? -- Thanks Paul Paul Grenyer e: paul.grenyer at gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer From ps at peter-schwalm.de Fri Aug 26 16:44:45 2011 From: ps at peter-schwalm.de (Peter Schwalm) Date: Fri, 26 Aug 2011 16:44:45 +0200 Subject: [Ironpython-users] Working Directory In-Reply-To: References: Message-ID: <4E57B15D.7070405@peter-schwalm.de> Hi Paul, if you are running windows: if you end up in the wrong directory after failure you could use sub-batch-files (call xxxx.bat ....) and in that sub-batch-files you could use the command setlocal. Then environment and working directory are restored on return from the batch file. Peter Am 26.08.2011 09:49, schrieb Paul Grenyer: > Hi > > On Fri, Aug 26, 2011 at 8:42 AM, Markus Schaber > wrote: >> Hi, >> >> Von: ironpython-users-bounces+m.schaber=3s-software.com at python.org >>> Is it possible to set the working directory at the command line? >>> Google isn't helping me. What I want is: >>> >>> ipy.exe mypy.py. >> Why don't you use the command line methods for changing the directory? > That doesn't work so well for my build script. If something fails I > end up in the wrong directory. > From paul.grenyer at gmail.com Fri Aug 26 16:56:43 2011 From: paul.grenyer at gmail.com (Paul Grenyer) Date: Fri, 26 Aug 2011 15:56:43 +0100 Subject: [Ironpython-users] Working Directory In-Reply-To: <4E57B15D.7070405@peter-schwalm.de> References: <4E57B15D.7070405@peter-schwalm.de> Message-ID: Hi Peter > if you are running windows: > > if you end up in the wrong directory after failure you could use > sub-batch-files (call xxxx.bat ....) and in that sub-batch-files you could > use the command setlocal. Then environment and working directory are > restored on return from the batch file. Yeah, that feels like quite a hack. It's odd you can't set the working directory for the python executable. Any ideas about my command line argument problem? -- Thanks Paul Paul Grenyer e: paul.grenyer at gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer From slide.o.mix at gmail.com Fri Aug 26 17:03:44 2011 From: slide.o.mix at gmail.com (Slide) Date: Fri, 26 Aug 2011 08:03:44 -0700 Subject: [Ironpython-users] Working Directory In-Reply-To: References: <4E57B15D.7070405@peter-schwalm.de> Message-ID: On Fri, Aug 26, 2011 at 7:56 AM, Paul Grenyer wrote: > Hi Peter > > > if you are running windows: > > > > if you end up in the wrong directory after failure you could use > > sub-batch-files (call xxxx.bat ....) and in that sub-batch-files you > could > > use the command setlocal. Then environment and working directory are > > restored on return from the batch file. > > Yeah, that feels like quite a hack. It's odd you can't set the working > directory for the python executable. > > Any ideas about my command line argument problem? > > Can you show the console output that makes you think it's pulling the second argument as a python file to execute? Thanks, slide -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.grenyer at gmail.com Fri Aug 26 17:09:14 2011 From: paul.grenyer at gmail.com (Paul Grenyer) Date: Fri, 26 Aug 2011 16:09:14 +0100 Subject: [Ironpython-users] Working Directory In-Reply-To: References: <4E57B15D.7070405@peter-schwalm.de> Message-ID: Hi > Can you show the console output that makes you think it's pulling the second > argument as a python file to execute? Sure! Here's my commandline that works: DirList\3rdparty\IronPython\ipy.exe DirList\AcceptanceTests\acceptance_tests.py Then if I add a parameter: DirList\3rdparty\IronPython\ipy.exe DirList\AcceptanceTests\acceptance_tests.py parameter Traceback (most recent call last): File "DirList\AcceptanceTests\acceptance_tests.py", line 57, in File "C:\Sandbox\private\Articles\Testing\TDD\Examples\DirList-Abridged\DirList\3rdparty\IronPython\Lib\unittest\main.py", line 92, in __init__ File "C:\Sandbox\private\Articles\Testing\TDD\Examples\DirList-Abridged\DirList\3rdparty\IronPython\Lib\unittest\main.py", line 147, in parseArgs File "C:\Sandbox\private\Articles\Testing\TDD\Examples\DirList-Abridged\DirList\3rdparty\IronPython\Lib\unittest\main.py", line 155, in createTests File "C:\Sandbox\private\Articles\Testing\TDD\Examples\DirList-Abridged\DirList\3rdparty\IronPython\Lib\unittest\loader.py", line 128, in loadTestsFromNames File "C:\Sandbox\private\Articles\Testing\TDD\Examples\DirList-Abridged\DirList\3rdparty\IronPython\Lib\unittest\loader.py", line 100, in loadTestsFromNameAttributeError: 'module' object has no attribute 'parameter' -- Thanks Paul Paul Grenyer e: paul.grenyer at gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer From slide.o.mix at gmail.com Fri Aug 26 17:31:26 2011 From: slide.o.mix at gmail.com (Slide) Date: Fri, 26 Aug 2011 08:31:26 -0700 Subject: [Ironpython-users] Working Directory In-Reply-To: References: <4E57B15D.7070405@peter-schwalm.de> Message-ID: On Fri, Aug 26, 2011 at 8:09 AM, Paul Grenyer wrote: > Hi > > > Can you show the console output that makes you think it's pulling the > second > > argument as a python file to execute? > > Sure! > > Here's my commandline that works: > > DirList\3rdparty\IronPython\ipy.exe > DirList\AcceptanceTests\acceptance_tests.py > > Then if I add a parameter: > > DirList\3rdparty\IronPython\ipy.exe > DirList\AcceptanceTests\acceptance_tests.py parameter > > Traceback (most recent call last): > File "DirList\AcceptanceTests\acceptance_tests.py", line 57, in > File > "C:\Sandbox\private\Articles\Testing\TDD\Examples\DirList-Abridged\DirList\3rdparty\IronPython\Lib\unittest\main.py", > line 92, in __init__ > File > "C:\Sandbox\private\Articles\Testing\TDD\Examples\DirList-Abridged\DirList\3rdparty\IronPython\Lib\unittest\main.py", > line 147, in parseArgs File > > "C:\Sandbox\private\Articles\Testing\TDD\Examples\DirList-Abridged\DirList\3rdparty\IronPython\Lib\unittest\main.py", > line 155, in createTests > File > "C:\Sandbox\private\Articles\Testing\TDD\Examples\DirList-Abridged\DirList\3rdparty\IronPython\Lib\unittest\loader.py", > line 128, in loadTestsFromNames > File > "C:\Sandbox\private\Articles\Testing\TDD\Examples\DirList-Abridged\DirList\3rdparty\IronPython\Lib\unittest\loader.py", > line 100, in loadTestsFromNameAttributeError: 'module' object has no > attribute 'parameter' > > > -- > Thanks > Paul > > Paul Grenyer > e: paul.grenyer at gmail.com > b: paulgrenyer.blogspot.com > t: pjgrenyer > What does your if __name__ == "__main__": look like? Or, if you don't have that, can you share your entry script? -- slide-o-blog http://slide-o-blog.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Fri Aug 26 17:50:13 2011 From: jdhardy at gmail.com (Jeff Hardy) Date: Fri, 26 Aug 2011 08:50:13 -0700 Subject: [Ironpython-users] Working Directory In-Reply-To: References: <4E57B15D.7070405@peter-schwalm.de> Message-ID: On Fri, Aug 26, 2011 at 7:56 AM, Paul Grenyer wrote: > Yeah, that feels like quite a hack. It's odd you can't set the working > directory for the python executable. It's not that odd - very few console programs let you set their working directory from the command line. If you need temporarily switch directories in a script, then you want pushd[1] and popd[2]. - Jeff [1] http://ss64.com/nt/pushd.html [2] http://ss64.com/nt/popd.html From ps at peter-schwalm.de Fri Aug 26 18:07:47 2011 From: ps at peter-schwalm.de (Peter Schwalm) Date: Fri, 26 Aug 2011 18:07:47 +0200 Subject: [Ironpython-users] Working Directory In-Reply-To: References: <4E57B15D.7070405@peter-schwalm.de> Message-ID: <4E57C4D3.5040708@peter-schwalm.de> Am 26.08.2011 16:56, schrieb Paul Grenyer: .... > Yeah, that feels like quite a hack. It's odd you can't set the working > directory for the python executable. Hi Paul, I don't regard that as a hack. It is quite unusual for a program to have a command line switch for setting the working directory, at least for non-GUI-programs. Usually the working directory is set in the context of the program, in your case in the shell script / batch file that invokes the program. Peter From paul.grenyer at gmail.com Fri Aug 26 18:40:33 2011 From: paul.grenyer at gmail.com (Paul Grenyer) Date: Fri, 26 Aug 2011 17:40:33 +0100 Subject: [Ironpython-users] Working Directory In-Reply-To: References: <4E57B15D.7070405@peter-schwalm.de> Message-ID: Hi > What does your if __name__ == "__main__": look like? Or, if you don't have > that, can you share your entry script? Yep: if __name__ == '__main__': unittest.main() -- Thanks Paul Paul Grenyer e: paul.grenyer at gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer From paul.grenyer at gmail.com Fri Aug 26 18:42:22 2011 From: paul.grenyer at gmail.com (Paul Grenyer) Date: Fri, 26 Aug 2011 17:42:22 +0100 Subject: [Ironpython-users] Working Directory In-Reply-To: <4E57C4D3.5040708@peter-schwalm.de> References: <4E57B15D.7070405@peter-schwalm.de> <4E57C4D3.5040708@peter-schwalm.de> Message-ID: Hi > I don't regard that as a hack. Each to their own. :-) If nothing else, it's not very portable. > It is quite unusual for a program to have a > command line switch for setting the working directory, at least for > non-GUI-programs. Usually the working directory is set in the context of the > program, in your case in the shell script / batch file that invokes the > program. It's not so unusual for development tools. -- Thanks Paul Paul Grenyer e: paul.grenyer at gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer From slide.o.mix at gmail.com Fri Aug 26 18:54:38 2011 From: slide.o.mix at gmail.com (Slide) Date: Fri, 26 Aug 2011 09:54:38 -0700 Subject: [Ironpython-users] Working Directory In-Reply-To: References: <4E57B15D.7070405@peter-schwalm.de> Message-ID: On Fri, Aug 26, 2011 at 9:40 AM, Paul Grenyer wrote: > Hi > > > What does your if __name__ == "__main__": look like? Or, if you don't > have > > that, can you share your entry script? > > Yep: > > if __name__ == '__main__': > unittest.main() > > -- > Thanks > Paul > > You'd probably want to add something to swallow the argument and set the working directory, otherwise the unittest module things that is the module you want to test (look at the docs for unittest and command line arguments). It's not an IronPython issue at all, it's unittest doing what it is supposed to do. Inside unittest.main it pulls out the command line parameters and uses them to determine what unittests to run. You could do something like (not tested): import os, sys if __name__ == '__main__': os.chdir(sys.argv[1]) del(sys.argv[1]) unittest.main() slide -- slide-o-blog http://slide-o-blog.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Sat Aug 27 13:11:03 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 27 Aug 2011 04:11:03 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/26/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] Executing c# code 2. [Status update] Executing c# code ---------------------------------------------- ISSUES 1. [New issue] Executing c# code http://ironpython.codeplex.com/workitem/31321 User Mallikarjun_Gouda has proposed the issue: "Hi, I am new to this python language. I have a requirement for my project. Any help is much appreciated. I have a silver light application where the users can write simple expressions with/without using the variables/parameters. *)An expression can be a simple assignment of the current date time to the variable. *)Some simple string operation on the variables. *) Evaluating the expression to determine the outcome & then update the result to the variables based on the outcome of the expression. This expression will be saved in the database. Then i have a windows service (Build on .NET 4.0) which reads the invoices & generates the results by evaluating the expression saved in the database by passing the variable values to the expression. Since the expression are not predefined & are built dynamically i need a way to execute them at runtime. After going through some readings, i understand that IronPython/IronRuby languages are dynamic languages which can be used from .NET code. Can I get some hint on how can I achieve this. Thanks, Mallikarjun"----------------- 2. [Status update] Executing c# code http://ironpython.codeplex.com/workitem/31321 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "Please submit questions to the mailing list. You can subscribe and view archives here: http://mail.python.org/mailman/listinfo/ironpython-users " ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Mon Aug 29 00:49:28 2011 From: jdhardy at gmail.com (Jeff Hardy) Date: Sun, 28 Aug 2011 15:49:28 -0700 Subject: [Ironpython-users] IronPython test results now available Message-ID: At long last, the current IronPython test results can be viewed on the CI server. Go to http://teamcity.codebetter.com/viewLog.html?buildId=30746&buildTypeId=bt365&tab=buildResultsDiv and then select 'login as guest'. There's currently 185 passes, 150 failures, and 177 ignored. Many of the failures share the same root cause (doctest is broken) and many others are just one test failing that should be easy to fix. Some of the tests are ignored/disabled because they cause deadlocks, infinite loops, or StackOverflowExceptions. These aren't clearly marked, but I'll try to find somewhere to put the 'why'. Threaded runs are currently broken because the test runner will occasionally deadlock waiting for results from the tests, so always run with /threads:1 (which will be the default soon-ish). The tests don't work on Mac/Linux right now because there's too many windows-isms hardcoded in. Work is needed there. If you want to run an individual test, use `test-ipy /test:`. You can find test_name in the IronPython.tests file to see exactly what the test does. I'm hoping this will help shine a light on some of the areas of IronPython that don't quite work as expected and get some fixes in. - Jeff From m.schaber at 3s-software.com Mon Aug 29 08:36:43 2011 From: m.schaber at 3s-software.com (Markus Schaber) Date: Mon, 29 Aug 2011 08:36:43 +0200 Subject: [Ironpython-users] Working Directory In-Reply-To: References: <4E57B15D.7070405@peter-schwalm.de> Message-ID: Hi, Von: ironpython-users-bounces+m.schaber=3s-software.com at python.org > > if you are running windows: > > > > if you end up in the wrong directory after failure you could use > > sub-batch-files (call xxxx.bat ....) and in that sub-batch-files you > > could use the command setlocal. Then environment and working directory > > are restored on return from the batch file. > > Yeah, that feels like quite a hack. It's odd you can't set the working > directory for the python executable. In my eyes, implementing that for python feels like a hack. This would mean that each executable to which the current directory might have some relevancy needs to implement its own mechanism to change the current directory, instead of implementing it once and for all in the shell/batch interpreter. Best regards Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Developer Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: m.schaber at 3s-software.com | Web: http://www.3s-software.com CoDeSys internet forum: http://forum.3s-software.com Download CoDeSys sample projects: http://www.3s-software.com/index.shtml?sample_projects Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 From no_reply at codeplex.com Tue Aug 30 09:48:22 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 30 Aug 2011 00:48:22 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/29/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] IronPython 2.7B1 non-default install location not working 2. [New comment] IronPython 2.7B1 non-default install location not working 3. [Status update] IronPython 2.7B1 non-default install location not working ---------------------------------------------- ISSUES 1. [New comment] IronPython 2.7B1 non-default install location not working http://ironpython.codeplex.com/workitem/29950 User jkf35 has commented on the issue: "This seems to remain an issue. Any further information about the fix or workaround?"----------------- 2. [New comment] IronPython 2.7B1 non-default install location not working http://ironpython.codeplex.com/workitem/29950 User jdhardy has commented on the issue: " ** Closed by jdhardy 2/12/2011 12:06 PM"----------------- 3. [Status update] IronPython 2.7B1 non-default install location not working http://ironpython.codeplex.com/workitem/29950 User jdhardy has updated the issue: Status has changed from Closed to Proposed with the following comment, "This has not been fixed." ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Wed Aug 31 11:54:04 2011 From: no_reply at codeplex.com (no_reply at codeplex.com) Date: 31 Aug 2011 02:54:04 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 8/30/2011 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] xml.sax.make_parser() exception 2. [New comment] Py3k: Overload Resolution Changes (was System.BitConverter.GetBytes(long(...)) wrong?) ---------------------------------------------- ISSUES 1. [New issue] xml.sax.make_parser() exception http://ironpython.codeplex.com/workitem/31361 User DevChris has proposed the issue: "Here are the commands I enter into ipy.exe 2.7.1 Beta 2 Interactive with the resulting exception. >>> import xml.sax >>> xml.sax.make_parser() Traceback (most recent call last): File "", line 1, in File "C:\Program Files (x86)\IronPython 2.7.1 Beta 2\Lib\xml\sax\__init__.py", line 93, in make_parser raise SAXReaderNotAvailable("No parsers found", None) SAXReaderNotAvailable: No parsers found >>> Suggestions to have xml.sax.make_parse() work without an exception?"----------------- 2. [New comment] Py3k: Overload Resolution Changes (was System.BitConverter.GetBytes(long(...)) wrong?) http://ironpython.codeplex.com/workitem/21676 User skottmckay has commented on the issue: "Note this can be worked around by explicitly choosing the overload x = long(999000999000) System.BitConverter.GetBytes.Overloads[System.UInt64](x) " ---------------------------------------------- ---------------------------------------------- You are receiving this email because you subscribed to notifications on CodePlex. To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: