[Python.NET] python 2.5

Brian Lloyd brian.lloyd at revolutionhealth.com
Fri Oct 19 20:03:51 CEST 2007


y, this is known as windows-only. for mono we'd probably have to do
a regular python C extension that uses the mono hosting apis to
bootstrap the runtime.

-Brian


On 10/19/07 7:45 AM, "Christian Heimes" <lists at cheimes.de> wrote:

> 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:
> 
> https://bugzilla.novell.com/show_bug.cgi?id=334544#c4
> 
> --- 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.
> 
> 
> Christian
> 
> 
> 
> _________________________________________________
> Python.NET mailing list - PythonDotNet at python.org
> http://mail.python.org/mailman/listinfo/pythondotnet

--------------------------
Brian Lloyd

brian.lloyd at revolutionhealth.com




More information about the PythonDotNet mailing list