From muriel at internode.on.net Tue Feb 2 21:54:26 2016 From: muriel at internode.on.net (Marvin Hunkin) Date: Wed, 3 Feb 2016 13:24:26 +1030 Subject: [Ironpython-users] Using Iron Python To Call A Ruby in Visual Studio 2015 Message-ID: <001d01d15e2e$38e67930$aab36b90$@internode.on.net> Hi. I am marvin, a blind it student doing the diploma of software development from http://www.upskilled.edu.au. I use a screen reader jaws for windows from http://www.freedomscientific.com. using visual studio community 2015, 32 bit, windows 10 64 bit on a Toshiba laptop. Now, doing a subject from http://www.pluralsite.com, programming in c # 2, fundamentals or c # programming in paradines. And using dlr. And need to call a ruby implementation. Got rails on ruby, and my lectuer sent me iron ruby for visual studio. Well, it installed, but cannot find the templates. And when I try to run a folder a ruby project. Says it is incompatible. So how do I do this in python, to call this ruby code I have. Any ideas. Marvin from Adelaide, Australia. Camille on the iron ruby list, suggested the iron python list, which I subscribed. As they do not maintain or update iron ruby any more. Got iron python projects. Marvin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From startrekcafe at gmail.com Tue Feb 2 21:55:49 2016 From: startrekcafe at gmail.com (Marvin Hunkin) Date: Wed, 3 Feb 2016 13:25:49 +1030 Subject: [Ironpython-users] how to call ruby and do it in python for visual studio 2015 Message-ID: <002a01d15e2e$64beafa0$2e3c0ee0$@gmail.com> Hi. I am marvin, a blind it student doing the diploma of software development from http://www.upskilled.edu.au. I use a screen reader jaws for windows from http://www.freedomscientific.com. using visual studio community 2015, 32 bit, windows 10 64 bit on a Toshiba laptop. Now, doing a subject from http://www.pluralsite.com, programming in c # 2, fundamentals or c # programming in paradines. And using dlr. And need to call a ruby implementation. Got rails on ruby, and my lectuer sent me iron ruby for visual studio. Well, it installed, but cannot find the templates. And when I try to run a folder a ruby project. Says it is incompatible. So how do I do this in python, to call this ruby code I have. Any ideas. Marvin from Adelaide, Australia. Camille on the iron ruby list, suggested the iron python list, which I subscribed. As they do not maintain or update iron ruby any more. Got iron python projects. Marvin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Wed Feb 3 13:14:06 2016 From: slide.o.mix at gmail.com (Slide) Date: Wed, 03 Feb 2016 18:14:06 +0000 Subject: [Ironpython-users] New 2.7.x release? Message-ID: With the updates that were made to reduce memory leaks, is there a plan to do a new release of IP 2.7 line? I would love to have the improvements (I know I can build myself, but corporate yada yada) in a release. Regards, slide -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Thu Feb 4 12:35:10 2016 From: jdhardy at gmail.com (Jeff Hardy) Date: Thu, 4 Feb 2016 09:35:10 -0800 Subject: [Ironpython-users] New 2.7.x release? In-Reply-To: References: Message-ID: On Wed, Feb 3, 2016 at 10:14 AM, Slide wrote: > With the updates that were made to reduce memory leaks, is there a plan to > do a new release of IP 2.7 line? I would love to have the improvements (I > know I can build myself, but corporate yada yada) in a release. > Yes, I'm planning on it soon (like, in the next week). The time-consuming part isn't building the release but doing the release notes, so I might just do a build-only release and get back the release notes later. (It would just be an alpha release, not final, since there are some decent-sized changes.) - Jeff > > Regards, > > slide > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sven.Prevrhal at philips.com Mon Feb 8 07:23:14 2016 From: Sven.Prevrhal at philips.com (Prevrhal, Sven) Date: Mon, 8 Feb 2016 12:23:14 +0000 Subject: [Ironpython-users] Numpy and Scipy Message-ID: It would be a real boon to have these packages working under ipy in both 32- and 64-bit. Is someone working on this? I got a copy of old Enthought effort to work, but the numpy and scipy versions there are so old and therefor buggy and incomplete. What would it take to get them updated? Kind regards, Sven ________________________________ The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. From mcdjoseph at gmail.com Sat Feb 6 17:54:45 2016 From: mcdjoseph at gmail.com (Joseph McDermott) Date: Sat, 6 Feb 2016 17:54:45 -0500 Subject: [Ironpython-users] Embedding Iron Python 2.7 in C# and .Net 4.5 Message-ID: <56b679b5.1047370a.cde9f.ffff8c49@mx.google.com> I wish to embed IronPython 2.7 in a C# application as a scripting language. There are many good examples from the period 2008-2010. They no longer work. Either failing to compile or failing to load at runtime. I have deleted and re-added all references with no luck. Microsoft seems to have changed library structures in 2.7. Does anyone have a CURRENT working example? Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Feb 9 11:37:18 2016 From: jdhardy at gmail.com (Jeff Hardy) Date: Tue, 9 Feb 2016 08:37:18 -0800 Subject: [Ironpython-users] Embedding Iron Python 2.7 in C# and .Net 4.5 In-Reply-To: <56b679b5.1047370a.cde9f.ffff8c49@mx.google.com> References: <56b679b5.1047370a.cde9f.ffff8c49@mx.google.com> Message-ID: On Sat, Feb 6, 2016 at 2:54 PM, Joseph McDermott wrote: > I wish to embed IronPython 2.7 in a C# application as a scripting language. > > > > There are many good examples from the period 2008-2010. They no longer > work. Either failing to compile or failing to load at runtime. I have > deleted and re-added all references with no luck. > > Microsoft seems to have changed library structures in 2.7. > The basics of embedding should not have changed since 2010. Can you share what you've tried that isn't working, or what specifically you're trying to accomplish? You might be able to find something in https://github.com/jdhardy/IronPythonSamples to help as well. (I know the samples are not as good as they should be.) - Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Feb 9 11:42:35 2016 From: jdhardy at gmail.com (Jeff Hardy) Date: Tue, 9 Feb 2016 08:42:35 -0800 Subject: [Ironpython-users] Numpy and Scipy In-Reply-To: References: Message-ID: On Mon, Feb 8, 2016 at 4:23 AM, Prevrhal, Sven wrote: > It would be a real boon to have these packages working under ipy in both > 32- and 64-bit. Is someone working on this? I got a copy of old Enthought > effort to work, but the numpy and scipy versions there are so old and > therefor buggy and incomplete. What would it take to get them updated? > A lot, I'm afraid. IIRC the intent was to port numpy/scipy to Cython and then use a C++/CLI backend for Cython to make them available; I have no idea if that was ever completed or merged to mainline. numpy/scipy used to be very tightly bound to CPython; there was a refactoring effort to reduce that so that they could be reused, but I don't know how far that got. I don't know if anyone at Enthought remembers where that effort left off, but that might a good place to start. CPython has a new "stable" C ABI (PEP 384) that may be useful, but it would still require a fair bit of work to integrate with IronPython. The old IronClad project might have some useful code there. - Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at codesys.com Wed Feb 10 03:08:18 2016 From: m.schaber at codesys.com (Markus Schaber) Date: Wed, 10 Feb 2016 08:08:18 +0000 Subject: [Ironpython-users] Embedding Iron Python 2.7 in C# and .Net 4.5 In-Reply-To: <56b679b5.1047370a.cde9f.ffff8c49@mx.google.com> References: <56b679b5.1047370a.cde9f.ffff8c49@mx.google.com> Message-ID: <727D8E16AE957149B447FE368139F2B59F6D495C@SERVER10> Hi, As far as I can see, the most important point is to use a version of the Ironpython DLLS which are compiled for .NET 4.0 (or newer). The current 2.7 distribution nowadays compiles for .NET 4.0 by default, and as far as I can see, the default installer comes with binaries build for 4 different Flavours: .NET 3.5, .NET 4.0, .NET 4.5 and Silverlight 5.0. Be sure to pick the right ones? Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org] On Behalf Of Joseph McDermott Sent: Monday, February 08, 2016 8:10 PM To: ironpython-users at python.org Subject: [Ironpython-users] Embedding Iron Python 2.7 in C# and .Net 4.5 I wish to embed IronPython 2.7 in a C# application as a scripting language. There are many good examples from the period 2008-2010. They no longer work. Either failing to compile or failing to load at runtime. I have deleted and re-added all references with no luck. Microsoft seems to have changed library structures in 2.7. Does anyone have a CURRENT working example? Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From issworld2000 at yahoo.com Sat Feb 13 17:25:53 2016 From: issworld2000 at yahoo.com (Djordje Spasic) Date: Sat, 13 Feb 2016 22:25:53 +0000 (UTC) Subject: [Ironpython-users] Cannot create instances of that class because it is abstract In-Reply-To: References: Message-ID: <976503780.3826859.1455402353223.JavaMail.yahoo@mail.yahoo.com> Thank you St?phane, That worked perfectly!! From: St?phane Lozier To: Djordje Spasic Cc: "ironpython-users at python.org" Sent: Friday, January 29, 2016 9:02 PM Subject: Re: [Ironpython-users] Cannot create instances of that class because it is abstract I can't say I really know what's going on, but you could try using unbound class instance methods (see http://ironpython.net/documentation/dotnet/dotnet.html#using-unbound-class-instance-methods). For example: MapWinGIS.Shapefile.Open(sf, shpfilename, None) On Fri, Jan 29, 2016 at 11:55 AM, Djordje Spasic wrote: Thank you for the explanation St?phane. When I use MapWinGIS.ShapefileClass() instead of MapWinGIS.Shapefile(): ??? import clr ?? ??? clr.AddReferenceToFileAndPath("C:/mapwindow_dlls/Interop.MapWinGIS.dll") ??? import MapWinGIS ?? ??? sf = MapWinGIS.ShapefileClass() ??? shpfilename = "C:/example.shp" ??? sf.Open(shpfilename, None)? # raises Error It raises an error: Could not convert argument 0 for call to Open. ?I googled a couple of times, and found one place where the same issue has emerged:?here on stackoverflow.? ?Stackoverflow issue is actually not related with ironpython, but with ironruby. The author states that the solution is to supply the CLR string as an argument to "Open" function, instead of regular ruby string. I tried that replicating that in ironpython: shpfilename = clr.Reference[System.String]("c:/example.shp") But again the upper error message, did not go away. Further googling found that this kind of issues may happen when trying?to call methods in .NET from "Interop COM objects". But only if that method has "ref parameters". Which Open method does not. Here is the signature of the Open method: Help on method-descriptor Open Open(...) ??? Open(self: ShapefileClass, ShapefileName: str, cBack: Callback) -> bool // MapWinGIS.ShapefileClass [DispId(11)] [MethodImpl(MethodImplOptions.InternalCall)] public virtual extern bool Open([MarshalAs(UnmanagedType.BStr)] [In] string ShapefileName, [MarshalAs(UnmanagedType.Interface)] [In] ICallback cBack = null); I would be very grateful for any kind of advice St?phane. Kind regards, Djordje Spasic From: St?phane Lozier To: Djordje Spasic Cc: "ironpython-users at python.org" Sent: Friday, January 29, 2016 5:24 PM Subject: Re: [Ironpython-users] Cannot create instances of that class because it is abstract Shapefile is an interface with a CoClassAttribute to ShapefileClass (which means when you do new Shapefile() in C# it creates an instance of ShapefileClass). I have no idea what the correct behaviour for IronPython should be, but in this case MapWinGIS.Shapefile gives you the interface. You could try MapWinGIS.ShapefileClass() instead of MapWinGIS.Shapefile(). On Mon, Jan 25, 2016 at 11:03 AM, Djordje Spasic via Ironpython-users wrote: Hello, I am trying to call a specific method ("Open") from the .NET assembly.The .NET assembly along with all other .dlls and necessary files, can be downloaded?from here. It's free an open source project: MapWindow. In their?examples page, by loading the Interop.MapWinGIS.dll file, they call the MapWinGIS.Shapefile.Open() method like so: using MapWinGIS; string shpfilename = "C:/example.shp"; Shapefile sf = new Shapefile(); if (sf.Open(shpfilename, null)) { } However, when I try the same thing in ironpython: ??? import clr ??? import os ??? ??? shpfilename = "C:/example.shp" ??? dllsfilename = "C:/mapwindow_dlls" ??? ??? clr.AddReferenceToFileAndPath(os.path.join(dllsfilename, "Interop.MapWinGIS.dll")) ??? print "Interop.MapWinGIS.dll loaded: ", "Interop.MapWinGIS" in [assembly.GetName().Name for assembly in clr.References]? # prints: True ??? import MapWinGIS ??? ??? sf = MapWinGIS.Shapefile()? # raises Error ??? sf.Open(shpfilename, None) I am getting an error message: ?? "Message: Cannot create instances of Shapefile because it is abstract" Why is this happening? I contacted the author of the project, but couldn't solve the issue. Any kind of advice would be helpful. Kind regards, Djordje Spasic _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From deedeebernard at hotmail.com Sat Feb 13 17:36:36 2016 From: deedeebernard at hotmail.com (Didier Bernard) Date: Sat, 13 Feb 2016 22:36:36 +0000 Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly Message-ID: Hello, I have the following issue with ironpython 2.7: I would like to compiles the .py file to .dll. Here is a nice example on how this can be done with clr.CompileModules method. The problem is that the File Version of the compiled .dll is always: 0.0.0.0. How can I change that? I posted a question about this issue on stackoverflow.com. Even there there stands that the issue is solved, it isn't. the person who tried to help me (D. Alveno) really gave a lot of effort to do that. So this is why I marked his answer as the solving one. But in reality the issue is still not solved. D. Alveno suggested using ipy.exe pyc.py instead of clr.CompileModules method. In the end this again resulted in getting a .dll file with File Version: 0.0.0.0. I also tried a couple of other methods (those three ones mentioned on stackoverflow.com), but all of them failed, as they do not seem to be made for ironpython .dll assemblies, but probably C# and VB.NET. I would welcome any kind of advice. Thank you in advance. With kind regards, Didier Bernard -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at agraham.demon.co.uk Mon Feb 15 12:05:04 2016 From: andy at agraham.demon.co.uk (Andrew Graham) Date: Mon, 15 Feb 2016 17:05:04 -0000 Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly In-Reply-To: References: Message-ID: <19A29BBF3D314891B59AB1AEB1AB13F9@AndyDesktop> You can use ilmerge to change it after compilation http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly ilmerge mycode.dll /ver:1.2.3.4 /out:mycode.dll ILMerge is available via NuGet in Visual Studio or from the Microsoft Download center http://www.microsoft.com/en-gb/download/details.aspx?id=17630 Last time I looked the version on NuGet is 2.14.1208 while the download is the earlier version 2.12.0803. Andy Graham From: Didier Bernard Sent: Saturday, February 13, 2016 10:36 PM To: ironpython-users at python.org Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly Hello, I have the following issue with ironpython 2.7: I would like to compiles the .py file to .dll. Here is a nice example on how this can be done with clr.CompileModules method. The problem is that the File Version of the compiled .dll is always: 0.0.0.0. How can I change that? I posted a question about this issue on stackoverflow.com. Even there there stands that the issue is solved, it isn't. the person who tried to help me (D. Alveno) really gave a lot of effort to do that. So this is why I marked his answer as the solving one. But in reality the issue is still not solved. D. Alveno suggested using ipy.exe pyc.py instead of clr.CompileModules method. In the end this again resulted in getting a .dll file with File Version: 0.0.0.0. I also tried a couple of other methods (those three ones mentioned on stackoverflow.com), but all of them failed, as they do not seem to be made for ironpython .dll assemblies, but probably C# and VB.NET. I would welcome any kind of advice. Thank you in advance. With kind regards, Didier Bernard -------------------------------------------------------------------------------- _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Mon Feb 15 14:53:20 2016 From: slide.o.mix at gmail.com (Slide) Date: Mon, 15 Feb 2016 19:53:20 +0000 Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly In-Reply-To: <19A29BBF3D314891B59AB1AEB1AB13F9@AndyDesktop> References: <19A29BBF3D314891B59AB1AEB1AB13F9@AndyDesktop> Message-ID: You can do this now with ipyc, which should be in the next version. It allows you to set many more things than pyc.py. You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py. Thanks Slide On Mon, Feb 15, 2016, 10:11 Andrew Graham wrote: > You can use ilmerge to change it after compilation > > http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly > > ilmerge mycode.dll /ver:1.2.3.4 /out:mycode.dll > > > ILMerge is available via NuGet in Visual Studio or from the Microsoft > Download center > > http://www.microsoft.com/en-gb/download/details.aspx?id=17630 > > > > Last time I looked the > version on NuGet is 2.14.1208 while the download is the earlier version > 2.12.0803. > > > Andy Graham > > > *From:* Didier Bernard > *Sent:* Saturday, February 13, 2016 10:36 PM > *To:* ironpython-users at python.org > *Subject:* [Ironpython-users] Changing the version information of > ironpython .dll assembly > > > Hello, > > I have the following issue with ironpython 2.7: I would like to compiles > the .py file to .dll. Here is a nice example > > on how this can be done with clr.CompileModules method. > The problem is that the File Version of the compiled .dll is always: > 0.0.0.0. > > How can I change that? > I posted a question about this issue on stackoverflow.com > . > Even there there stands that the issue is solved, it isn't. the person who > tried to help me (D. Alveno) really gave a lot of effort to do that. So > this is why I marked his answer as the solving one. But in reality the > issue is still not solved. > > D. Alveno suggested using ipy.exe pyc.py > instead of > clr.CompileModules method. In the end this again resulted in getting a .dll > file with File Version: 0.0.0.0. > > I also tried a couple of other methods (those three ones mentioned on > stackoverflow.com > ), > but all of them failed, as they do not seem to be made for ironpython .dll > assemblies, but probably C# and VB.NET. > > I would welcome any kind of advice. > > Thank you in advance. > > With kind regards, > Didier Bernard > > ------------------------------ > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From deedeebernard at hotmail.com Mon Feb 15 16:59:27 2016 From: deedeebernard at hotmail.com (Didier Bernard) Date: Mon, 15 Feb 2016 21:59:27 +0000 Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly In-Reply-To: References: <19A29BBF3D314891B59AB1AEB1AB13F9@AndyDesktop>, Message-ID: Thank you for the replies both Andy and Slide. @ Slide: I am currently bound to use ironpython 2.7. Can you provide a link or an explanation for this part please: "You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py." @ Andy Graham: I downloaded the ILMerge utility v2.12.0803 and tried to use the same syntax you gave me: C:\>"D:\Program Files\Microsoft\ILMerge\ILMe rge.exe" D:\dlls\pythonDll.dll /ver:1.2.3.4 /out:D:\dlls\pythonDll2.dll This is the error message I got: An exception occurred during merging: Unresolved assembly reference not allowed: IronPython. at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly) at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type) at System.Compiler.Ir2md.VisitReferencedType(TypeNode type) at System.Compiler.Ir2md.VisitMethod(Method method) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitClass(Class Class) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitModule(Module module) at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation) at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer) at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName) at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Modu le module) at System.Compiler.Module.WriteModule(String location, CompilerParameters opt ions) at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args) Thank you. Kind regards, Didier ________________________________ From: Slide Sent: Monday, February 15, 2016 8:53 PM To: Andrew Graham; Didier Bernard; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly You can do this now with ipyc, which should be in the next version. It allows you to set many more things than pyc.py. You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py. Thanks Slide On Mon, Feb 15, 2016, 10:11 Andrew Graham > wrote: You can use ilmerge to change it after compilation http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly ilmerge mycode.dll /ver:1.2.3.4 /out:mycode.dll ILMerge is available via NuGet in Visual Studio or from the Microsoft Download center http://www.microsoft.com/en-gb/download/details.aspx?id=17630 Last time I looked the version on NuGet is 2.14.1208 while the download is the earlier version 2.12.0803. Andy Graham From: Didier Bernard Sent: Saturday, February 13, 2016 10:36 PM To: ironpython-users at python.org Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly Hello, I have the following issue with ironpython 2.7: I would like to compiles the .py file to .dll. Here is a nice example on how this can be done with clr.CompileModules method. The problem is that the File Version of the compiled .dll is always: 0.0.0.0. How can I change that? I posted a question about this issue on stackoverflow.com. Even there there stands that the issue is solved, it isn't. the person who tried to help me (D. Alveno) really gave a lot of effort to do that. So this is why I marked his answer as the solving one. But in reality the issue is still not solved. D. Alveno suggested using ipy.exe pyc.py instead of clr.CompileModules method. In the end this again resulted in getting a .dll file with File Version: 0.0.0.0. I also tried a couple of other methods (those three ones mentioned on stackoverflow.com), but all of them failed, as they do not seem to be made for ironpython .dll assemblies, but probably C# and VB.NET. I would welcome any kind of advice. Thank you in advance. With kind regards, Didier Bernard ________________________________ _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Mon Feb 15 17:10:53 2016 From: slide.o.mix at gmail.com (Slide) Date: Mon, 15 Feb 2016 22:10:53 +0000 Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly In-Reply-To: References: <19A29BBF3D314891B59AB1AEB1AB13F9@AndyDesktop> Message-ID: Grab the source from github.com/IronLanguages/main.git and compile the ironpython solution. On Mon, Feb 15, 2016, 14:59 Didier Bernard wrote: > Thank you for the replies both Andy and Slide. > > @ Slide: > > > I am currently bound to use ironpython 2.7. > > Can you provide a link or an explanation for this part please: > > > * "You could also compile from the 2.7 mainy branch and get it from > there. Ipyc replaces pyc.py."* > > > > @ Andy Graham: > > I downloaded the ILMerge utility v2.12.0803 > and > tried to use the same syntax you gave me: > > C:\>"D:\Program Files\Microsoft\ILMerge\ILMe > > rge.exe" D:\dlls\pythonDll.dll /ver:1.2.3.4 /out:D:\dlls\pythonDll2.dll > > This is the error message I got: > > An exception occurred during merging: > Unresolved assembly reference not allowed: IronPython. > at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly) > at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type) > at System.Compiler.Ir2md.VisitReferencedType(TypeNode type) > at System.Compiler.Ir2md.VisitMethod(Method method) > at System.Compiler.Ir2md.Visit(Node node) > at System.Compiler.Ir2md.VisitClass(Class Class) > at System.Compiler.Ir2md.Visit(Node node) > at System.Compiler.Ir2md.VisitModule(Module module) > at System.Compiler.Ir2md.SetupMetadataWriter(String > debugSymbolsLocation) > at System.Compiler.Ir2md.WritePE(Module module, String > debugSymbolsLocation, > BinaryWriter writer) > at System.Compiler.Writer.WritePE(String location, Boolean > writeDebugSymbols, > Module module, Boolean delaySign, String keyFileName, String keyName) > at System.Compiler.Writer.WritePE(CompilerParameters > compilerParameters, Modu > le module) > at System.Compiler.Module.WriteModule(String location, > CompilerParameters opt > ions) > at ILMerging.ILMerge.Merge() > at ILMerging.ILMerge.Main(String[] args) > > > Thank you. > > > Kind regards, > Didier > > > > ------------------------------ > *From:* Slide > *Sent:* Monday, February 15, 2016 8:53 PM > *To:* Andrew Graham; Didier Bernard; ironpython-users at python.org > *Subject:* Re: [Ironpython-users] Changing the version information of > ironpython .dll assembly > > > You can do this now with ipyc, which should be in the next version. It > allows you to set many more things than pyc.py. You could also compile from > the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py. > > Thanks > > Slide > > On Mon, Feb 15, 2016, 10:11 Andrew Graham > wrote: > >> You can use ilmerge to change it after compilation >> >> http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly >> >> ilmerge mycode.dll /ver:1.2.3.4 /out:mycode.dll >> >> >> ILMerge is available via NuGet in Visual Studio or from the Microsoft >> Download center >> >> http://www.microsoft.com/en-gb/download/details.aspx?id=17630 >> >> >> >> Last time I looked the >> version on NuGet is 2.14.1208 while the download is the earlier version >> 2.12.0803. >> >> >> Andy Graham >> >> >> *From:* Didier Bernard >> *Sent:* Saturday, February 13, 2016 10:36 PM >> *To:* ironpython-users at python.org >> *Subject:* [Ironpython-users] Changing the version information of >> ironpython .dll assembly >> >> >> Hello, >> >> I have the following issue with ironpython 2.7: I would like to compiles >> the .py file to .dll. Here is a nice example >> >> on how this can be done with clr.CompileModules method. >> The problem is that the File Version of the compiled .dll is always: >> 0.0.0.0. >> >> How can I change that? >> I posted a question about this issue on stackoverflow.com >> . >> Even there there stands that the issue is solved, it isn't. the person who >> tried to help me (D. Alveno) really gave a lot of effort to do that. So >> this is why I marked his answer as the solving one. But in reality the >> issue is still not solved. >> >> D. Alveno suggested using ipy.exe pyc.py >> instead of >> clr.CompileModules method. In the end this again resulted in getting a .dll >> file with File Version: 0.0.0.0. >> >> I also tried a couple of other methods (those three ones mentioned on >> stackoverflow.com >> ), >> but all of them failed, as they do not seem to be made for ironpython .dll >> assemblies, but probably C# and VB.NET. >> >> I would welcome any kind of advice. >> >> Thank you in advance. >> >> With kind regards, >> Didier Bernard >> >> ------------------------------ >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From deedeebernard at hotmail.com Mon Feb 15 17:30:38 2016 From: deedeebernard at hotmail.com (Didier Bernard) Date: Mon, 15 Feb 2016 22:30:38 +0000 Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly In-Reply-To: References: <19A29BBF3D314891B59AB1AEB1AB13F9@AndyDesktop> , Message-ID: quote: "Grab the source from github.com/IronLanguages/main.git and compile the ironpython solution." Thank you Slide. I have never done that, so I do not know how to do it. I am not a programmer. ________________________________ From: Slide Sent: Monday, February 15, 2016 11:10 PM To: Didier Bernard; andy at agraham.demon.co.uk; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly Grab the source from github.com/IronLanguages/main.git and compile the ironpython solution. On Mon, Feb 15, 2016, 14:59 Didier Bernard > wrote: Thank you for the replies both Andy and Slide. @ Slide: I am currently bound to use ironpython 2.7. Can you provide a link or an explanation for this part please: "You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py." @ Andy Graham: I downloaded the ILMerge utility v2.12.0803 and tried to use the same syntax you gave me: C:\>"D:\Program Files\Microsoft\ILMerge\ILMe rge.exe" D:\dlls\pythonDll.dll /ver:1.2.3.4 /out:D:\dlls\pythonDll2.dll This is the error message I got: An exception occurred during merging: Unresolved assembly reference not allowed: IronPython. at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly) at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type) at System.Compiler.Ir2md.VisitReferencedType(TypeNode type) at System.Compiler.Ir2md.VisitMethod(Method method) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitClass(Class Class) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitModule(Module module) at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation) at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer) at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName) at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Modu le module) at System.Compiler.Module.WriteModule(String location, CompilerParameters opt ions) at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args) Thank you. Kind regards, Didier ________________________________ From: Slide > Sent: Monday, February 15, 2016 8:53 PM To: Andrew Graham; Didier Bernard; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly You can do this now with ipyc, which should be in the next version. It allows you to set many more things than pyc.py. You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py. Thanks Slide On Mon, Feb 15, 2016, 10:11 Andrew Graham > wrote: You can use ilmerge to change it after compilation http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly ilmerge mycode.dll /ver:1.2.3.4 /out:mycode.dll ILMerge is available via NuGet in Visual Studio or from the Microsoft Download center http://www.microsoft.com/en-gb/download/details.aspx?id=17630 Last time I looked the version on NuGet is 2.14.1208 while the download is the earlier version 2.12.0803. Andy Graham From: Didier Bernard Sent: Saturday, February 13, 2016 10:36 PM To: ironpython-users at python.org Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly Hello, I have the following issue with ironpython 2.7: I would like to compiles the .py file to .dll. Here is a nice example on how this can be done with clr.CompileModules method. The problem is that the File Version of the compiled .dll is always: 0.0.0.0. How can I change that? I posted a question about this issue on stackoverflow.com. Even there there stands that the issue is solved, it isn't. the person who tried to help me (D. Alveno) really gave a lot of effort to do that. So this is why I marked his answer as the solving one. But in reality the issue is still not solved. D. Alveno suggested using ipy.exe pyc.py instead of clr.CompileModules method. In the end this again resulted in getting a .dll file with File Version: 0.0.0.0. I also tried a couple of other methods (those three ones mentioned on stackoverflow.com), but all of them failed, as they do not seem to be made for ironpython .dll assemblies, but probably C# and VB.NET. I would welcome any kind of advice. Thank you in advance. With kind regards, Didier Bernard ________________________________ _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at codesys.com Tue Feb 16 02:58:29 2016 From: m.schaber at codesys.com (Markus Schaber) Date: Tue, 16 Feb 2016 07:58:29 +0000 Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly In-Reply-To: References: Message-ID: <727D8E16AE957149B447FE368139F2B59F6EB552@SERVER10> Hi, Didier, Just in case the problem cannot be solved here: You could use some post-processing using libraries like IKVM.Reflection or Mono.Cecil to change the version afterwards, working around the problem. Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org] On Behalf Of Didier Bernard Sent: Monday, February 15, 2016 5:42 PM To: ironpython-users at python.org Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly Hello, I have the following issue with ironpython 2.7: I would like to compiles the .py file to .dll. Here is a nice example on how this can be done with clr.CompileModules method. The problem is that the File Version of the compiled .dll is always: 0.0.0.0. How can I change that? I posted a question about this issue on stackoverflow.com. Even there there stands that the issue is solved, it isn't. the person who tried to help me (D. Alveno) really gave a lot of effort to do that. So this is why I marked his answer as the solving one. But in reality the issue is still not solved. D. Alveno suggested using ipy.exe pyc.py instead of clr.CompileModules method. In the end this again resulted in getting a .dll file with File Version: 0.0.0.0. I also tried a couple of other methods (those three ones mentioned on stackoverflow.com), but all of them failed, as they do not seem to be made for ironpython .dll assemblies, but probably C# and VB.NET. I would welcome any kind of advice. Thank you in advance. With kind regards, Didier Bernard -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at agraham.demon.co.uk Tue Feb 16 04:02:04 2016 From: andy at agraham.demon.co.uk (Andrew Graham) Date: Tue, 16 Feb 2016 09:02:04 -0000 Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly In-Reply-To: References: <19A29BBF3D314891B59AB1AEB1AB13F9@AndyDesktop>, Message-ID: <3CCE8B3A21D24E5DABAE6A3E7E882DF3@AndyDesktop> This is the error message I got: An exception occurred during merging: I always try something before suggesting it and it worked fine for me when I tried it on a dll I made with clr.CompileModules. Are your IronPython dlls in the GAC? i.e is IronPython installed from the msi? The only thing I can think of is that IronPython.dll is not accessible for some reason. Andy Graham From: Didier Bernard Sent: Monday, February 15, 2016 9:59 PM To: Slide ; andy at agraham.demon.co.uk ; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly Thank you for the replies both Andy and Slide. @ Slide: I am currently bound to use ironpython 2.7. Can you provide a link or an explanation for this part please: "You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py." @ Andy Graham: I downloaded the ILMerge utility v2.12.0803 and tried to use the same syntax you gave me: C:\>"D:\Program Files\Microsoft\ILMerge\ILMe rge.exe" D:\dlls\pythonDll.dll /ver:1.2.3.4 /out:D:\dlls\pythonDll2.dll Unresolved assembly reference not allowed: IronPython. at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly) at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type) at System.Compiler.Ir2md.VisitReferencedType(TypeNode type) at System.Compiler.Ir2md.VisitMethod(Method method) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitClass(Class Class) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitModule(Module module) at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation) at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer) at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName) at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Modu le module) at System.Compiler.Module.WriteModule(String location, CompilerParameters opt ions) at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args) Thank you. Kind regards, Didier -------------------------------------------------------------------------------- From: Slide Sent: Monday, February 15, 2016 8:53 PM To: Andrew Graham; Didier Bernard; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly You can do this now with ipyc, which should be in the next version. It allows you to set many more things than pyc.py. You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py. Thanks Slide On Mon, Feb 15, 2016, 10:11 Andrew Graham wrote: You can use ilmerge to change it after compilation http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly ilmerge mycode.dll /ver:1.2.3.4 /out:mycode.dll ILMerge is available via NuGet in Visual Studio or from the Microsoft Download center http://www.microsoft.com/en-gb/download/details.aspx?id=17630 Last time I looked the version on NuGet is 2.14.1208 while the download is the earlier version 2.12.0803. Andy Graham From: Didier Bernard Sent: Saturday, February 13, 2016 10:36 PM To: ironpython-users at python.org Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly Hello, I have the following issue with ironpython 2.7: I would like to compiles the .py file to .dll. Here is a nice example on how this can be done with clr.CompileModules method. The problem is that the File Version of the compiled .dll is always: 0.0.0.0. How can I change that? I posted a question about this issue on stackoverflow.com. Even there there stands that the issue is solved, it isn't. the person who tried to help me (D. Alveno) really gave a lot of effort to do that. So this is why I marked his answer as the solving one. But in reality the issue is still not solved. D. Alveno suggested using ipy.exe pyc.py instead of clr.CompileModules method. In the end this again resulted in getting a .dll file with File Version: 0.0.0.0. I also tried a couple of other methods (those three ones mentioned on stackoverflow.com), but all of them failed, as they do not seem to be made for ironpython .dll assemblies, but probably C# and VB.NET. I would welcome any kind of advice. Thank you in advance. With kind regards, Didier Bernard -------------------------------------------------------------------------------- _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From deedeebernard at hotmail.com Tue Feb 16 05:08:21 2016 From: deedeebernard at hotmail.com (Didier Bernard) Date: Tue, 16 Feb 2016 10:08:21 +0000 Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly In-Reply-To: <3CCE8B3A21D24E5DABAE6A3E7E882DF3@AndyDesktop> References: <19A29BBF3D314891B59AB1AEB1AB13F9@AndyDesktop>, , <3CCE8B3A21D24E5DABAE6A3E7E882DF3@AndyDesktop> Message-ID: Thank you Andrew. I am not a programmer so sometimes obvious things to try are not really something I know how to do. Yes, I installed my IronPython 2.7 from .msi. I changed the location of the pythonDll.dll file. I copied it into the IronPython installation folder, like so: C:\>"D:\Program Files\Microsoft\ILMerge\ILMerge.exe" "C:\Program Files\IronPytho n 2.7\pythonDll.dll" /ver:1.2.3.4 /out:"C:\Program Files\IronPython 2.7\pythonDl l2.dll" Now the previous error message disappeared. This one: Unresolved assembly reference not allowed: IronPython. But a new error message appeared: An exception occurred during merging: Unresolved assembly reference not allowed: System.Core. at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly) at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type) at System.Compiler.Ir2md.WriteTypeRefEncoded(BinaryWriter target, TypeNode ty pe) at System.Compiler.Ir2md.WriteTypeDefOrRefEncoded(BinaryWriter target, TypeNo de type) at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode typ e, Boolean instantiateGenericTypes) at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode typ e, Boolean instantiateGenericTypes) at System.Compiler.Ir2md.GetBlobIndex(TypeNode type) at System.Compiler.Ir2md.GetTypeSpecIndex(TypeNode type) at System.Compiler.Ir2md.VisitReferencedType(TypeNode type) at System.Compiler.Ir2md.GetMemberRefIndex(Member m) at System.Compiler.Ir2md.GetMethodToken(Method m) at System.Compiler.Ir2md.VisitConstruct(Construct cons) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitExpressionStatement(ExpressionStatement stateme nt) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitBlock(Block block) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitBlock(Block block) at System.Compiler.Ir2md.VisitMethodBody(Method method) at System.Compiler.Ir2md.VisitMethod(Method method) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitClass(Class Class) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitModule(Module module) at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation) at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer) at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName) at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Modu le module) at System.Compiler.Module.WriteModule(String location, CompilerParameters opt ions) at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args) I tried googling, and found this topic which describes the same error message: http://stevemichelotti.com/ilmerge-unresolved-assembly-reference-not-allowed-system/ Indeed I have the same .NET version, like in that topic: 4.0.30319 I created the ILMerge.exe.config file in the same folder where ILMerge.exe is: Now when I run the ILMerge.exe from the command line, the following error message appears: Process is terminated due to StackOverflowException Any suggestions on what to do? Thank you. Didier. ________________________________ From: Andrew Graham Sent: Tuesday, February 16, 2016 10:02 AM To: Didier Bernard; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly This is the error message I got: An exception occurred during merging: I always try something before suggesting it and it worked fine for me when I tried it on a dll I made with clr.CompileModules. Are your IronPython dlls in the GAC? i.e is IronPython installed from the msi? The only thing I can think of is that IronPython.dll is not accessible for some reason. Andy Graham From: Didier Bernard Sent: Monday, February 15, 2016 9:59 PM To: Slide ; andy at agraham.demon.co.uk ; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly Thank you for the replies both Andy and Slide. @ Slide: I am currently bound to use ironpython 2.7. Can you provide a link or an explanation for this part please: "You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py." @ Andy Graham: I downloaded the ILMerge utility v2.12.0803 and tried to use the same syntax you gave me: C:\>"D:\Program Files\Microsoft\ILMerge\ILMe rge.exe" D:\dlls\pythonDll.dll /ver:1.2.3.4 /out:D:\dlls\pythonDll2.dll Unresolved assembly reference not allowed: IronPython. at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly) at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type) at System.Compiler.Ir2md.VisitReferencedType(TypeNode type) at System.Compiler.Ir2md.VisitMethod(Method method) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitClass(Class Class) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitModule(Module module) at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation) at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer) at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName) at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Modu le module) at System.Compiler.Module.WriteModule(String location, CompilerParameters opt ions) at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args) Thank you. Kind regards, Didier ________________________________ From: Slide Sent: Monday, February 15, 2016 8:53 PM To: Andrew Graham; Didier Bernard; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly You can do this now with ipyc, which should be in the next version. It allows you to set many more things than pyc.py. You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py. Thanks Slide On Mon, Feb 15, 2016, 10:11 Andrew Graham > wrote: You can use ilmerge to change it after compilation http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly ilmerge mycode.dll /ver:1.2.3.4 /out:mycode.dll ILMerge is available via NuGet in Visual Studio or from the Microsoft Download center http://www.microsoft.com/en-gb/download/details.aspx?id=17630 Last time I looked the version on NuGet is 2.14.1208 while the download is the earlier version 2.12.0803. Andy Graham From: Didier Bernard Sent: Saturday, February 13, 2016 10:36 PM To: ironpython-users at python.org Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly Hello, I have the following issue with ironpython 2.7: I would like to compiles the .py file to .dll. Here is a nice example on how this can be done with clr.CompileModules method. The problem is that the File Version of the compiled .dll is always: 0.0.0.0. How can I change that? I posted a question about this issue on stackoverflow.com. Even there there stands that the issue is solved, it isn't. the person who tried to help me (D. Alveno) really gave a lot of effort to do that. So this is why I marked his answer as the solving one. But in reality the issue is still not solved. D. Alveno suggested using ipy.exe pyc.py instead of clr.CompileModules method. In the end this again resulted in getting a .dll file with File Version: 0.0.0.0. I also tried a couple of other methods (those three ones mentioned on stackoverflow.com), but all of them failed, as they do not seem to be made for ironpython .dll assemblies, but probably C# and VB.NET. I would welcome any kind of advice. Thank you in advance. With kind regards, Didier Bernard ________________________________ _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at agraham.demon.co.uk Tue Feb 16 07:26:21 2016 From: andy at agraham.demon.co.uk (Andrew Graham) Date: Tue, 16 Feb 2016 12:26:21 -0000 Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly In-Reply-To: References: <19A29BBF3D314891B59AB1AEB1AB13F9@AndyDesktop>, , <3CCE8B3A21D24E5DABAE6A3E7E882DF3@AndyDesktop> Message-ID: <47A8AC46B75B4EEC95E68911AAC0898C@AndyDesktop> Process is terminated due to StackOverflowException I?m afraid that I have no idea how to solve that one. It looks like something in your dll is making ILMerge loop endlessly. I?ve used ILMerge in anger a couple of times in the past and it has just worked for me so I?ve no experience of troubleshooting it. Andy Graham From: Didier Bernard Sent: Tuesday, February 16, 2016 10:08 AM To: Andrew Graham ; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly Thank you Andrew. I am not a programmer so sometimes obvious things to try are not really something I know how to do. Yes, I installed my IronPython 2.7 from .msi. I changed the location of the pythonDll.dll file. I copied it into the IronPython installation folder, like so: C:\>"D:\Program Files\Microsoft\ILMerge\ILMerge.exe" "C:\Program Files\IronPytho n 2.7\pythonDll.dll" /ver:1.2.3.4 /out:"C:\Program Files\IronPython 2.7\pythonDl l2.dll" Now the previous error message disappeared. This one: Unresolved assembly reference not allowed: IronPython. But a new error message appeared: An exception occurred during merging: Unresolved assembly reference not allowed: System.Core. at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly) at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type) at System.Compiler.Ir2md.WriteTypeRefEncoded(BinaryWriter target, TypeNode ty pe) at System.Compiler.Ir2md.WriteTypeDefOrRefEncoded(BinaryWriter target, TypeNo de type) at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode typ e, Boolean instantiateGenericTypes) at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode typ e, Boolean instantiateGenericTypes) at System.Compiler.Ir2md.GetBlobIndex(TypeNode type) at System.Compiler.Ir2md.GetTypeSpecIndex(TypeNode type) at System.Compiler.Ir2md.VisitReferencedType(TypeNode type) at System.Compiler.Ir2md.GetMemberRefIndex(Member m) at System.Compiler.Ir2md.GetMethodToken(Method m) at System.Compiler.Ir2md.VisitConstruct(Construct cons) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitExpressionStatement(ExpressionStatement stateme nt) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitBlock(Block block) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitBlock(Block block) at System.Compiler.Ir2md.VisitMethodBody(Method method) at System.Compiler.Ir2md.VisitMethod(Method method) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitClass(Class Class) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitModule(Module module) at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation) at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer) at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName) at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Modu le module) at System.Compiler.Module.WriteModule(String location, CompilerParameters opt ions) at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args) I tried googling, and found this topic which describes the same error message: http://stevemichelotti.com/ilmerge-unresolved-assembly-reference-not-allowed-system/ Indeed I have the same .NET version, like in that topic: 4.0.30319 I created the ILMerge.exe.config file in the same folder where ILMerge.exe is: Now when I run the ILMerge.exe from the command line, the following error message appears: Process is terminated due to StackOverflowException Any suggestions on what to do? Thank you. Didier. -------------------------------------------------------------------------------- From: Andrew Graham Sent: Tuesday, February 16, 2016 10:02 AM To: Didier Bernard; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly This is the error message I got: An exception occurred during merging: I always try something before suggesting it and it worked fine for me when I tried it on a dll I made with clr.CompileModules. Are your IronPython dlls in the GAC? i.e is IronPython installed from the msi? The only thing I can think of is that IronPython.dll is not accessible for some reason. Andy Graham From: Didier Bernard Sent: Monday, February 15, 2016 9:59 PM To: Slide ; andy at agraham.demon.co.uk ; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly Thank you for the replies both Andy and Slide. @ Slide: I am currently bound to use ironpython 2.7. Can you provide a link or an explanation for this part please: "You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py." @ Andy Graham: I downloaded the ILMerge utility v2.12.0803 and tried to use the same syntax you gave me: C:\>"D:\Program Files\Microsoft\ILMerge\ILMe rge.exe" D:\dlls\pythonDll.dll /ver:1.2.3.4 /out:D:\dlls\pythonDll2.dll Unresolved assembly reference not allowed: IronPython. at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly) at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type) at System.Compiler.Ir2md.VisitReferencedType(TypeNode type) at System.Compiler.Ir2md.VisitMethod(Method method) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitClass(Class Class) at System.Compiler.Ir2md.Visit(Node node) at System.Compiler.Ir2md.VisitModule(Module module) at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation) at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer) at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName) at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Modu le module) at System.Compiler.Module.WriteModule(String location, CompilerParameters opt ions) at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args) Thank you. Kind regards, Didier -------------------------------------------------------------------------------- From: Slide Sent: Monday, February 15, 2016 8:53 PM To: Andrew Graham; Didier Bernard; ironpython-users at python.org Subject: Re: [Ironpython-users] Changing the version information of ironpython .dll assembly You can do this now with ipyc, which should be in the next version. It allows you to set many more things than pyc.py. You could also compile from the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py. Thanks Slide On Mon, Feb 15, 2016, 10:11 Andrew Graham wrote: You can use ilmerge to change it after compilation http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly ilmerge mycode.dll /ver:1.2.3.4 /out:mycode.dll ILMerge is available via NuGet in Visual Studio or from the Microsoft Download center http://www.microsoft.com/en-gb/download/details.aspx?id=17630 Last time I looked the version on NuGet is 2.14.1208 while the download is the earlier version 2.12.0803. Andy Graham From: Didier Bernard Sent: Saturday, February 13, 2016 10:36 PM To: ironpython-users at python.org Subject: [Ironpython-users] Changing the version information of ironpython .dll assembly Hello, I have the following issue with ironpython 2.7: I would like to compiles the .py file to .dll. Here is a nice example on how this can be done with clr.CompileModules method. The problem is that the File Version of the compiled .dll is always: 0.0.0.0. How can I change that? I posted a question about this issue on stackoverflow.com. Even there there stands that the issue is solved, it isn't. the person who tried to help me (D. Alveno) really gave a lot of effort to do that. So this is why I marked his answer as the solving one. But in reality the issue is still not solved. D. Alveno suggested using ipy.exe pyc.py instead of clr.CompileModules method. In the end this again resulted in getting a .dll file with File Version: 0.0.0.0. I also tried a couple of other methods (those three ones mentioned on stackoverflow.com), but all of them failed, as they do not seem to be made for ironpython .dll assemblies, but probably C# and VB.NET. I would welcome any kind of advice. Thank you in advance. With kind regards, Didier Bernard -------------------------------------------------------------------------------- _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sven.Prevrhal at philips.com Tue Feb 16 04:13:26 2016 From: Sven.Prevrhal at philips.com (Prevrhal, Sven) Date: Tue, 16 Feb 2016 09:13:26 +0000 Subject: [Ironpython-users] Numpy and Scipy In-Reply-To: References: Message-ID: Thanks a lot Jeff. The source code that I used I found on github though https://github.com/numpy/numpy-refactor, and by Jason at https://github.com/jasonmccampbell. I did ask Jason as well, but he is apparently busy with other things ?. I did get the code compiled (refactor branches on .NET 4.0 and 4.5, for 32 bit Release and Debug). Scipy requires a Fortran compiler, I used Intel Fortran 11, however did not succeed in getting packages with Fortran dependencies to import in Python. Kind regards, Sven From: Jeff Hardy [mailto:jdhardy at gmail.com] Sent: Dienstag, 9. Februar 2016 17:43 To: Prevrhal, Sven Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] Numpy and Scipy On Mon, Feb 8, 2016 at 4:23 AM, Prevrhal, Sven > wrote: It would be a real boon to have these packages working under ipy in both 32- and 64-bit. Is someone working on this? I got a copy of old Enthought effort to work, but the numpy and scipy versions there are so old and therefor buggy and incomplete. What would it take to get them updated? A lot, I'm afraid. IIRC the intent was to port numpy/scipy to Cython and then use a C++/CLI backend for Cython to make them available; I have no idea if that was ever completed or merged to mainline. numpy/scipy used to be very tightly bound to CPython; there was a refactoring effort to reduce that so that they could be reused, but I don't know how far that got. I don't know if anyone at Enthought remembers where that effort left off, but that might a good place to start. CPython has a new "stable" C ABI (PEP 384) that may be useful, but it would still require a fair bit of work to integrate with IronPython. The old IronClad project might have some useful code there. - Jeff ________________________________ The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From startrekcafe at gmail.com Tue Feb 16 18:06:44 2016 From: startrekcafe at gmail.com (Marvin Hunkin) Date: Wed, 17 Feb 2016 09:36:44 +1030 Subject: [Ironpython-users] how to convert ruby code to iron python Message-ID: <003901d1690e$b7767f30$26637d90$@gmail.com> Hi, is there a tool to convert ruby code to iron python for visual studio 2015. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: