[Mono-list] Embedding Mono problem with PythonNet
lists at cheimes.de
Tue Jul 17 13:43:09 EDT 2007
I've run into another problem with PythonNet. PythonNet can be
integrated into a Python interpretor in two ways. Either one can use a
custom Python interpretor that initializes the PythonNet engine
or one can load an extension module into an ordinary Python interpretor.
The former is working well under Mono but the latter is giving me some
Under Windows and .NET the extension module is written in assembler and
compiled with ilasm to a Windows library. Mono's ilasm can compile the
module, too but the module can't be imported by an ELF Python
interpretor under Linux because ilasm creates a Windows library.
I've tried to create a Mono and Unix version of the clr module but it
doesn't work. "All" I have to do is to import the Python.Runtime.dll
assembly and call the static method
Python.Runtime.PythonEngine::InitExt(). My code is available under
It compiles fine with the flags from pkg-config but when I try to import
the module it crashes.
$ python2.5 -c "import clr" >segfault.txt 2>&1
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Mono-list