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?
The product level should be set by importing the appropriate product module (arcinfo, arceditor, arcview, arcserver, arcenginegeodb, or arcengine) prior to importing arcpy. The SetProduct function is a legacy function and cannot set the product once arcpy has been imported.
I thought there may have been a bug in C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcview.py so I tried changing "ArcView" to "arcview", and 10.0 to 10.2 (and 10.1) and "10.0" in its code below - all without success!
ArcView GIS 3.2a is now available on Windows 95/98, Windows NT, and UNIX. The ArcView GIS 3.2a release is a free downloadable upgrade for existing ArcView GIS 3.2 users. For more information, call Esri at 1-800-447-9778 or visit www.esri.com/arcviewgis. To purchase ArcView GIS 3.2a, contact your local reseller, call 1-800-447-9778, call your Esri regional office, or (in the United States) visit www.esri.com/gisstore. Outside the United States, please contact your local Esri distributor.
aa06259810