Title sums it up, with a standalone python script run through the IDLE editor/debugger, the BA extension reports unavailable. Network Analyst checks out fine and both extensions are shown as licensed and available in the administrator app. From within the Python IDLE app arcpy imports fine, functions that don't require an extension work fine, Network Analyst extension shows available and checks out/in fine, just not BA. The script runs from the Python window within ArcMap just fine.
class LicenseError(Exception):
pass
import arcview
import arcpy
try:
if arcpy.CheckExtension("Business") == "Available":
arcpy.CheckOutExtension("Business")
else:
raise LicenseError
arcpy.CheckInExtension("Business")
except LicenseError:
print "Business Analyst license is unavailable"
except:
print arcpy.GetMessages(2)