PROBLEM

Unable to run Python scripts using a single use ArcView license

Last Published: April 25, 2020

Description

When executing a Python script, a traceback error in PythonWin or a cmd.exe error in ArcToolbox is displayed.

Cause

This problem occurs when the license level has not been set in geoprocessing scripts when using a single use ArcView license.

Solution or Workaround

To run geoprocessing scripts under a single use ArcView license, explicitly set the license level by adding the following line of code after instantiating the gp object:

Code:
gp.SetProduct("ArcView")

Article ID:000008474

Software:
  • ArcMap 9 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic