[Python.NET] Using Third Party C# Libraries

Chris Spencer chrisspen at gmail.com
Tue Feb 20 17:55:17 CET 2007


Hi,

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 (initSharpNeatLib)

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

Thanks,
Chris


More information about the PythonDotNet mailing list