i want to turn on label using arcpy, i use current mxd and my mxd path in my script and my layers also active in the current MXD, but it give me this eror, can somebody help me?
here the script i used :
import arcpy ... mxd = arcpy.mapping.MapDocument(r"C:\Users\P51\Desktop\testingLABEL.mxd") ... df = arcpy.mapping.ListDataFrames(mxd,"Layers") ... layer = arcpy.mapping.ListLayers(mxd, "point10", df) ... layer.showLabels = True
and this is the eror :
Runtime error Traceback (most recent call last): File "", line 4, in IndexError: list index out of range
here is the screenshot :