Select to view content in your preferred language

Tool not found error for arcpy.GetParameterInfo()

943
3
09-07-2021 08:18 AM
Vikas123
New Contributor

import arcpy
arcpy.GetParameterInfo('AddAngleDirectedLayout')

error:-
Traceback (most recent call last):File "<string>", line 2, in <module>
File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\__init__.py", line 1520, in GetParameterInfo
return gp.getParameterInfo(tool_name)
File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 448, in getParameterInfo
self._gp.GetParameterInfo(*gp_fixargs(args, True)))
AttributeError: Object: GetParameterInfo tool <AddAngleDirectedLayout> not found

Tags (1)
0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

GetParameterInfo—ArcGIS Pro | Documentation

Defining parameters in a Python toolbox—ArcGIS Pro | Documentation

What type of toolbox? In any event the tool AddAngleDirectedLayout can't be found or it has been improperly called 


... sort of retired...
0 Kudos
Vikas123
New Contributor

import arcpy
arcpy.GetParameterInfo('AddAngleDirectedLayout')
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\__init__.py", line 1520, in GetParameterInfo
return gp.getParameterInfo(tool_name)
File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 448, in getParameterInfo
self._gp.GetParameterInfo(*gp_fixargs(args, True)))
AttributeError: Object: GetParameterInfo tool <AddAngleDirectedLayout> not found

0 Kudos
ManishGohil
Occasional Contributor

Hi I am getting the same error, As per document you should pass tool name to resolve conflict.

In my case it was script tool I created and its not conflicting with any tool so I simply removed the tool name from arcpy.GetParameterInfo()

https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/getparameterinfo.htm

0 Kudos