IronLanguages / ironpython2

Implementation of the Python programming language for .NET Framework; built on top of the Dynamic Language Runtime (DLR).
http://ironpython.net
Apache License 2.0
1.07k stars 229 forks source link

Numpy with ironpython 2.7.7 #587

Open maxmont opened 5 years ago

maxmont commented 5 years ago

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

slide commented 5 years ago

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.

maxmont commented 5 years ago

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

slide commented 5 years ago

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.

maxmont commented 5 years ago

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

slide commented 5 years ago

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.

maxmont commented 5 years ago

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

slozier commented 5 years ago

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

slide commented 5 years ago

@slozier I'm not familiar with that.

slozier commented 5 years ago

@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.

maxmont commented 5 years ago

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.

1990chs commented 3 years ago

How to install numpy and scipy in ironpython 2.7.4 ?

misulo commented 3 years ago

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

1990chs commented 3 years ago

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

xyont commented 1 year ago

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