Hi
I’m trying to figure out what’s going on with python, all my codes suddenly stopped running yesterday. I’ve narrowed down the problem to the rhinoscriptsyntax module, the error only appears when I import it…
So if I run the code to just load the module:
import rhinoscriptsyntax as rs
The following error appears : Message: ‘module’ object has no attribute ‘LayerNames’
When I delete import rhinoscriptsyntax as rs the error goes away, but the code obviously doesn’t run.
I’ve re-installed rhino and the error persists. I’m a bit perplexed about the hole thing, has the module been corrupted? Mabey a manual reinstall will help?
Some feedback would be much appreciated.
Hi.
I “fixed” the problem, just nuked rhino of the map and did a fresh re-install:
0. Save you pre-sets and toolbars
- Goes without saying save all you aliases, macros, templates, toolbars, yada yada yada…
1. Run the Program Uninstall.
- Close the Rhino application.
- Go to Windows Search.
- Type App and Features. (or Add and Remove programs)
- Find the Rhinoceros x.0 program on the list, pick and select Uninstall button.
2. Delete the Rhino install folder.
- Browse to C:\Program Files.
- Delete folder Rhinoceros x or Rhinoceros x Evaluation.
3. Delete the Rhino folders.
- Browse to %AppData%\Roaming\McNeel\Rhinoceros.
- Delete folder x.0 where x is the Rhino version.
- Browse to %ProgramData%\McNeel\Rhinoceros
- Delete folder x.0 where x is the Rhino version.
4. Delete Registry Keys:
- Go to Windows Search and type Registry Editor.
- Open the Registry Editor.
- Browse to HKEY_LOCAL_MACHINE\Software\McNeel\Rhinoceros.
- Delete the x.0 Key. For example, Rhino 4.0, 5.0 or whatever version of Rhino you are removing.
- Browse to HKEY_CURRENT_USER\Software\McNeel\Rhinoceros.
- Delete the x.0 Key. For example, Rhino 4.0, 5.0 or whatever version of Rhino you are removing.
5. Reboot
- Apply all Windows updates.