I am developing a script that will be used in ArcGIS Desktop 10.2 of Standard (formerly called ArcEditor) license level and thus importing arceditor to make sure I don't use GP tools that require Advanced (formerly called ArcInfo) license level (which I have) while developing the script.
I get the ERROR 999999: Error executing function
when running the script in PyScripter. As outlined in the help, one has to import arceditor before importing arcpy. When running this single line of code:
import arceditor
When executing this single line of code, I get the C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arceditor.py file open in PyScripter and it seems that it has troubles setting product (this line is highlighted):
gp.setProduct("ArcEditor")
I have tried re-opening PyScripter, same error. import arcview
gives the same error.
Did I get it right that one can set using Standard (formerly called ArcEditor) license while having an ArcGIS Desktop licensed with Advanced (formerly called ArcInfo) installed on the machine? If not in this way, how then?