Is it possible to check in and out of a concurrent license straight from ArcPy. For example, sometimes I need to use a buffer right or find duplicates. Both tools require ArcPy advanced or Standard. Although we have a large amount of Basic licenses, we have a small amount of concurrent standard/advanced licenses.

Is it possible to do the following (Pseudo code):

# ...

# Pseudo code:
if license == 'BASIC':
  • 1
    I know you can check out extensions but I don't think this is possible with standard arcpy. Have you looked at this – landocalrissian Nov 24 '14 at 13:49
  • 1
    As per @ChrisR 's link it seems you can import the licences (e.g.: import arcview) as long as that is before importing arcpy. If you try importing a different licence level will that replace the previous one? – HavardMoe Nov 24 '14 at 14:13

Just tried this:

import arcview
import arcpy


import arcinfo


This was the output:


Not sure if this is the correct approach but looks arcpy didn't change it after trying to import a higher level no error though.

Edit: As per the comments it seems this task cannot be completed within the same session as shown in the OP's pseudo code. That is to say once a license level has been imported it will persist throughout the session regardless of whether a new/higher level license import statement has been executed. There may be a workaround such as creating a separate script to handle higher level geoprocessing ect.

  • Ya, the idea is that to only import ArcInfo for the specific task that it's required for and then checks it out after. some of these scripts could take hours to perform and I don't want to hog the license manager for a 5 minute operation. The alternative would be to move the arcinfo required code into its own script and only be used when required then. Furthermore, when I import ArcInfo, Desktop license manager doesn't seem to change my license. Potential bug? – dassouki Nov 24 '14 at 16:06
  • 1
    Ya I was thinking the same thing using separate scripts may be a hassle though. As far as the bug not sure sometimes I have had to close the script then reopen it to change the level, for example if I run the above script then change the first import to arcinfo and save it and run wont change unless I exit the script then rerun it. – landocalrissian Nov 24 '14 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.