# Rhino7 GHPython Runtime Error: Unable to add line

**URL:** <https://discourse.mcneel.com/t/rhino7-ghpython-runtime-error-unable-to-add-line/114668>\
**Category:** Scripting\
**Tags:** windows, mac, ghpython\
**Created:** [December 17, 2020, 2:34am UTC](https://discourse.mcneel.com/t/rhino7-ghpython-runtime-error-unable-to-add-line/114668 "2020-12-17T02:34:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![christopher.ho](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/christopher.ho/32/438141_2.png) [@christopher.ho](https://discourse.mcneel.com/u/christopher.ho)\
**Post date:** [December 17, 2020, 3:12am UTC](https://discourse.mcneel.com/t/rhino7-ghpython-runtime-error-unable-to-add-line/114668/4 "2020-12-17T03:12:05Z")

</div>

Are you sure you have the correct file as the python code runs and your line is missing.  
main issue I can see is that you are in grasshopper space rather than Rhino space.  
Please read the following:

> [@Understanding scriptcontext](https://discourse.mcneel.com/t/understanding-scriptcontext/7175/3):
>
> Thanks again Mitch! Not yet tested your script but this sounds like a great help in finding my way. -Willem

> [@What is the difference between : import rhinoscriptsyntax, Rhino, scriptcontext](https://discourse.mcneel.com/t/what-is-the-difference-between-import-rhinoscriptsyntax-rhino-scriptcontext/79814/2):
>
> You may want to start here Short-ish version: Rhinoscriptsyntax is a bunch of pre-written functions. They are written in python. under the hood…they are using rhinocommon. You can actually look at all the code because it exists on your computer, located here: C:\Users\YOURUSERNAMEAppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython Scripting (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript Here is the help documentation: [https://developer.rhino3d.com/api/RhinoScrip…](https://developer.rhino3d.com/api/RhinoScriptSyntax/)

---

_[View the full topic](https://discourse.mcneel.com/t/rhino7-ghpython-runtime-error-unable-to-add-line/114668)._
