000800 error when trying to create buffer areas from the command line

109
2
11-19-2019 12:56 AM
AnaMojica
New Contributor

I wrote a simple code to create a buffer for linear features. The script is meant to be run from the command line using arcpy and sys module. The script is this one:

When run I got a 000800 error, here the result:

I'm new to working with python and arcpy, any ideas what is wrong with my approach?

0 Kudos
2 Replies
JimCousins
MVP Regular Contributor

Try putting your variables in quotes.

Code example from buffer help:

import arcpy

arcpy.env.workspace = "C:/data"

arcpy.Buffer_analysis("roads", "C:/output/majorrdsBuffered", "100 Feet", "FULL", "ROUND", "LIST", "Distance")

Regards,

Jim

0 Kudos
JoshuaBixby
MVP Esteemed Contributor

Since your arguments are coming from command line arguments, it would be helpful to print and share them because we can't see what you are storing in the variables you are passing.

0 Kudos