I've had no trouble with using similar licensing in Python scripts previously, so I'm wondering if a recent upgrade/replacement of my PyScripter environment may have caused it to stop working.
I'm using ArcGIS 10.7.1.
Running the following in ArcMap works:
>>> arcpy.CheckExtension("Spatial") u'Available'
But running the following in PyScripter (3.6.1):
import arcpy print arcpy.CheckExtension("Spatial")
it just prints:
How can I get this to work in the upgraded PyScripter like it used to in the old PyScripter environment?
NB: If I run it on a PC where PyScripter has NOT been upgraded/replaced, it does work, and prints: