Select to view content in your preferred language

Python Script Error

4682
11
02-02-2011 07:27 PM
jamesborris
Occasional Contributor
Whenever i try to run a simple python script i get this error

ERROR 000714: Error in script vt17.
Error in executing: cmd.exe /C I:\GIS\......

I can run a script from the python command window and from IDLE but when i add GetParameterAsText or try to run anything from toolbox i get that error

here is the simple buffer script:

import arcpy
import os
from arcpy inport env
env.workspace = I:\GIS
arcpy.SetProduct("ArcEditor")
shape = arcpy.GetParameterAsText(0)
output = arcpy.GetParameterAsTest(1)
arcpy.Buffer_analysis(shape, output, "1000 Feet", "", "", "", "")


any ideas? I installed the Win32 updates and tried it a million different ways. Please help.
Tags (2)
0 Kudos
11 Replies
DallasShearer
Deactivated User
James,

The error indicates you are running the python script out of process. Could you try checking on the property of the script tool to run the Python script in process. I don't see anything that stands out for why it would fail out of process but this would be worth a try.


Had similar error where checking the property of the script tool to run the Python script in process solved the problem. Thanks
0 Kudos
dariomasante
Deactivated User
Hi all, I know it is an old thread, but might be useful anyway. After spending a whole afternoon checking my script I found out there was a very simple answer, error 000714 was not a script error, but a file extension issue.
After finishing your script, be sure to save it with .py extension, then your tool in arcgis will work fine.
Hope it helps!
0 Kudos