From Kresimir.Simunic at Reicofil.com Thu Dec 8 07:15:41 2016 From: Kresimir.Simunic at Reicofil.com (Simunic,Kresimir) Date: Thu, 8 Dec 2016 12:15:41 +0000 Subject: [Python.NET] Exception at PythhonEngine.Initialize() Message-ID: <140586760BB9EB4B915EB258E3CFB7C00112ABC298@VM-SERVER76.local.reifenhauser.com> Hi all, I use one third-party DLL (.NET) and after loading this DLL and then calling PythonEngine.Initialize() following exception will be thrown: 12/8/2016 1:05:34 PM: System.Reflection.ReflectionTypeLoadException Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information bei System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) bei System.Reflection.Assembly.GetTypes() bei Python.Runtime.AssemblyManager.ScanAssembly(Assembly assembly) bei Python.Runtime.AssemblyManager.Initialize() bei Python.Runtime.Runtime.Initialize() bei Python.Runtime.PythonEngine.Initialize() If I first call PythonEngine.Initialize() and then call this third-party DLL, everything is fine. The producer of this third-party DLL tells me the problem is not with them but with Python DLL. Can somebody help me ? Thanks. Regards, Kresimir. Reifenh?user Reicofil GmbH & Co. KG Spicher Stra?e 46, 53844 Troisdorf, Germany Registergericht Siegburg, Reg.Nr. HR A 4534 USt-IdNr. DE 814359351, Steuer-Nr. 5220/5760/0426 Reifenh?user Reicofil Verwaltungs-GmbH Registergericht Siegburg, Reg.Nr. HR B 788 Gesch?ftsf?hrer: Dr.-Ing. Bernd Kunze Please note: This message may contain information which is privileged, confidential and proprietary. -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.akhiyarov at gmail.com Thu Dec 8 08:10:48 2016 From: denis.akhiyarov at gmail.com (Denis Akhiyarov) Date: Thu, 8 Dec 2016 07:10:48 -0600 Subject: [Python.NET] Exception at PythhonEngine.Initialize() In-Reply-To: <140586760BB9EB4B915EB258E3CFB7C00112ABC298@VM-SERVER76.local.reifenhauser.com> References: <140586760BB9EB4B915EB258E3CFB7C00112ABC298@VM-SERVER76.local.reifenhauser.com> Message-ID: Hi Kresimir, I experienced a similar issue with pythonnet on the CPython side (import clr), but these could be unrelated. https://github.com/pythonnet/pythonnet/issues/242 How are you loading the third-party DLL? Did you check assembly binding log viewer for any errors? We can't help much, if you cannot provide a reproducible code with all dependencies. Thanks, Denis On Thu, Dec 8, 2016, 6:21 AM Simunic,Kresimir wrote: > Hi all, > > > > I use one third-party DLL (.NET) and after loading this DLL and then > calling PythonEngine.Initialize() following exception will be thrown: > > > > 12/8/2016 1:05:34 PM: System.Reflection.ReflectionTypeLoadException *Unable > to load one or more of the requested types. Retrieve the LoaderExceptions > property for more information* > > bei System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) > > bei System.Reflection.Assembly.GetTypes() > > bei Python.Runtime.AssemblyManager.ScanAssembly(Assembly assembly) > > bei Python.Runtime.AssemblyManager.Initialize() > > bei Python.Runtime.Runtime.Initialize() > > bei Python.Runtime.PythonEngine.Initialize() > > > > If I first call PythonEngine.Initialize() and then call this third-party > DLL, everything is fine. > > > > The producer of this third-party DLL tells me the problem is not with them > but with Python DLL. > > > > Can somebody help me ? > > > > Thanks. > > > > Regards, > > > > Kresimir. > > > > *Reifenh?user Reicofil GmbH & Co. KG* > Spicher Stra?e 46, 53844 Troisdorf, Germany > Registergericht Siegburg, Reg.Nr. HR A 4534 > USt-IdNr. DE 814359351, Steuer-Nr. 5220/5760/0426 > Reifenh?user Reicofil Verwaltungs-GmbH > Registergericht Siegburg, Reg.Nr. HR B 788 > Gesch?ftsf?hrer: Dr.-Ing. Bernd Kunze > > Please note: This message may contain information which is privileged, > confidential and proprietary. > > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kresimir.Simunic at Reicofil.com Thu Dec 8 09:40:05 2016 From: Kresimir.Simunic at Reicofil.com (Simunic,Kresimir) Date: Thu, 8 Dec 2016 14:40:05 +0000 Subject: [Python.NET] Exception at PythhonEngine.Initialize() In-Reply-To: References: <140586760BB9EB4B915EB258E3CFB7C00112ABC298@VM-SERVER76.local.reifenhauser.com> Message-ID: <140586760BB9EB4B915EB258E3CFB7C00112ABC2D0@VM-SERVER76.local.reifenhauser.com> Hi Denis, Thanks for answer. The third-party DLL I just link with early binding (including the reference in MS Visual Studio project). Regards, Kresimir. Von: PythonDotNet [mailto:pythondotnet-bounces+kresimir.simunic=reicofil.com at python.org] Im Auftrag von Denis Akhiyarov Gesendet: Donnerstag, 8. Dezember 2016 14:11 An: A list for users and developers of Python for .NET Betreff: Re: [Python.NET] Exception at PythhonEngine.Initialize() Hi Kresimir, I experienced a similar issue with pythonnet on the CPython side (import clr), but these could be unrelated. https://github.com/pythonnet/pythonnet/issues/242 How are you loading the third-party DLL? Did you check assembly binding log viewer for any errors? We can't help much, if you cannot provide a reproducible code with all dependencies. Thanks, Denis On Thu, Dec 8, 2016, 6:21 AM Simunic,Kresimir > wrote: Hi all, I use one third-party DLL (.NET) and after loading this DLL and then calling PythonEngine.Initialize() following exception will be thrown: 12/8/2016 1:05:34 PM: System.Reflection.ReflectionTypeLoadException Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information bei System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) bei System.Reflection.Assembly.GetTypes() bei Python.Runtime.AssemblyManager.ScanAssembly(Assembly assembly) bei Python.Runtime.AssemblyManager.Initialize() bei Python.Runtime.Runtime.Initialize() bei Python.Runtime.PythonEngine.Initialize() If I first call PythonEngine.Initialize() and then call this third-party DLL, everything is fine. The producer of this third-party DLL tells me the problem is not with them but with Python DLL. Can somebody help me ? Thanks. Regards, Kresimir. Reifenh?user Reicofil GmbH & Co. KG Spicher Stra?e 46, 53844 Troisdorf, Germany Registergericht Siegburg, Reg.Nr. HR A 4534 USt-IdNr. DE 814359351, Steuer-Nr. 5220/5760/0426 Reifenh?user Reicofil Verwaltungs-GmbH Registergericht Siegburg, Reg.Nr. HR B 788 Gesch?ftsf?hrer: Dr.-Ing. Bernd Kunze Please note: This message may contain information which is privileged, confidential and proprietary. _________________________________________________ Python.NET mailing list - PythonDotNet at python.org https://mail.python.org/mailman/listinfo/pythondotnet -------------- next part -------------- An HTML attachment was scrubbed... URL: From mtraudt at quantifisolutions.com Tue Dec 13 15:35:21 2016 From: mtraudt at quantifisolutions.com (Mark Traudt) Date: Tue, 13 Dec 2016 20:35:21 +0000 Subject: [Python.NET] .NET Core support Message-ID: I see there is a project for .NET Core at https://github.com/pythonnet/pythonnet/projects/2 but it is empty. Is there any work being done on this? If not, would you accept a pull request if somebody wanted to help? Mark Traudt | Chief Technology Officer Quantifi Inc. 17 Union Pl | Floor 2 | Summit | New Jersey | 07901 Tel: +1 (908) 273-9455 [https://www.quantifisolutions.com/Data/Sites/1/media/emailsignature/horizontal_red-line_email.jpg] [https://www.quantifisolutions.com/Data/Sites/1/media/emailsignature/web_email_sig-01.jpg] [https://www.quantifisolutions.com/Data/Sites/1/media/emailsignature/twitter_email_sig-01.jpg] [https://www.quantifisolutions.com/Data/Sites/1/media/emailsignature/linkedin_email_sig-01.jpg] [https://www.quantifisolutions.com/Data/Sites/1/media/emailsignature/google_email_sig-01.jpg] Notice: This email message, together with any attachments, contains information of Quantifi, Inc. (Summit, NJ, USA) that may be confidential, proprietary, copyrighted, and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.akhiyarov at gmail.com Tue Dec 13 16:19:39 2016 From: denis.akhiyarov at gmail.com (Denis Akhiyarov) Date: Tue, 13 Dec 2016 15:19:39 -0600 Subject: [Python.NET] .NET Core support In-Reply-To: References: Message-ID: Hi Mark, Recently Alex @var1ap had some success porting to .NET Core: https://github.com/pythonnet/pythonnet/issues/96 Of course we will accept pull requests, if you accept transition from ZPL 2.0 to MIT license. Thanks, Denis On Tue, Dec 13, 2016 at 2:35 PM, Mark Traudt wrote: > I see there is a project for .NET Core at https://github.com/pythonnet/ > pythonnet/projects/2 but it is empty. Is there any work being done on > this? If not, would you accept a pull request if somebody wanted to help? > > > > Mark Traudt | Chief Technology Officer > Quantifi Inc. > 17 Union Pl | Floor 2 | Summit | New Jersey | 07901 > Tel: +1 (908) 273-9455 <(908)%20273-9455> > > > > > > > > Notice: This email message, together with any attachments, contains > information of Quantifi, Inc. (Summit, NJ, USA) that may be confidential, > proprietary, copyrighted, and/or legally privileged, and is intended solely > for the use of the individual or entity named in this message. If you are > not the intended recipient, and have received this message in error, please > immediately return this by email and then delete it. > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > https://mail.python.org/mailman/listinfo/pythondotnet > -------------- next part -------------- An HTML attachment was scrubbed... URL: