spatial license "NotLicensed" in stand alone script...

Discussion created by blomm on Apr 9, 2014
Latest reply on Apr 11, 2014 by blomm
... but fine (Available) when I debug the script in a python IDE.

In this doc on page 116, I read that the setting of product and extensions is necessary only within stand alone scripts.

So in my py script, I first do the full check for the spatial analyst license, but it fails when I call this script from a command window.

If I open administrator, and see what I have installed, Spatial Analyst is there: Installed, Authorized and Permanent (non expiring). Single Use, so no license server to point at.

Does anyone have any hints about how I can solve this?