Hi
I develop python script with eclipse.
When i run the code under eclipse ou with the dos command line ), i get the error "function not found"...
This code runs well under the python console of arccatalog
I set the PYTHONPATH with the arcgis 10 bin an arccpy directories .. no issue !!
Please Help !!! je craque !!!
My code :
import arcpy
if __name__ == '__main__':
zPath = "c:/test.shp"
print"toto"
pDesc = arcpy.Describe(zPath)
# error here RuntimeError: DescribeData: Method DatasetType does not exist
print pDesc.DatasetType
# and here
pExtent = pDesc.Extent
# and here
print "Extent of shape :\nXMin: %f, YMin: %f, \nXMax: %f, YMax: %f" % \
(pExtent.XMin,pExtent.YMin,pExtent.XMax,pExtent.YMax)
# and here
pSr = pDesc.spatialReference
print pSr.name