Testers for new branch wanted

Hello PythonNet users! I'm making good progress in my https://pythonnet.svn.sourceforge.net/svnroot/pythonnet/branches/clr-2.0-pyt... branch. I'm finally at a point where I need people with real life applications to test my branch. Although the branch is named python 2.5 it contains code for Python 2.4 and is even prepared for Python 2.6 (untested yet). The target version is configured over define symboles PYTHON24, PYTHON25 or PYTHON26. The makefile is pretty self explaining. The settings in my new VS C# solution file are explained in VS_README.txt. The branch also fixes some code related to Python 2.4, mostly overloading related code. Managed methods with params and overloading with implicit types are still broken. I'm not sure if I'm going to implement the features. I don't need it for my project and my knowledge of CLR and C# is too limited yet. Important changes and fixes: * Python 2.5 compatible * New preload switch (turn preloading on or off by setting clr.preload to True or False) * New VS solution and project files * Unit test enhancements Christian

On 7/9/07, Christian Heimes <lists@cheimes.de> wrote:
Hello PythonNet users!
I'm making good progress in my https://pythonnet.svn.sourceforge.net/svnroot/pythonnet/branches/clr-2.0-pyt... branch. I'm finally at a point where I need people with real life applications to test my branch.
Does it work with binaries ( Managed C++ DLL ) compiled for .Net 1.1? -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/

It should work with any managed assembly (vb,cpp, etc) Sent from my iPhone On Jul 9, 2007, at 11:02 AM, "Christian Heimes" <lists@cheimes.de> wrote:
Roman Yakovenko wrote:
Does it work with binaries ( Managed C++ DLL ) compiled for .Net 1.1?
I don't know since I don't have any applications with .NET 1.1 binaries.
Christian
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet

Hello Christian! First, Thank You ! I needed this python 2.5 version since previous year but was too lazy to work on it my self. I will test it ASAP in my work, where we using Python.NET as build management software written by me. Will send bug reports here. Best regards Roman -----Original Message----- From: pythondotnet-bounces@python.org [mailto:pythondotnet-bounces@python.org] On Behalf Of Christian Heimes Sent: Monday, July 09, 2007 1:41 AM To: pythondotnet@python.org Subject: [Python.NET] Testers for new branch wanted Hello PythonNet users! I'm making good progress in my https://pythonnet.svn.sourceforge.net/svnroot/pythonnet/branches/clr-2.0 -python-2.5-branch/ branch. I'm finally at a point where I need people with real life applications to test my branch. Although the branch is named python 2.5 it contains code for Python 2.4 and is even prepared for Python 2.6 (untested yet). The target version is configured over define symboles PYTHON24, PYTHON25 or PYTHON26. The makefile is pretty self explaining. The settings in my new VS C# solution file are explained in VS_README.txt. The branch also fixes some code related to Python 2.4, mostly overloading related code. Managed methods with params and overloading with implicit types are still broken. I'm not sure if I'm going to implement the features. I don't need it for my project and my knowledge of CLR and C# is too limited yet. Important changes and fixes: * Python 2.5 compatible * New preload switch (turn preloading on or off by setting clr.preload to True or False) * New VS solution and project files * Unit test enhancements Christian _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet

Lacko Roman wrote:
I needed this python 2.5 version since previous year but was too lazy to work on it my self. I will test it ASAP in my work, where we using Python.NET as build management software written by me. Will send bug reports here.
We are going to need a Python 2.5 version soon for our project. We are planing to integrate a .NET 2.0 library in Blender using its Python 2.5 interface. Yes, the idea is sick but the results are rather promising. *g* Can you also test my branch with Python 2.4? You have to change two lines in the makefile or on setting of the Python.Runtime project in VS. My changes are *hopefully* compatible with the trunk's Python 2.4 version. Christian

Christian - do the overload tests pass for 2.4? I'm out of town ATM but can look at those when I get back (sat). Sent from my iPhone On Jul 9, 2007, at 1:46 PM, "Christian Heimes" <lists@cheimes.de> wrote:
Lacko Roman wrote:
I needed this python 2.5 version since previous year but was too lazy to work on it my self. I will test it ASAP in my work, where we using Python.NET as build management software written by me. Will send bug reports here.
We are going to need a Python 2.5 version soon for our project. We are planing to integrate a .NET 2.0 library in Blender using its Python 2.5 interface. Yes, the idea is sick but the results are rather promising. *g*
Can you also test my branch with Python 2.4? You have to change two lines in the makefile or on setting of the Python.Runtime project in VS. My changes are *hopefully* compatible with the trunk's Python 2.4 version.
Christian
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet

Hi Christian, I'm interested in Blender development too, I'm using Blender two years now, and integration with .net sounds very interesting BTW, to build the solution I have to set full path to ILASM.EXE in the postbuild evets in Python.Runtime and Console projects So far, my application runs with your branch, I tested version 2.5 and also 2.4. I will do more tests later, but so far so good :-) Roman -----Original Message----- From: pythondotnet-bounces@python.org [mailto:pythondotnet-bounces@python.org] On Behalf Of Christian Heimes Sent: Monday, July 09, 2007 7:47 PM To: pythondotnet@python.org Subject: Re: [Python.NET] Testers for new branch wanted Lacko Roman wrote:
I needed this python 2.5 version since previous year but was too lazy to work on it my self. I will test it ASAP in my work, where we using Python.NET as build management software written by me. Will send bug reports here.
We are going to need a Python 2.5 version soon for our project. We are planing to integrate a .NET 2.0 library in Blender using its Python 2.5 interface. Yes, the idea is sick but the results are rather promising. *g* Can you also test my branch with Python 2.4? You have to change two lines in the makefile or on setting of the Python.Runtime project in VS. My changes are *hopefully* compatible with the trunk's Python 2.4 version. Christian _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet

Lacko Roman wrote:
I'm interested in Blender development too, I'm using Blender two years now, and integration with .net sounds very interesting
My preliminary tests are promising after I found the correct place to put the files. I had to copy clr.pyd, Python.Runtime.dll and my assembly next to blender.exe
BTW, to build the solution I have to set full path to ILASM.EXE in the postbuild evets in Python.Runtime and Console projects
So far, my application runs with your branch, I tested version 2.5 and also 2.4. I will do more tests later, but so far so good :-)
Strange. Do you have multiple installations of .NET (1.1, 2.0 and 3.0)?. Christian

Yes, I have installed python 2.4 and 2.5 and .NET 1.1, 2.0 and 3.0 on my PC I first build clr.pyd and Python.Runtime.dll for python 2.4 then copied Python.Runtime.dll to <PYTHON24_HOME> and clr.pyd to <PYTHON24_HOME>\DLLs and tested my application with explicit call of python 2.4 interpreter, like <PYTHON24_HOME>\python.exe app.py Then I have repeated everything for python 2.5 So far, everything worked Roman -----Original Message----- From: pythondotnet-bounces@python.org [mailto:pythondotnet-bounces@python.org] On Behalf Of Christian Heimes Sent: Tuesday, July 10, 2007 5:26 PM To: pythondotnet@python.org Subject: Re: [Python.NET] Testers for new branch wanted Lacko Roman wrote:
I'm interested in Blender development too, I'm using Blender two years
now, and integration with .net sounds very interesting
My preliminary tests are promising after I found the correct place to put the files. I had to copy clr.pyd, Python.Runtime.dll and my assembly next to blender.exe
BTW, to build the solution I have to set full path to ILASM.EXE in the
postbuild evets in Python.Runtime and Console projects
So far, my application runs with your branch, I tested version 2.5 and
also 2.4. I will do more tests later, but so far so good :-)
Strange. Do you have multiple installations of .NET (1.1, 2.0 and 3.0)?. Christian _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet

Hi, Just sending a fresh build for python 2.5, in attachment Roman -----Original Message----- From: pythondotnet-bounces@python.org [mailto:pythondotnet-bounces@python.org] On Behalf Of Christian Heimes Sent: Monday, July 09, 2007 7:47 PM To: pythondotnet@python.org Subject: Re: [Python.NET] Testers for new branch wanted Lacko Roman wrote:
I needed this python 2.5 version since previous year but was too lazy to work on it my self. I will test it ASAP in my work, where we using Python.NET as build management software written by me. Will send bug reports here.
We are going to need a Python 2.5 version soon for our project. We are planing to integrate a .NET 2.0 library in Blender using its Python 2.5 interface. Yes, the idea is sick but the results are rather promising. *g* Can you also test my branch with Python 2.4? You have to change two lines in the makefile or on setting of the Python.Runtime project in VS. My changes are *hopefully* compatible with the trunk's Python 2.4 version. Christian _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet

Hi, i'm testing pythonnet25 in my ubuntu 7.04: 1. Some changes in makefile RUNNER=mono ILDASM=monodis ILASM=ilasm CSC=gmcs PYTHONVER=PYTHON25 all: python.exe clr.pyd (i dont't build Python.Test.dll) 2. Some changes in /etc/mono/config: <dllmap dll="python25" target="/usr/lib/libpython2.5.so.1.0" os="!windows"/> (To tell mono where is python library) 3. run : make i get some warnings and : Operation completed successfully 4. mono python.exe Unhandled Exception: System.EntryPointNotFoundException: PyUnicodeUCS2_FromUnicode at (wrapper managed-to-native) Python.Runtime.Runtime:PyUnicode_FromUnicode (string,int) at Python.Runtime.Runtime.PyUnicode_FromString (System.String s) [0x00000] at Python.Runtime.Runtime.Initialize () [0x00000] at Python.Runtime.PythonEngine.Initialize () [0x00000] at Python.Runtime.PythonConsole.Main (System.String[] args) [0x00000] i replaced all UCS2 with UCS4 in runtime.cs, and run make and mono python.exe again: Python 2.5.1 (r251:54863, May 27 2007, 15:52:07) [GCC 4.1.3 20070518 (prerelease) (Ubuntu 4.1.2-8ubuntu1)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
5. some code in c#: //PythonnetTest.cs using System; namespace PythonnetTest { class Test { private string name; private int number; public Test(string name) { this.name=name; Console.WriteLine("Constructor. Name= " +this.name); } public string Name{ get{return this.name;} set{ this.name=value; Console.WriteLine("Name= " +this.name); } } public int Number{ get{return this.number;} set{ this.number=value; Console.WriteLine("Number = " + this.number.ToString()); } } } } gmcs PythonnetTest.cs -t:library 6. back to pythonnet...
from PythonnetTest import Test a= Test("ABCDE") Constructor. Name= ABCDE a.Number=1500 Number = 1500 a.Number 1500 a.Name u'\U00420041\U00440043E\U0834d138\x00' print a.Name 𠁁E
and this is the problem: i can't get a string from net in pythonnet !!! some ideas what is wrong ? angel ignacio colmenares laguado 2007/7/10, Lacko Roman <rlacko@gratex.com>:
Hi, Just sending a fresh build for python 2.5, in attachment
Roman
-----Original Message----- From: pythondotnet-bounces@python.org [mailto:pythondotnet-bounces@python.org] On Behalf Of Christian Heimes Sent: Monday, July 09, 2007 7:47 PM To: pythondotnet@python.org Subject: Re: [Python.NET] Testers for new branch wanted
Lacko Roman wrote:
I needed this python 2.5 version since previous year but was too lazy to work on it my self. I will test it ASAP in my work, where we using Python.NET as build management software written by me. Will send bug reports here.
We are going to need a Python 2.5 version soon for our project. We are planing to integrate a .NET 2.0 library in Blender using its Python 2.5 interface. Yes, the idea is sick but the results are rather promising. *g*
Can you also test my branch with Python 2.4? You have to change two lines in the makefile or on setting of the Python.Runtime project in VS. My changes are *hopefully* compatible with the trunk's Python 2.4 version.
Christian
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet

angel ignacio colmenares laguado wrote:
a.Name u'\U00420041\U00440043E\U0834d138\x00' print a.Name 𠁁E
and this is the problem: i can't get a string from net in pythonnet !!!
some ideas what is wrong ?
I've a pretty good idea what is wrong. It's related to your changes to runtime.cs. Python on Windows is using UCS-2 (universal character set) to store unicode internally while most Linux distributions are using UCS-4. http://en.wikipedia.org/wiki/UTF-16/UCS-2 The dll import uses Charset.Unicode as a charset. My VS help claims that Charset.Unicode is a 2 bytes Unicode char which let me believe it's UCS2. I'll have to see how I can work around the issue. I may have to manually convert between UCS-2 and UCS-4. :( Christian

angel ignacio colmenares laguado wrote:
and this is the problem: i can't get a string from net in pythonnet !!!
some ideas what is wrong ?
Oh h... It's going to be a PITB to fix it. Microsoft's specs don't care about UCS-4 and UTF-32. They only support Windows like wide strings (aka UCS-2). http://www.mono-project.com/Dllimport#Commentary It seems the mono developers have run into the issue several years ago (even with Python) and they may be salvation at hand. Let's see if I can dig up some code. http://tirania.org/blog/archive/2003/Sep-13.html Christian

Ladies and gentlemen, please svn up! I've just implemented support for spam(params object[] egg) style methods. I'm down from four to one failing unit test. Christian
participants (5)
-
angel ignacio colmenares laguado
-
Brian Lloyd
-
Christian Heimes
-
Lacko Roman
-
Roman Yakovenko