I updated the permissions to allow writing in that Rhino 8 folder.
Now when adding a python3 or IronPython component to the canvas it creates the component but it has the warning 1. No script to execute. Choose a language from component menu. and I cannot open the script interface. Doubleclicking does nothing.
went to the log file,a nd the most recent log has:
Info 10/14/2024 10:09:03 [RhinoCode] Language Registered: Plain Text 1.0 (rhinocode.builtin.text)
Info 10/14/2024 10:09:03 [RhinoCode] Language Registered: JSON 1.0 (rhinocode.builtin.json)
Info 10/14/2024 10:09:03 [RhinoCode] Language Registered: Git DotFile 1.0 (rhinocode.builtin.gitDotFile)
Info 10/14/2024 10:09:03 [RhinoCode] Language Registered: Yaml 1.0 (rhinocode.builtin.yaml)
the C# script component has the error message: 1. Failed to create code from "C#"
This is a clean install of Rhino 8 SR12 (8.12.24282.7001, 2024-10-08). Windows 11, GH1.0.0008
Unfortunately, I cannot even open the script editor. The first time I try to open it, it hangs for a while trying to load Python3, and then after that it fails immediately.
is there a way to reset the Python3 runtime outside of the Script Editor? anything else I can try? I do use conda environments for development, could it have something to do with that?
@OBucklin From what I can understand from the errors in the log file, it seems like scripting tools can not create temporary files and they fail. Would you mind:
Try to open ScriptEditor and let it fail
Open TestStaging.gh (2.6 KB) in Grasshopper and see if it outputs a file path or errors.
Close rhino, delete the %USERPROFILE%\.rhinocode\editor.json file and try opening the editor again
@eirannejad hey thanks for the help up to this point. Do you have any other ideas how I can get scripting working?
When I reinstalled Rhino8, all my settings and aliases were still there. Could it be that the problem is somehow saved in some user configs? Do you know what I files I would need to delete to actually get a clean install? Thanks!
Sorry to pester you, but this is very frustrating, as I consider scripting to be a crucial capability of Rhino, and it is currently completely nonfunctional. I tried to delete the user data files and then reinstall, but it did not help. Please let me know if you have any ideas.
I am sorry for being late on this. I was travelling and doing workshops.
Which Rhino version are you using that retuned a relative path like this? Would you mind sending me a screenshot of the test GH definition I sent above?
I am gonna DM you an internal Rhino 8.13/8.14 build and I would appreciate if you can test those. I have made some mods to isolate the python runtime from other pythons that might be on the machine so that might help as well.
Could there be a mixup between file locations?
doesn’t the ~ refer to the user directory?
There is a .rhinocode folder in the C:\Program Files\Rhino 8\System\~\ folder and in the C:\Users\obucklin\ folder. Rhino seems to be looking at the one in Program Files but the RhinoCodeLogs are in C:\Users\obucklin\.rhinocode\logs. Those logs are empty, though.
Okay so seems like something is making Rhino create a wrong path `C:\Program Files\Rhino 8\System~.rhinocode\py3
Would you mind checking your Rhino options for this and see if there is a value set there? run ScriptEditor command and then check this in Rhino options: