MahmoudAbdelRahman / GH_CPython

CPython plugin for Rhino-Grasshopper
BSD 2-Clause "Simplified" License
175 stars 38 forks source link

Installation #1

Closed Vyrwn closed 7 years ago

Vyrwn commented 7 years ago

Hi Mahmoud,

first of all, thank you very much for developing this, as it has been a missing component from GH. I just want to ask you about the installation process. Is it a simple copy of the gha into the libraries folder?

The component is visible in my tooldbar, but whenever I try to run any code, the process freezes and Rhino crashes.

Any advise will be much appreciated.

I have several python tools that run outside Grasshopper that I would like to implement and some of them run using Pandas module. Do you think this is something that will be stable enough in the environment you are building?

Thank you very much, -Byron

jkweon commented 7 years ago

How are you, Mahmoud?

I experienced the same issue. Please let us know how to properly install and run the component.

Thanks in advance. Jihoon

MahmoudAbdelRahman commented 7 years ago

Hi @Vyrwn . Hi @jkweon ,

Thanks so much for your feedback,

  1. Would you please confirm that you open Rhino as administrator?
  2. Also, you have to make sure that Python is installed and running properly on your machine, to do this, open a new command prompt and type python. A python shell will open as follows: pythonshell Then close python by typeing quit()
  3. Then type path in the command prompt to make sure that C:\python27; exists. pythonexists

I have several python tools that run outside Grasshopper that I would like to implement and some of them run using Pandas module. Do you think this is something that will be stable enough in the environment you are building?

Yes I think that it will be stable after getting finished, I'm still developing it to connect the component inputs and outputs to the python IDE. I have used this plugin to implement a numpy, scipy, PyOpenGL and pygame modules. it ran well. pyinterface So, Please, let me know if these steps will help, I have uploaded a modified version of the plugin on the repository

jkweon commented 7 years ago

Hi Mahmoud AbdelRahman,

Thanks for your email.

It works fine now. The issue is administrator privilege. You are right. Rhino must be run as an administrator.

This is an awesome development opening a lot of potentials.

Thanks and congratulation!

Jihoon

On Wed, Jul 19, 2017 at 5:05 AM, Mahmoud AbdelRahman < notifications@github.com> wrote:

Hi @Vyrwn https://github.com/vyrwn . Hi @jkweon https://github.com/jkweon ,

Thanks so much for your feedback,

  1. Would you please confirm that you open Rhino as administrator?
  2. Also, you have to make sure that Python is installed and running properly on your machine, to do this, open a new command prompt and type python. A python shell will open as follows: [image: pythonshell] https://user-images.githubusercontent.com/6969514/28336761-79ae9a94-6c03-11e7-95d4-2aeb1c2e2ce3.JPG Then close python by typeing quit()
  3. Then type path in the command prompt to make sure that C:\python27; exists. [image: pythonexists] https://user-images.githubusercontent.com/6969514/28336844-bb5bdcc2-6c03-11e7-9403-db643fd4d41e.JPG

I have several python tools that run outside Grasshopper that I would like to implement and some of them run using Pandas module. Do you think this is something that will be stable enough in the environment you are building?

Yes I think that it will be stable after getting finished, I'm still developing it to connect the component inputs and outputs to the python IDE. I have used this plugin to implement a numpy http://www.numpy.org/, scipy https://www.scipy.org/, PyOpenGL http://pyopengl.sourceforge.net/ and pygame https://www.pygame.org/ modules. it ran well. [image: pyinterface] https://user-images.githubusercontent.com/6969514/28337099-c3f65d48-6c04-11e7-9437-1cf3420ac750.jpg So, Please, let me know if these steps will help, I have uploaded a modified version of the plugin on the repository http://GH_CPython/GH_CPython.gha

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MahmoudAbdelRahman/GH_CPython/issues/1#issuecomment-316181610, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0dONmOp4vXZYz8RxtvFGVc4PPkoehfks5sPRAUgaJpZM4ObIow .

MahmoudAbdelRahman commented 7 years ago

Hi Jihoon, This is great! Thanks so much.