[IronPython] Importing NMathCore into Iron Python
Howard R. Hansen
hrh1818 at comcast.net
Fri Nov 3 01:18:10 CET 2006
Dino,
Yes the namespace is not NMathCore. About 2 hours after I posted my
message I stumbled onto the actually namespace CenterSpace.NMath.Core.
Thank you for providing a method for determining an assembly's
namespace. Your method will save me a lot of time in the future.
Howard
Dino Viehland wrote:
> 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
> _______________________________________________
> 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