[Python.NET] PythonEngine.Initialize() exception

2016-02-18 Thread Simunic,Kresimir
Hi all, I have a following problem - I installed Python and am calling PythonEngine.Initialize() from C#. I get following exception: The value should not be NULL. Parameter name: key. The software is running on Windows Server 2012 R2. Does anybody know what could be the problem ? Thanks ! B

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

2016-02-18 Thread Denis Akhiyarov
Hi Kresimir, Which python version, x86 or x64, .NET, which pythonnet version and how you installed it? Is python registered in your path environment variable? If not, then you need to specify PYTHONPATH Cheers, Denis On Thursday, February 18, 2016, Simunic,Kresimir < kresimir.simu...@reicofil.

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

2016-02-18 Thread Simunic,Kresimir
Hi Denis, I have actually 3 different computers, one has Windows 7, one has Windows Server 2008, and one Windows Server 2012 R2. Only Windows Server 2012 R2 is trouble maker. I installed pythonnet the same way on all machines: - i downloaded it, and copied python.runtime dll in local d

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

2016-02-18 Thread Simunic,Kresimir
Hi Denis, Here is the exception stack. Maybe it helps you to know the problem ? 18.02.2016 19:38:02: Initialisation Error : System.ArgumentNullException: Der Wert darf nicht NULL sein. Parametername: key bei System.Collections.Generic.Dictionary`2.FindEntry(TKey key) bei System.Collection

[Python.NET] TypeError: unindexable object

2016-02-18 Thread Rog F
Hello, I'm trying to set an object property based on an indexer as described in the C# example here: https://msdn.microsoft.com/en-us/library/hh964567.aspx, but both examples fail with "TypeError: unindexable object" Python code looks like this: criteria = ManagementPackClassCriteria("Name

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

2016-02-18 Thread Denis Akhiyarov
Where did you download pythonnet from? Which version/branch? On Thursday, February 18, 2016, Simunic,Kresimir < kresimir.simu...@reicofil.com> wrote: > > > Hi Denis, > > > > I have actually 3 different computers, one has Windows 7, one has Windows > Server 2008, and one Windows Server 2012 R2. >

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

2016-02-18 Thread Simunic,Kresimir
__ i downloaded from https://sourceforge.net/projects/pythonnet/files/ i took the first file CLR 4.0 about .Net framework, i guess on Windows Server 2012 R2 is 4.5 actually. is this ok ? _ Von: PythonDotNet [pythondotnet-bounces+kresimir.simunic=reicofil.

Re: [Python.NET] TypeError: unindexable object

2016-02-18 Thread Denis Akhiyarov
Can you include full traceback with debug build of pythonnet from develop branch on GitHub? Also please log this issue to github. On Thursday, February 18, 2016, Rog F wrote: > > Hello, > > > I'm trying to set an object property based on an indexer as described in > the C# example here: > http

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

2016-02-18 Thread Denis Akhiyarov
Pythonnet is hosted on GitHub since 2014. GitHub.com/pythonnet Can anyone update sourceforge to point to this new repo? On Thursday, February 18, 2016, Simunic,Kresimir < kresimir.simu...@reicofil.com> wrote: > > __ > i downloaded from > > > https://sourceforge.net/projects/pythonnet/files/