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?
Try putting your variables in quotes.
Code example from buffer help:
arcpy.env.workspace = "C:/data"
arcpy.Buffer_analysis("roads", "C:/output/majorrdsBuffered", "100 Feet", "FULL", "ROUND", "LIST", "Distance")
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.