numpy 64bit support in PTVS and numpy System.Int64 casting?

Feb 7, 2012 at 4:00 AM
Edited Feb 7, 2012 at 7:12 PM

I installed scipy and numpy according to the instructions given here:

http://www.enthought.com/repo/.iron/

When I try to run with ipy64.exe I get the following:

 

Failed while initializing NpyCoreApi: BadImageFormatException:An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000
B)
NumpyDotNet stack trace:
  at NumpyDotNet.NpyCoreApi.GetNativeTypeInfo(Int32& intSize, Int32& longsize, Int32& longLongSize, Int32& longDoubleSize)
  at NumpyDotNet.NpyCoreApi..cctor()

 

Everything runs with with ipy.exe. Is the current version of numpy for IronPython not 64-bit compatible?

The root problem I am investigating (may or may not be related to above) involves invoking a .NET assembly method that requires a System.Int64 as an argument. The python native int works fine for this call but when invoking with a numpy.int32 the implicit cast fails with:

 

E
======================================================================
ERROR: data_type_tests
   System.Array[Int64](listValues)
TypeError: expected Int64, got numpy.int32

The code I am executing is:
values = array([1,2,3,4,5])
listValues = list(values);
System.Array[Int64](listValues)
If I make a list directly, i.e. values = [1,2,3,4,5]
then the above runs.