IOErro: Toolbox file not found

2342
0
11-07-2013 10:46 AM
PeteVitt
Occasional Contributor III
Hi - I took this script from ArcGIS Online watersheds delineation service, but am getting the error:

IOError: The toolbox file http://elevation.arcgis.com/arcgis/rest/services/tools/Hydrology/GPServer/Watershed was not found.

the code is:

import time
import arcpy
arcpy.ImportToolbox("http://elevation.arcgis.com/arcgis/rest/services/tools/Hydrology/GPServer/Watershed", "hydro")
result = arcpy.Watershed_hydro(r"p:\projects\RWQCB_Bacteria\Points\MillCreekReach1.shp", "", "100",
    "Meters", "US30m", "False", "True")

while result.status < 4:
    print result.status
    time.sleep(0.2)
print "Execution Finished"

arcpy.CopyFeatures_management(result.getOutput(0), r'p:\projects\RWQCB_Bacteria\OutPutWatersheds\MillCreekReach1.shp')


any ideas?  I have an arcgis online account and am signed in

Thanks
Tags (2)
0 Replies