Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What changes are needed to migrate scripts from the ArcGis 9.x environment/gp-object to the ArcGis 10/arcpy environment?

Can anyone provide a good overview what the changes are?

Can someone share pitfalls etc from their own experience?

share|improve this question
up vote 8 down vote accepted

GeoChalkboard can give you a good overview of the changes!

Here's the list, but check it out for more detail:

  1. Replace the import statement
  2. Replace all gp. with arcpy.
  3. Check your capitalization.
  4. The result tool is different.
  5. Replace any del gp statements.
  6. The overwrite tool is different.
  7. Import the env module from arcpy.
  8. List item
share|improve this answer
Thanks Roy. Good resource there! – LarsVegas Oct 24 '12 at 14:15
One little comment: 2. Replace all gp. with arcpy isn't really needed if you assign your import to gp, lik so: import arcpy gp = arcpy. Which also makes 5. obsolete, as well. – LarsVegas Oct 26 '12 at 8:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.