Wrong results from CheckOutExtension?

Discussion created by deleted-user-dp61qRbKUaMp on Apr 16, 2012
Latest reply on May 16, 2012 by deleted-user-dp61qRbKUaMp
Am I doing something wrong here?  I'm just trying to check out the spatial analyst extension, but arcpy.CheckOutExtension("Spatial") insists it is "not licensed"?!? 
It is very much licensed (2 permanent licenses available, confirmed by ArcGIS Administrator) and I can use them fine from ArcMap.  Anyone else have the same problem?

import arcpy
result = arcpy.CheckOutExtension("Spatial")

Always returns "NotLicensed"