ERROR 000824: The tool is not licensed.

10245
12
03-02-2011 06:17 AM
SamuelRobinson
New Contributor
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
Tags (2)
0 Kudos
12 Replies
ScottRobinson1
New Contributor
Much appreciated. Was having the same issue, this fixed the problem
0 Kudos
ChristopherBlinn1
Occasional Contributor III
EDIT:  Moved post to separate forum

ArcGIS for Desktop 10.2.1

Also receiving this error...

# Import arcpy module
import arcpy
from arcpy import env
import os

# Overwrite pre-existing files
arcpy.env.overwriteOutput = True

os.environ['ESRI_SOFTWARE_CLASS']='Professional' #Added based on forum suggestion
arcpy.CheckOutExtension('Spatial') #Added based on forum suggestion

Input = "C:\\GIS_DATA\\FGDB.gdb\\InputPolygons"
Input_Layer = "Feature_Layer"
Output = "C:\\GIS_DATA\\FGDB.gdb\\OutputPoints"

try:
   arcpy.MakeFeatureLayer_management(Input, Input_Layer, "", "", "field alias VISIBLE NONE")
   arcpy.FeatureToPoint_management(Input_Layer, Output, "CENTROID")

except:
   print arcpy.GetMessages()


Result:
Failed to execute. Parameters are not valid.
ERROR 000824: The tool is not licensed.
Failed to execute (FeatureToPoint).


Never had this issue before...
0 Kudos
STINGERSIG_EDF-DPI
New Contributor

Same problem, anyone with a solution ?

Cheers

Fred

0 Kudos