I am trying to perform IsNull function to a raster using PyScripter. This is the code I use:
import arcpyimport arcinfoInRaster = "C:\\data\InRaster"IsNullRa = "C:\\data\IsNullRa"arcpy.gp.IsNull_sa(InRaster, IsNullRa)In ArcGIS Python window, it works OK. However, in a different editor such as PyScripter I get this error:
ERROR 000824: The tool is not licensed. Failed to execute (IsNull).I have ArcGIS 10.1 and do have spatial analyst. I tried installing Microsoft Visual C++ 2008 Redistributable Package (x64) from here but it did not work. Do you know how I can run IsNull outside of ArcGIS? Thanks.
أكثر...
import arcpyimport arcinfoInRaster = "C:\\data\InRaster"IsNullRa = "C:\\data\IsNullRa"arcpy.gp.IsNull_sa(InRaster, IsNullRa)In ArcGIS Python window, it works OK. However, in a different editor such as PyScripter I get this error:
ERROR 000824: The tool is not licensed. Failed to execute (IsNull).I have ArcGIS 10.1 and do have spatial analyst. I tried installing Microsoft Visual C++ 2008 Redistributable Package (x64) from here but it did not work. Do you know how I can run IsNull outside of ArcGIS? Thanks.
أكثر...