ERROR 000824: The tool is not licensed.

10229
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
SamuelRobinson
New Contributor
PS.

I am running ArcGIS ArcInfo Desktop 10 Education Edition on Windows Vista.

S.
0 Kudos
SamuelRobinson
New Contributor
Figured it out... you need to use arcpy.CheckOutExtensions("Spatial") to activate the extension
0 Kudos
MarkZollinger
Esri Contributor
The "u" just means the strings you are getting back are Unicode strings.
You can safely ignore them.




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?

0 Kudos
JuanLopera
New Contributor
I am trying to convert a feature to raster file... The stand alone python script says there are no requirements for doing this however, when executing it says 00824 error and says that theres is a problem with the FeatureToClass license... I don't understand why this it says there are no requirements and then this error shows up... What can I do?? I have all extension properly installed and running...

I need help please!!!
0 Kudos
AdrianaRojas
New Contributor
i've the same problem, I try to execute my script embebed
into Arcgis and it run perfectly, but when I try to run
*.py i receive this message ERROR 000824: The tool is not
licenced.
I included into my script this:

import arcview
import arcpy
arcpy.CheckOutExtension("Spatial")

I dont understand what is happening i'm so confused.

Can you help me?
Thanks a lot.


I am trying to convert a feature to raster file... The stand alone python script says there are no requirements for doing this however, when executing it says 00824 error and says that theres is a problem with the FeatureToClass license... I don't understand why this it says there are no requirements and then this error shows up... What can I do?? I have all extension properly installed and running...

I need help please!!!
0 Kudos
LucianoCampagnolo
New Contributor II
Hi, I've the very same problem...

Also, as Adriana, the script does check out all necessary extensions/product codes (however, the specific tool does not need any special product/extension).

The script runs smoothly within ArcGIS but not as a standalone python script.

Thanks in advance
Luc
0 Kudos
MarcGeörg
New Contributor
Hi

I´ve got absolutely the same Problem as Lucc.
I tried it on a different machine and it worked there fine.
So I´m thinking about the OS settings�?�. First I thought of the UAC (user access control, win7 professional) and disabled them but no change to the problem.

Has anyone solved this so far....?
Or has anybody some new ideas?

Thanks Maac :confused:
0 Kudos
HemingZhu
Occasional Contributor III
i've the same problem, I try to execute my script embebed
into Arcgis and it run perfectly, but when I try to run
*.py i receive this message ERROR 000824: The tool is not
licenced.
I included into my script this:

import arcview
import arcpy
arcpy.CheckOutExtension("Spatial")

I dont understand what is happening i'm so confused.

Can you help me?
Thanks a lot.


Add this line making sure your session is running under ArcInfo license (spatial runs under ArcInfo license).
os.environ['ESRI_SOFTWARE_CLASS']='Professional'
0 Kudos
JohnChurchill
New Contributor III
I'm having the same problem (same error anyway) as these other folks.

I tried the above suggestion to add  os.environ['ESRI_SOFTWARE_CLASS'] = 'Professional'
in the interactive window in PythonWin and it accepts that command but when I then try to enter
arcpy.AggregatePolygons_arc("input", "output", 30, 50000)

I got ERROR 000824: The tool is not licensed.
Failed to execute (AggregatePolygons).

We do have the ArcInfo License installed. I'm using version 10.0 with no service packs (waiting for 10.1 I suppose).
0 Kudos