Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I try to run the Zonal Statistic as a Table through arcpy and it gives me: ERROR 000824: The tool is not licensed.

Here is the doc for the function: http://resources.arcgis.com/en/help/main/10.1/index.html#//009z000000w8000000

I have tried including the line where it checks for my spatial analyst extension:

arcpy.CheckOutExtension("Spatial")

but that just leaves the script running for a long time, way longer than it should (10 minutes+ on a 250Mb raster!)

I was hoping anyone else has a workaround/fix? Thank you for your time!

Yes, I have installed Service Pack 1. And Yup, I have checked and enabled all the extensions. Furthermore, I have the advanced ArcInfo version.

share|improve this question
2  
You can have ArcGIS for Desktop Advanced without Spatial Analyst being licensed - have you checked to see whether your organisation has purchased and been licensed for Spatial Analyst? –  PolyGeo Mar 11 '13 at 2:43
    
Yup, I just checked ArcGIS Administrator to verify that Spatial Analyst indeed has the "yes, Authorized" next to it. Hmph. –  wholemilk Mar 11 '13 at 8:56
    
Is this a standalone script? If so, are you running it as 64-bit or 32-bit? Since you have SP1 installed, it is possible to use either. I have run into situations where one computer would run a 64-bit script while another would not (even though same hardware specs and mirrored installs). –  blord-castillo Mar 12 '13 at 20:42
    
Well my computer is 64-bit. But is that 32/64 bit compatibility something sporadic with different systems? I'll try running the script on another computer with GIS... thanks :) –  wholemilk Mar 14 '13 at 22:29
    
What does arcpy.CheckExtension("Spatial") return? –  Kirk Kuykendall Mar 20 '13 at 4:15
show 1 more comment

1 Answer

You may need to import the arcinfo module for the script to be able to use the spatial analyst extension. Your import statement at the beginning of your script should look like this:

import arcpy, arcinfo
share|improve this answer
    
thanks for the help! I tried it, no luck :( –  wholemilk Mar 11 '13 at 22:20
    
it works for mee –  AbdelMounaim TAOUSSI Mar 5 at 16:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.