ghPython editor crashes

I get this crash log when trying to edit a ghPython component in Rhino.

System::Windows::Forms::Application::ThreadException event occurred

SENDER: System.Threading.Thread

EXCEPTION: System.MissingMethodException
MESSAGE: Method not found: 'System.Windows.Forms.Control Rhino.Runtime.PythonScript.CreateTextEditorControl(System.String, System.Action`1<System.String>)'.
SOURCE: "GhPython"
CALL STACK
   at GhPython.Component.ScriptingAncestorComponent.CreateEditorControl(Action`1 helpCallback)
   at GhPython.Forms.PythonScriptForm..ctor(ScriptingAncestorComponent linkedComponent)
   at GhPython.Component.PythonComponentAttributes.OpenEditor()
   at GhPython.Component.ScriptingAncestorComponent.<AppendMenuItems>b__d(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

This is on Rhino 6 that seems to be using a Iron Python 2.7.8

image

I do have IronPython 2.7.3 installed but I followed the directions from @piac and disabled the GAC per these instructions: http://dynamobim.org/dynamo-and-ironpython/

At this point my Dynamo Python works fine, but Rhino 6 fails miserably.

Ideas? Cheers!

Ps. Worth noting is that the actual components execute code just fine. So for example a Ladybug ghPython components when placed on canvas will run just fine. It’s the editor that will not boot up.

Did you modify files installed by Rhino? Especially any .dll or GhPython.gha?
What version of Rhino 6 are you using?

Thanks,

Giulio


Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

1 Like

I think the issue might have been that our IT screwed up the install deployment. I will double check this. The exception thrown suggests that there is a dll missing. It could be that they moved some files around and that’s what’s causing it. Let’s put this on hold for now.

1 Like