I need to use the Vector ruggedness measure (VRM) tool available from http://arcscripts.esri.com/details.asp?dbid=15423. However, I am using ArcGIS 10.2 for Desktop and these tools are made for 9.0, 9.1 and 9.3 only. I have tried to run this tool regardless and get the error:
Traceback (most recent call last): File
"C:\Users\jc221340\Documents\project\Processed
data\My_tools\Downloaded\ruggedness.py", line 20, in
gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Spatial Analyst Tools.tbx")
RuntimeError: Object: Toolbox C:/Program
Files/ArcGIS/ArcToolbox/Toolboxes/Spatial Analyst Tools.tbx does not
existFailed to execute (Ruggedness(VRM)).
How can I use this tool?
Best Answer
Since you are using v10.2 it is looking for the path of the Spatial Analyst toolbox which has changed directory locations slightly from v9:
To update, open the ruggedness.py file using Notepad or some other text editor and change line 20 path to something like this: