[Mono-list] Python.Net use under Linux

Serge Gauthier gauthier.sg at wanadoo.fr
Wed Oct 8 04:30:34 EDT 2008


Hi,

I currently use Python 2.5, Boa constructor 0.6.1 under Windows or Linux Mandrake 2008 spring power pack. On a motion control CPU card, running RT Linux on Power PC, there is a Mono, C# dll server (PPmacClassLibrary). To communicate with under Windows XP, I had to recompile the Python-Runtime project with VS C#. It works now fine under Boa: I can import clr and do the following:
               lib = clr.AddReference("PPmacClassLibrary")
               from PPmacClassLibrary import PPmacDeviceClass
               self.pmac = PPmacDeviceClass(HOST, "PythonPmac", port)
It works fine.

Under Linux, it is not possible to do the same, I tryed to use clr.so and Python-Runtime.dll and the error message is : "impossible to load the assembly".
Could you tell me how to solve that ? I am not familar with C# and Mono.
I recompile easily the DLL with monodevelop but I can't recompile the CLR yet. How to do that ? In the Python.net package I have clr C source code.

Thanks a lot for your help

Serge



-- 
J’utilise la version gratuite de SPAMfighter pour utilisateurs privés.
Jusqu’à présent SPAMfighter a bloqué 6821 courriels spam et m’a fait gagner du temps.
Nous avons en ce moment 5.4 millions d’utilisateurs de par le monde entier. 
 Les utlisateurs payants n’ont pas ce message. Vous pouvez télécharger la version gratuite: http://www.spamfighter.com/lfr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20081008/fea7c3ae/attachment.html 


More information about the Mono-list mailing list