Re: [Python.NET] PythonEngine.Initialize() exception

Stefan Schukat <[email protected]>
Newsgroups gmane.comp.python.dotnet
Message-ID <19A216758DA7374193F26E107EDA37EA01AB9CB38A@Exchange2010.dspace.de>
Hello,

use the version from GitHub https://github.com/pythonnet/pythonnet

Starting with the 4.5.X runtime there are types which do not have a namespace. Hence the original code which uses the namespace of a type
      internal static void Register(Type t) {
            Dictionary<string, List<string>> nsmap = null;
            mapping.TryGetValue(t.Namespace, out nsmap);

will throw an ArgumentNullException. This code is corrected in the github version:
      internal static void Register(Type t) {
            if (null == t.Namespace || null == t.Name)
                return;


            Regards

                        Stefan



From: PythonDotNet [mailto:[email protected]] On Behalf Of Simunic,Kresimir
Sent: Friday, February 19, 2016 10:39 AM
To: A list for users and developers of Python for .NET <[email protected]>
Subject: Re: [Python.NET] PythonEngine.Initialize() exception


Is this the problem with Windows Server 2012 R2 (or .NET 4.5.1) ?

Can I download somewhere Python.Runtime DLL where this problem is fixed ?



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 - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.