[Python.NET] Using Third Party C# Libraries

Maksim Kozyarchuk mkozyarchuk at funddevelopmentservices.com
Tue Feb 20 18:03:08 CET 2007

Try the following syntax.

import CLR
from CLR.System.Reflection import Assembly
from CLR.Name.Space import ClassName

-----Original Message-----
From: pythondotnet-bounces at python.org
[mailto:pythondotnet-bounces at python.org] On Behalf Of Chris Spencer
Sent: Tuesday, February 20, 2007 11:55 AM
To: pythondotnet at python.org
Subject: [Python.NET] Using Third Party C# Libraries


I'm new to Python.Net, and I'd like to access a C# library (SharpNeat)
from Python. I tried placing it's DLL (SharpNeatLib.dll) into
C:\Program Files\PythonNet\Lib\site-packages but  when I try to import
it I get the error:

>>> import SharpNeatLib
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: dynamic module does not define init function

Is there something I'm doing wrong? Any help is appreciated.

Python.NET mailing list - PythonDotNet at python.org

More information about the PythonDotNet mailing list