Could the namespaces be something other than NMathCore? You could do:
asm = clr.LoadAssemblyFromFile('NMathCore.dll')
dir(asm)
and you should see the namespaces in the assembly and those should work in the
import statement.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Howard R. Hansen
Sent: Tuesday, October 31, 2006 8:12 PM
To: [email protected]
Subject: [IronPython] Importing NMathCore into Iron Python
When I use the following procedure to import a dynamic link math library
into Iron Python I get the error show in the last 4 lines of the
procedure. What am I doing wrong and what should I do to import the
NMathCore math library into Iron Python?
Howard
>>> import clr
>>> clr.AddReferenceToFile("NMathCore.dll")
>>> clr.References
(( mscorlib, .... ),
(System, ... ),
(NMathCore, Version=2.2.3.0, Culture=neutral,
PublicKeyToken=2064076cc7895eab))
>>> from NMathCore import *
Traceback (most recent call last):
File, line 0, in (stdin)##15
File, line 0, in __import__##7
ImportError: No module named NMathCore
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com