[Ironpython-users] Cannot import numpy from IronPython in VS

Dino Viehland dinov at microsoft.com
Thu Aug 25 00:09:30 CEST 2011

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 Zumstein
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 Premium.
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-module and 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 awesome.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20110824/e1f87cba/attachment.html>

More information about the Ironpython-users mailing list