[Python.NET] PythonEngine.Initialize() exception

Stefan Schukat SSchukat at dspace.de
Mon Feb 22 09:08:57 EST 2016


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:pythondotnet-bounces+sschukat=dspace.de at python.org] On Behalf Of Simunic,Kresimir
Sent: Friday, February 19, 2016 10:39 AM
To: A list for users and developers of Python for .NET <pythondotnet at python.org>
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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20160222/3125a008/attachment.html>


More information about the PythonDotNet mailing list