arcpy.Buffer_analysis error

2293
3
08-29-2011 06:23 PM
VadivelanPalanichamy
New Contributor II
Hi,

I am new in Python scripting..

I have downloaded samples from esri site.

buffer = arcpy.Buffer_analysis(roads, "in_memory/buffer", "1000 Feet"), "", "", "ALL"  )

A syntax error is shown in the above.  Any idea/suggestions on this......
Tags (2)
0 Kudos
3 Replies
StacyRendall1
Occasional Contributor III
Yo,

you have two close brackets ), but only one open bracket (... This is invalid syntax, hence the syntax error.

The number of brackets need to balance, I presume you actually wanted this:
buffer = arcpy.Buffer_analysis(roads, "in_memory/buffer", "1000 Feet"), "", "", "ALL" )
0 Kudos
MathewCoyle
Frequent Contributor
Yo, 

you have two close brackets   ), but only one open bracket   (... This is invalid syntax, hence the syntax error. 

The number of brackets need to balance, I presume you actually wanted this: 
buffer = arcpy.Buffer_analysis(roads, "in_memory/buffer", "1000 Feet"), "", "", "ALL" )


And I presume you meant this?
buffer = arcpy.Buffer_analysis(roads, "in_memory/buffer", "1000 Feet", "", "", "ALL" )
0 Kudos
StacyRendall1
Occasional Contributor III
And I presume you meant this?
buffer = arcpy.Buffer_analysis(roads, "in_memory/buffer", "1000 Feet", "", "", "ALL" )


True, true...
0 Kudos