Eclipse (Kepler version) ESRI & Arcpy [message #1141003] |
Wed, 16 October 2013 15:23  |
Eclipse User |
|
|
|
HI Folks:
I'm running the Kepler Release (Build 20130614-0229) on a Win 7 machine that has ArcGIS 10.1 installed on it. I've checked and I'm pretty sure that my software is up to date. It just updated the PyDev module this morning.
I cannot figure out what I am doing wrong but I think that within Eclipse, I don't have something set right. Here is the code:
def CalcFields3(Polys):
fields = ("Tree, Tree2")
with arcpy.da.UpdateCursor(Polys, fields) as cursor:
for row in cursor:
row[1] = row[0]
cursor.updateRow(row)
Eclipse is giving me this error : "Undefined variable from import: UpdateCursor"
Any suggestions?
Layne
|
|
|
|
Powered by
FUDForum. Page generated in 0.08255 seconds