DaveJordan

'module' object has no attribute 'getParameterAsText'

Discussion created by DaveJordan on Nov 22, 2011
Latest reply on Nov 22, 2011 by DaveJordan
I have just begun wrinting a script and am hitting a wall...  I get the following message:

Running script ParcelBuffer...
<type 'exceptions.AttributeError'>: 'module' object has no attribute 'getParameterAsText'
Failed to execute (ParcelBuffer).

Here is all that is in the script:

# Import arcpy module
import arcpy
from arcpy import env
import os


# Local variables:
mxd = arcpy.mapping.MapDocument("Current")


# Set variables from user input
RequestID = arcpy.getParameterAsText(1)
Dist = arcpy.getParameterAsText(2)

What is wrong with this?

Outcomes