Hello all,
I feel like I'm missing something simple, but I have a script that uses arcpy.CreateRandomPoints_management which requires either a spatial analyst license or ArcInfo license.
At work we have a floating ArcInfo license, so if the license is free the script automatically uses it, even though at no point in my script do I import ArcInfo. I do however check out spatial analyst, we have multiple licenses for sa, so I would rather use SA than holding up ArcInfo for the duration of the script (which in this case will be quite a long time)
The script is actually taking both licenses now that I check, so for this one script to run its taking both spatial analyst and ArcInfo. Is there some way to force it to ONLY use spatial analyst? I have tried explicit setting arcpy.SetProduct('ArcView') which does not seem to have any effect.
edit: I should mention this is being run as a standalone script, not from within Arc
I feel like I'm missing something simple, but I have a script that uses arcpy.CreateRandomPoints_management which requires either a spatial analyst license or ArcInfo license.
At work we have a floating ArcInfo license, so if the license is free the script automatically uses it, even though at no point in my script do I import ArcInfo. I do however check out spatial analyst, we have multiple licenses for sa, so I would rather use SA than holding up ArcInfo for the duration of the script (which in this case will be quite a long time)
The script is actually taking both licenses now that I check, so for this one script to run its taking both spatial analyst and ArcInfo. Is there some way to force it to ONLY use spatial analyst? I have tried explicit setting arcpy.SetProduct('ArcView') which does not seem to have any effect.
edit: I should mention this is being run as a standalone script, not from within Arc