ERROR
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.
Code:
class LicenseError(Exception):
pass
try:
if arcpy.CheckExtension("DataInteroperability") == "Available":
arcpy.CheckOutExtension("DataInteroperability")
print "Checked out \"DataInteroperability\" Extension"
else:
raise LicenseError
except LicenseError:
print "Data Interoperability license is unavailable"
except:
print arcpy.GetMessages(2)
Get help from ArcGIS experts
Download the Esri Support App