Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a Python script that will need to be given to a client.

We are currently evaluating what license level the client will need in order to run the script for their software acquisition purposes.

We all have ArcGIS 10.1 Advanced license in our company.

I checked all the tools and extensions used in the script against the web help and found that they should work on the Standard license level.

Is there a way I can test the script against the Standard license level, when we have no Standard license level in or company (only the higher Advanced level)?

share|improve this question
3  
I myself was interested in doing this gis.stackexchange.com/questions/78738/…. Seems as you need a float license to return ArcInfo license and borrow ArcEditor before running the script. –  Alex Tereshenkov Jan 20 at 20:35
    
My former employer's IT department implemented a selection for power users to choose all three levels of licensing. It was accessed via the start menu and desktop shortcuts. Non power users did not have the option to choose ArcInfo but may have had the option to use ArcView or ArcEditor. All licenses were on a dedicated GIS server and was a floating license for unlimited users. So it depends on how your IT department has things set up. The other option is to find a machine to install again and simply install ArcView license. –  danagerous Jan 20 at 20:39

5 Answers 5

up vote 1 down vote accepted

If this will be a recurring effort where you need to test your products at various license levels, it might be worth purchasing an Esri Developer Network license.

Esri Developer Network (EDN) is available through an annual subscription and provides a cost-effective way to license Esri ArcGIS products and tools. Whether you're a Web, desktop, mobile, or server developer, EDN has the resources you need for building GIS applications and solutions.

share|improve this answer
    
Do you have more information about that? Specifically, I would be interested to know if I would need to buy one license for each license level that I want to test scripts on? For now we found a computer that we can install an ArcGIS Standard License on to test this script. –  Kat Jan 21 at 15:35
    
You should contact your local ESRI rep for details. –  RyanDalton Jan 21 at 16:07

The following requires only an ArcGIS Basic license however numerous tools require an ArcGIS Standard or higher license.

import arcview
share|improve this answer

Start your script from a command shell or batch file, setting the license level first by environment variable.

SET ESRI_SOFTWARE_CLASS=Viewer
do-stuff.py

From Opening ArcGIS on a specific license level

modolo the comment from Ryan Dalton here about needing to have the other license levels to switch to.

share|improve this answer

I don't think the functionality to run a lower license option exists yet, though it has been a suggested Idea to implement. you could find a computer without ArcGIS installed and get a trial version. either that, or maybe someone on here running a standard license could test it for you.

share|improve this answer
1  
I think this needs a new ArcGIS Idea because the one you referenced does not seem to address the use case of the Question where the only ArcGIS for Desktop level licensed is Advanced but testing is wanted to happen while masquerading as a Basic and/or Standard level license. –  PolyGeo Jan 22 at 0:38

Maybe try

import arceditor 
import arcpy

See the help doc at Accessing licenses and extensions in Python. It is not 100% clear to me that this will do what you want but maybe try a script where you know it should only work with Advanced and see what the script does.

HTH

share|improve this answer
1  
This will not help unless the user has an available Basic (ArcView) or Standard (ArcEditor) license. See my answer to Why does import arcview/arceditor give gp.setProduct() RuntimeError: ERROR 999999: Error executing? –  RyanDalton Jan 21 at 3:42
    
@RyanDalton: I just tested using 'Identity (Analysis)' in a gp script (which requires Advanced license). I get 'ERROR 000824: The tool is not licensed.' if using 'import arceditor' but it runs if using 'import arcinfo'. Your answer using is using setProduct(), which is 'a legacy function' maybe the import syntax works differently. Or am I missing something regarding this question? –  dark fader Jan 21 at 17:35
2  
You missed the point of my answer. As I stated: "you are not able to "upgrade" or "downgrade" to a different license which is unavailable to the user without getting a failure." To summarize what I tried to explain, you cannot "dumb down" (or "up") a license unless you actually HAVE a lower license available, which is exactly what your test proved out. Neither import <license> nor gp.setProduct() allows users to use a product level that is not licensed. –  RyanDalton Jan 21 at 22:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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