[Ironpython-users] Cannot import numpy from IronPython in VS
fzumstein at gmail.com
Thu Aug 25 23:31:16 CEST 2011
In fact, the dlls were pointing to the Sho installation which were probably
an older version. Now that I have deleted/referenced the correct dlls, I get
another error: The type initializer for 'NumpyDotNet.NpyCoreApi' threw an
But I guess this could be because I am on 64bit Win7 and as I understand
numpy only works on 32bit so far...
thanks for the help!
On Thu, Aug 25, 2011 at 12:09 AM, Dino Viehland <dinov at microsoft.com> wrote:
> It sounds like you’re missing IronPython.Modules.dll – this contains the
> signal module which is implemented in C#. If just referencing it and making
> sure it gets copied next to IronPython.dll doesn’t work then you’ll need to
> call scriptRuntime.LoadAssembly(typeof(CTypes).Assembly); to get the modules
> loaded into the runtime.****
> ** **
> *From:* ironpython-users-bounces+dinov=microsoft.com at python.org [mailto:
> ironpython-users-bounces+dinov=microsoft.com at python.org] *On Behalf Of *Felix
> *Sent:* Wednesday, August 24, 2011 12:34 PM
> *To:* ironpython-users at python.org
> *Subject:* [Ironpython-users] Cannot import numpy from IronPython in VS***
> ** **
> Hi all,
> I installed Numpy/SciPy from http://www.enthought.com/repo/.iron/ and I am
> running PTVS (1.0 Release Candidate 2), IronPython 2.7 and finally VS2010
> Now, I can import numpy easily on ipy.exe and even in the interactive
> window in Visual Studio, but I can't make it work embedded in a C# project.
> Even following the suggestions in
> http://stackoverflow.com/questions/5526151/ironpython-invocation-from-c-with-scipy-fails-with-importexception-no-moduleand adding the path references, I still get a "No module named signal"
> error. Without adding the paths I get a "No module named numpy" error.
> If sombody could create a simple project like this one:
> http://code.msdn.microsoft.com/Using-IronPython-with-80747ebe but
> additionally including a call to numpy in the helloworld.py file would be
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users