Referring to ArcGIS help it seems possible to check out advanced desktop license. But typing
Unrecognized extension code ArcInfo
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Your issue stems from the fact that ArcInfo isn't an extension.
It is customary to use a Try:Except block when setting a product level.
class LicenseException(Exception): pass try: status = arcpy.SetProduct('arcInfo') if status == 'CheckedOut': pass if status == 'AlreadyInitialized': pass if status == 'NotLicensed': raise LicenseException(status) # Extends Exception if status == 'Failed': raise LicenseException(status) except LicenseException: # Handle the exception accordingly. except: # Handle unexpected exceptions.
Look here for more information: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/SetProduct/000v0000003w000000/
As the documentation states:
"SetProduct is a legacy; importing modules needs to be done before importing arcpy".
The script might go something like this:
import arcinfo import arcpy if arcpy.CheckProduct("ArcInfo") == "Available": execute code else: print "Error message"