AttributeError: 'module' has no attribute when calling Spatial ETL tool

Last Published: April 25, 2020

Error Message

When calling a Spatial ETL tool in a standalone Python script in ArcGIS 10.0, the following error may be encountered: "AttributeError: 'module' object has no attribute."


In previous versions of ArcGIS, one could call a Spatial ETL tool as long as the Data Interoperability extension was checked in both ArcMap and ArcCatalog.

In ArcGIS 10.0 the Data Interoperability extension must be checked out inside of the standalone Python script in order to successfully call and use a Spatial ETL tool.

Solution or Workaround

The following information is needed to avoid the 'module has no attribute' error and successfully call a Spatial ETL tool:

  1. Open the Python script for editing.
  2. Copy and paste the following code into the Python script after importing the arcpy module and before using the Spatial ETL tool.
    class LicenseError(Exception):

    if arcpy.CheckExtension("DataInteroperability") == "Available":
    print "Checked out \"DataInteroperability\" Extension"
    raise LicenseError
    except LicenseError:
    print "Data Interoperability license is unavailable"
    print arcpy.GetMessages(2)

Article ID:000011143

  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic