[Python.NET] python 2.5

Christian Heimes lists at cheimes.de
Fri Oct 19 13:45:00 CEST 2007

Paul Harter wrote:
> Hi,
> We are tring to move to python 2.5. and are having trouble getting
> pythonDotNet to import using the pre-built binaries. When we use the
> python.exe which is part of the pre-built binaries "import clr" can
> execute without a problem. However trying to use an existing
> python.exe (e.g. the standard installed one, but we also need to use
> it embedded) we always get the following error:
> ImportError: dynamic module does not define init function (initclr)
> What magic does the included python.exe perform, or what are we doing
> wrong in our installation.

I got a reply to my bug report:


--- Comment #4 from Paolo Molaro <lupus at novell.com>  2007-10-19 00:40:09
MST ---
ilasm doesn't support unmanaged exports, that is exporting managed
methods as unmanaged functions in a dll. This would be only useful on
windows as other systems don't use PE files for shared libraries, so
unless someone contributes the code this feature has no meaning in the
mono context.


More information about the PythonDotNet mailing list