I have a process in which I need to use coverages. I can create the coverages just fine using FeatureClassToCoverage_conversion within arcpy but trying to union 2 coverages together does not work in arcpy with the identified method "Union_arc". I suspect it has something to do with creating an ArcINFO workspace, but I do not know how to use this for _arc commands.
The error is "Object: Tool or environment not found" I have ArcINFO installed and can run these tools successfully in Modelbuilder. I have attached a test script to get Union working. Running 10.1 ArcGIS python 2.7.
import arcpy, os, sys
from arcpy import env
print 'Starting....'
env.OverWriteOutput = True
arcpy.SetProduct("ArcInfo")
env.workspace = "G:\\Projects\\P747\\3_Landbase\\LB1\\temp\\test2\\"
TEMP = "\\\\silver\\clients\\Projects\\P747\\3_Landbase\\LB1\\TEMP\\"
print 'Loaded Data....'
if arcpy.Exists(TEMP + "airworkspace3"):
arcpy.Delete_management(TEMP + "airworkspace3")
arcpy.CreateArcInfoWorkspace_management(TEMP, "airworkspace3")
r = str(1)
for fc in arcpy.ListFeatureClasses():
print 'Working on ' + fc
CovName = TEMP + "airworkspace3\\" + "Layer1"
CovName3 = TEMP + "airworkspace3\\" + "Success"
if arcpy.Exists(CovName + str(r)):
arcpy.Delete_management(CovName + str(r))
arcpy.FeatureclassToCoverage_conversion(fc + " POLYGON", CovName + r, "", "DOUBLE")
r += str(1)
print 'Working on Union'
arcpy.Union_arc(CovName + "1", CovName2+ "2", CovName3)
print 'Completed ' + fc + ' processing....'