# Python Bug Grashopper

**URL:** <https://discourse.mcneel.com/t/python-bug-grashopper/121810>\
**Category:** Rhino for Mac\
**Tags:** mac, error, python, bug\
**Created:** [April 6, 2021, 5:00pm UTC](https://discourse.mcneel.com/t/python-bug-grashopper/121810 "2021-04-06T17:00:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_gfhr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/_gfhr/32/358515_2.png) [@\_gfhr](https://discourse.mcneel.com/u/_gfhr)\
**Post date:** [April 6, 2021, 5:00pm UTC](https://discourse.mcneel.com/t/python-bug-grashopper/121810/1 "2021-04-06T17:00:13Z")

</div>

Hi every one,  
i’m having some trouble with grasshopper, the thing is that the window for Python script does not work at any component for editing or writing. May be you could help me

I shear a sreen shot of my problem as well as info of my system.

 ![Captura de Pantalla 2021-04-06 a la(s) 11.57.01](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/a/b/5abbc1f4dc3e44b7f24ab51985dfa22fb57db61d.png)

**From the error**

System.TypeLoadException: Could not resolve type with token 0100003a from typeref (expected class ‘ObjCRuntime.NativeObjectExtensions’ in assembly ‘Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065’)  
at Eto.CodeEditor.CodeEditorHandler…ctor () [0x00033] in \<77e8364d23554eee9c1bb6f73e4a71d5\>:0  
at RhinoMac.Runtime.EtoStyles+\<\>c.b\_\_0\_6 () [0x00000] in :0  
at Eto.Widget…ctor () [0x0006a] in \<79d4fa420dbc462a8d3367bf88727ecc\>:0  
at Eto.Forms.BindableWidget…ctor () [0x00000] in \<79d4fa420dbc462a8d3367bf88727ecc\>:0  
at Eto.Forms.Control…ctor () [0x00000] in \<79d4fa420dbc462a8d3367bf88727ecc\>:0  
at Eto.CodeEditor.CodeEditor…ctor (Eto.CodeEditor.ProgrammingLanguage language, System.Boolean darkMode, System.Func`4[T1,T2,T3,TResult] getCompletions, System.Action`1[T] logger) [0x0000e] in \<617794a618c548758f2c97a66d06f505\>:0  
at GhPython.MacForms.EtoScriptForm…ctor (GhPython.Component.ScriptingAncestorComponent parent) [0x00413] in :0  
at GhPython.Component.PythonComponentAttributes.OpenEditor () [0x0002a] in :0

**System Info**

Rhino 7 SR5 2021-3-30 (Rhino 7, 7.5.21089.05002, Git hash:master @ 8c08ab365205eddee74c2829591c23a839506d31)  
License type: Evaluation, build 2021-03-30  
License details: Stand-Alone  
Expires on: 2021-06-14

Apple Intel 64-bit macOS Version 11.2.3 (Build 20D91) (Physical RAM: 16Gb)  
Mac Model Identifier: MacBookPro11,2  
Language: en

Intel Iris Pro OpenGL Engine (OpenGL ver:4.1 INTEL-16.1.12)

OpenGL Settings  
Safe mode: Off  
Use accelerated hardware modes: On  
Redraw scene when viewports are exposed: On

Anti-alias mode: None  
Mip Map Filtering: Linear  
Anisotropic Filtering Mode: High

Vendor Name: Intel Inc.  
Render version: 4.1  
Shading Language: 4.10  
Maximum Texture size: 16384 x 16384  
Z-Buffer depth: n/a  
Maximum Viewport size: 16384 x 16384  
Total Video Memory: 1536 MB  
Graphics: Intel Iris Pro  
Displays: Color LCD (221dpi 2x), ASUS VA24E (93dpi 1x)

Graphics processors  
Intel Iris Pro (1536 MB)  
Color LCD (1440 x 900)  
ASUS VA24E (1920 x 1080 @ 60.00Hz)

USB devices  
Apple Inc.: Apple Internal Keyboard / Trackpad  
Apple Inc.: Bluetooth USB Host Controller

Bluetooth devices  
Broadcom: Magic Mouse 2

Third party kernel extensions  
None

Third party plugins  
/usr/lib/swift/libswiftAppKit.dylib  
/usr/lib/swift/libswiftCloudKit.dylib  
/usr/lib/swift/libswiftContacts.dylib  
/usr/lib/swift/libswiftCore.dylib  
/usr/lib/swift/libswiftCoreData.dylib  
/usr/lib/swift/libswiftCoreFoundation.dylib  
/usr/lib/swift/libswiftCoreGraphics.dylib  
/usr/lib/swift/libswiftCoreImage.dylib  
/usr/lib/swift/libswiftCoreLocation.dylib  
/usr/lib/swift/libswiftDarwin.dylib  
/usr/lib/swift/libswiftDispatch.dylib  
/usr/lib/swift/libswiftFoundation.dylib  
/usr/lib/swift/libswiftIOKit.dylib  
/usr/lib/swift/libswiftMetal.dylib  
/usr/lib/swift/libswiftObjectiveC.dylib  
/usr/lib/swift/libswiftQuartzCore.dylib  
/usr/lib/swift/libswiftUniformTypeIdentifiers.dylib  
/usr/lib/swift/libswiftXPC.dylib  
/usr/lib/swift/libswiftos.dylib  
/usr/lib/swift/libswiftsimd.dylib  
/usr/lib/swift/libswiftAccelerate.dylib  
/usr/lib/log/liblog\_network.dylib

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino  
/Applications/Rhino 7.app/Contents/PlugIns/NamedSnapshots.rhp “Snapshots” 7.5.21089.1002  
/Applications/Rhino 7.app/Contents/PlugIns/PanelingTools.rhp “PanelingTools” 7.5.21089.1002  
/Applications/Rhino 7.app/Contents/Frameworks/RhMaterialEditor.framework “Renderer Development Kit” 7.5.21089.1002  
/Applications/Rhino 7.app/Contents/PlugIns/Displacement.rhp “Displacement” 7.5.21089.1002  
/Applications/Rhino 7.app/Contents/PlugIns/RhinoRender.rhp “Legacy Rhino Render” 7.5.21089.1002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Commands.rhp “Commands” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Import\_OBJ.rhp “Import\_OBJ” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export\_XAML.rhp “export\_xaml” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/QuadRemesh.rhp “QuadRemesh” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Export\_OBJ.rhp “export\_OBJ” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RDK\_EtoUI.rhp “RDK\_EtoUI” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export\_SVG.rhp “Export SVG” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/MeshCommands.rhp “MeshCommands” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Export\_DAE.rhp “Export\_DAE” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export\_PDF.rhp “PDF Export” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export\_IGES.rhp “IGES Export Plug-in” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Import\_SVG.rhp “Import\_SVG” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/BlockEdit.rhp “BlockEdit” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Export\_AMF.rhp “Export\_AMF” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoRenderCycles.rhp “Rhino Render” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/import\_DST.rhp “Import\_DST” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export\_PLY.rhp “PLY - Polygon File Format Export” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Import\_AMF.rhp “Import\_AMF” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoCycles.rhp “RhinoCycles” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoDLR\_Python.rhp “IronPython” 7.5.21089.5002  
/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/GrasshopperPlugin.rhp “Grasshopper” 7.5.21089.5002

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [April 6, 2021, 5:50pm UTC](https://discourse.mcneel.com/t/python-bug-grashopper/121810/2 "2021-04-06T17:50:06Z")

</div>

@piac - the error message says this one is for you!

-Pascal

---

<div class="post-metadata">

**Author:** ![piac](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piac/32/769366_2.png) [@piac](https://discourse.mcneel.com/u/piac)\
**Post date:** [April 6, 2021, 5:51pm UTC](https://discourse.mcneel.com/t/python-bug-grashopper/121810/3 "2021-04-06T17:51:55Z")

</div>

Thanks @pascal , this is known and tracked also in this other discussion:

> [@GhPython script editor broken in latest service release candidate](https://discourse.mcneel.com/t/ghpython-script-editor-broken-in-latest-service-release-candidate/121500/9):
>
> Yeah, GhPython has a few extra lines checking for problems and I put my email address there to be an easy target for support. Better to be fast IMO.

and on YouTrack, at [RH-63586](https://mcneel.myjetbrains.com/youtrack/issue/RH-63586).

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [April 6, 2021, 6:02pm UTC](https://discourse.mcneel.com/t/python-bug-grashopper/121810/4 "2021-04-06T18:02:46Z")

</div>

Thanks.

-Pascal

---

<div class="post-metadata">

**Author:** ![\_gfhr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/_gfhr/32/358515_2.png) [@\_gfhr](https://discourse.mcneel.com/u/_gfhr)\
**Post date:** [April 7, 2021, 3:52am UTC](https://discourse.mcneel.com/t/python-bug-grashopper/121810/5 "2021-04-07T03:52:30Z")

</div>

Thank you!
