Select to view content in your preferred language

'module' object has no attribute 'getParameterAsText'

3456
2
Jump to solution
11-22-2011 03:25 AM
DaveJordan1
Regular Contributor
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?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
GeorgeNewbury
Frequent Contributor
Try a capital G.
arcpy.GetParameterAsText(0)

View solution in original post

0 Kudos
2 Replies
GeorgeNewbury
Frequent Contributor
Try a capital G.
arcpy.GetParameterAsText(0)
0 Kudos
DaveJordan1
Regular Contributor
That did the trick.  Also, I was using 1 instead of 0 for the first parameter...

Thank you!
0 Kudos