Hello
I am attempting to write a Python script for some geoprocessing I want to automate, but I have run into 2 problems so far:
1) When accessing the arcpy.sa.ExtractByMask tool, it reports the following:
"Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "D:\ESRI\ArcGIS\Desktop10.0\arcpy\arcpy\sa\Functions.py", line 6723, in ExtractByMask
in_mask_data)
File "D:\ESRI\ArcGIS\Desktop10.0\arcpy\arcpy\sa\Utils.py", line 47, in swapper
result = wrapper(*args, **kwargs)
File "D:\ESRI\ArcGIS\Desktop10.0\arcpy\arcpy\sa\Functions.py", line 6719, in wrapper
out_raster)
File "D:\ESRI\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 474, in <lambda>
return lambda *args: val(*gp_fixargs(args))
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000824: The tool is not licensed.
Failed to execute (ExtractByMask)."
I do NOT get this error when I attempt to use the same tool in ArcMap. Any suggestions?
2) This is a more minor thing, but when I print off the contents of lists, or any other kind of printed result, there is a "u" concatenated at the beginning (e.g. arcpy.CheckExtension("spatial") ---> u'Available')
Is this a problem? Is it related to my first problem?
Thanks a lot!
Sam