Try the following syntax.

import CLR
from CLR.System.Reflection import Assembly
Assembly.LoadWithPartialName('TheAssebly')
from CLR.Name.Space import ClassName





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

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
_________________________________________________
Python.NET mailing list - PythonDotNet@python.org
http://mail.python.org/mailman/listinfo/pythondotnet
_________________________________________________
Python.NET mailing list - PythonDotNet@python.org
http://mail.python.org/mailman/listinfo/pythondotnet

Reply via email to