[IronPython] Importing NMathCore into Iron Python

Dino Viehland dinov at exchange.microsoft.com
Fri Nov 3 00:32:37 CET 2006


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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Howard R. Hansen
Sent: Tuesday, October 31, 2006 8:12 PM
To: users at lists.ironpython.com
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
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list