algorithmic modeling for Rhino
I know that the question was already asked but I still struggle with the installation of numpy / scipy on ironpython.
So if anybody have a tips to make it works it would be nice. :)
A tried a lot already but I cannot figure out the problem on step 4. I did every steps describe there :https://stevebaer.wordpress.com/2011/06/27/numpy-and-scipy-in-rhino... and also there : https://store.enthought.com/repo/.iron/ (You should have an account to connect there.)
So I get an error of IO I think, in step 4. It is describe here : (>>> http://community.sharpdevelop.net/forums/t/16072.aspx )
Download and install IronPython 2.7, this will require .NET v4.0.
Add the install location on the path, this is usually:
C:\Program File\IronPython 2.7
But on 64-bit Windows systems it is:
C:\Program File (x86)\IronPython 2.7
As a check, open a Windows command prompt and go to a directory (which is not the above) and type:
> ipy -V PythonContext 18.104.22.168 on .NET 4.0.30319.225
Bootstrap ironpkg, which is a package install manager for binary (egg based) Python packages. Download ironpkg-1.0.0.py and type:
> ipy ironpkg-1.0.0.py --install
Now the ironpkg command should be available:
> ironpkg -h (some useful help text is displayed here)
Installing scipy is now easy:
> ironpkg scipy
Any tips would be nice. Thank's.
Thanks so much
I just found this amazing news and tested GH_CPython. After dragging and dropping the GH_CPython.gha file into grasshopper, I input the following its editing window.
import numpy as np
After clicking TEST button in both, Rhino immediately crashed.
I also found that closing the editing window after typing the scripts saved no script at all.
My Rhino is 64 bit latest one installed at 64 bit windows 10. Grasshopper version is 0.9.0076 . Python version is 2.7.13 .
Hi Tom Jankowski,
Thanks so much for your feedback, I think this problem is resulted from needing administrative privileges because the component writes a temporary python file at C:\ partition and executes it, so would you open Rhino as administrator?
Hi Jihoon Kweon,
Thanks so much for your feedback.
First of all, I have to say that it is still under development, a lot of things need to be done.
- Would you try running Rhino as administrator?
- Would you make sure that Python is installed and running properly on your machine? you can do this by opening a new command prompt and just type python
- If it didn't work, would you write the command : path
in the command prompt and make sure that 'C:\Python27;' exists in the list that appears?
- I have modified the plugin a little bit, so, would you download the modified version from the attachments ?
Hi Mahmoud AbdelRahman,
Thank you for the reply. It works fine now at my quick test. I will also try using numpy on my workstation after getting back to my office.
This is an awesome development opening a lot of potentials.
Thanks and congratulation!
Thank you, Mahmoud.
I am looking foward to the updated output parts.
Thanks immensely for your blockbuster new port of Python to Grasshopper.
I can't get it to turn on yet, however: