Select to view content in your preferred language

How to resolve this error message: "ERROR 000824: The tool is not licensed."?

45
0
yesterday
tzz_12
by
Emerging Contributor

Hi Everyone, 

I'm developing a script that would auto-generate a interpolated groundwater raster using Empirical Bayesian Kriging. When I try to run a geostatistical tool, I keep getting this error:

ERROR 000824: The tool is not licensed.

This is where the error occuring: 

gw_interpolated_lyr = ap.ga.EmpiricalBayesianKriging(gw_fc,field,None,gw_raster)

I checked the activated environment to ensure it as the proper libraries to activate the geostatistical tools. I also checked ArcGIS Pro to make sure the license is checked-out. Both is true. I wrote the script below to try to resolve the problem, but it keeps giving me the same output below.  Has this same error occur to anyone and how did you fix the problem? What are the common problems this error would occur? Thanks Everyone!

Geostatistical license is in an unknown state. Please verify the license configuration.
Spatial license is available and checked out.
# Check if the Geostatistical & Spatial Analyst license is available
def extension_checkout(extension):
    status = ap.CheckExtension(extension)
    if status == "Available":
        ap.CheckOutExtension(extension)
        print(f"{extension} license is available and checked out.")
    elif status == "Checked Out":
        print(f"{extension} license is currently checked out.")
    else:
        ap.CheckOutExtension("geostatistical")
        print(f"{extension} license is in an unknown state. Please verify the license configuration.")
        
#Check if Geostatistical Analysts license is checked out
extension_checkout("Geostatistical")

#Check if Spatial Analysts license is checked out
extension_checkout("Spatial")

 

0 Kudos
0 Replies