ERROR 000824: The tool is not licensed.

Discussion created by rsamuel on Mar 2, 2011
Latest reply on Jul 19, 2016 by stinger

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 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\", line 6723, in ExtractByMask
  File "D:\ESRI\ArcGIS\Desktop10.0\arcpy\arcpy\sa\", line 47, in swapper
    result = wrapper(*args, **kwargs)
  File "D:\ESRI\ArcGIS\Desktop10.0\arcpy\arcpy\sa\", line 6719, in wrapper
  File "D:\ESRI\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\", 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!