ironpython2 icon indicating copy to clipboard operation
ironpython2 copied to clipboard

Numpy with ironpython 2.7.7

Open maxmont opened this issue 7 years ago • 14 comments

Hi all,

I manage installing numpy and scipy libraries. it's working with ironpython 2.7.5 but I get an error with 2.7.7 :

File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\numpy_init_.py", line 155, in File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\numpy\core_init_.py", line 6, in File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\numpy\core\multiarray.py", line 8, in TypeError: init() takes exactly 1 argument (0 given)

How can I fix this issue. I can't go back to ironpython 2.7.5?

Thanks for your help Maxime

maxmont avatar Jan 29 '19 15:01 maxmont

I'm not sure how it would be working with any version of IronPython as numpy uses native libraries. We are no longer doing support for 2.7.7.

slide avatar Jan 29 '19 15:01 slide

I really need scipy for curve fitting. It's a great library. I'm surprised that it's no longer supported. Does it exist a workaround or something like that? Thanks again

maxmont avatar Jan 29 '19 15:01 maxmont

Again, I am not sure how it ever worked, so I don't know of any workarounds or anything. You can definitely try on 2.7.9 the latest release.

slide avatar Jan 29 '19 15:01 slide

I'm OK to use 2.7.9. But I don't see why these libraries work much better...

maxmont avatar Jan 29 '19 15:01 maxmont

I don't think they will work, but we are at least supporting 2.7.9 at this point. There were lots of changes between 2.7.7 and 2.7.9 which is why we aren't supporting 2.7.7 anymore. Again, I don't think it will work even on 2.7.9.

slide avatar Jan 29 '19 15:01 slide

I read another post to ask a scipy supporting in ironpython. But I don't see any final answer : https://github.com/IronLanguages/ironpython2/issues/285

maxmont avatar Jan 29 '19 16:01 maxmont

@slide Might be the Enthought version of numpy which we might be able to get working...

slozier avatar Jan 29 '19 21:01 slozier

@slozier I'm not familiar with that.

slide avatar Jan 29 '19 22:01 slide

@slide https://stackoverflow.com/questions/29397540/how-to-install-numpy-and-scipy-for-ironpython27-old-method-doenst-work

I tried messing around with it doing binding redirects to the new bits and it looks like we made at least one breaking API change.

slozier avatar Jan 29 '19 22:01 slozier

Hi all,

I confirm. I manage installing libraries with stackoverflow post help. It's working with ironpython 2.7.5. But I get an error with ironpython 2.7.7. The last libraries bin are not compatible with the new ironpython version.

maxmont avatar Jan 30 '19 08:01 maxmont

How to install numpy and scipy in ironpython 2.7.4 ?

1990chs avatar Feb 13 '21 14:02 1990chs

Just a suggestion: you could try mathnet.numerics instead of numpy and scipy.

misulo avatar Oct 07 '21 15:10 misulo

Just a suggestion: you could try mathnet.numerics instead of numpy and scipy. OK, but I don't know how to use it ? In the official website, there is no detailed help documentation

1990chs avatar Oct 08 '21 01:10 1990chs

hi, there's many library binding for .NET (Numpy, Pandas, Matplotlib, etc) from SciSharp. However, i did not yet to test the possibility of loading from IronPython.

*edited currently i've been tested for NumSharp, and it seems to be capable in loading and use the library from IronPython.

2023-10-22 20_56_25-test32 py - SciTE

xyont avatar Oct 21 '23 22:10 xyont