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
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
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
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