RhinoPythonForVscode icon indicating copy to clipboard operation
RhinoPythonForVscode copied to clipboard

ModuleNotFoundError: No module named 'scriptcontext'

Open pkalnitz opened this issue 3 years ago • 0 comments

Hi, I'm having trouble configuring VScode: ModuleNotFoundError: No module named 'scriptcontext'

scriptcontext.py is in the IronPython folder just as it should be. Any idea why scriptcontext (and also rhinoscriptsyntax) aren't found? tx!

Here is my settings.json -

{ "workbench.colorTheme": "Default Dark+", "window.zoomLevel": 2, "python.defaultInterpreterPath": "C:\Users\user\AppData\Local\Programs\Python\Python38\python.exe", "python.analysis.extraPaths": [ "C:\Users\user\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\CodeListener (8c4235b6-64bc-4508-9166-bef8aa151085)\0.1.7.0\AutoComplete", "C:\Program Files\Rhino 7\Plug-ins\IronPython\Lib", "C:\Users\user\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib", "C:\Users\user\AppData\Roaming\McNeel\Rhinoceros\7.0\scripts" ], "python.autoComplete.extraPaths": [

    "C:\\Users\\user\\AppData\\Roaming\\McNeel\\Rhinoceros\\7.0\\Plug-ins\\CodeListener (8c4235b6-64bc-4508-9166-bef8aa151085)\\0.1.7.0\\AutoComplete",
    "C:\\Program Files\\Rhino 7\\Plug-ins\\IronPython\\Lib",
    "C:\\Users\\user\\AppData\\Roaming\\McNeel\\Rhinoceros\\7.0\\Plug-ins\\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\\settings\\lib",
    "C:\\Users\\user\\AppData\\Roaming\\McNeel\\Rhinoceros\\7.0\\scripts"
],

    // enable new language server. THIS IS EXTREMELY IMPORTANT TO HAVE FAST AUTOCOMPLETE!!
    "python.jediEnabled": false,

    // Enable/Disable rhinopython
    "RhinoPython.Enabled": true,
    // True if you want to reset script engine every time you send code, otherwise False
    "RhinoPython.ResetAndRun": true

}

pkalnitz avatar Nov 07 '22 12:11 pkalnitz