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 <[EMAIL PROTECTED]>:
Hi,
Just sending a fresh build for python 2.5, in attachment
Roman
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Christian Heimes
Sent: Monday, July 09, 2007 7:47 PM
To: [email protected]
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 - [email protected]
http://mail.python.org/mailman/listinfo/pythondotnet
_________________________________________________
Python.NET mailing list - [email protected]
http://mail.python.org/mailman/listinfo/pythondotnet
_________________________________________________
Python.NET mailing list - [email protected]
http://mail.python.org/mailman/listinfo/pythondotnet