[IronPython] Importing NMathCore into Iron Python

Howard R. Hansen hrh1818 at comcast.net
Fri Nov 3 01:26:25 CET 2006


Michael,

You are correct. I should have been using CenterSpace.NMath.Core for the 
namespace.   Thank you for your reply.   Howard

Michael Foord wrote:
> Howard R. Hansen wrote:
>   
>> 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?
>>
>>   
>>     
> The namespace isn't always the same name as the assembly.
>
> According to this :
>
>     
> http://www.centerspace.net/doc/NMath/Core/ref/CenterSpace.NMath.CoreHierarchy.html
>
> it could be CenterSpace.NMath.Core - try that.
>
> Michael Foord
> http://www.voidspace.org.uk/python/index.shtml
>
>   
>> 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