I'm using ArcGIS Advanced in order to generate a coverage (I've never worked with coverages before --nor ArcGIS really, know the basics, but not this). I am trying to write a python script to generate a coverage, but I keep get the same error.
The purpose of generating this coverage is to compare the results of a coverage (ArcInfo) (with its various xy tolerances) with the results of creating a feature class (ArcGIS) and see if they differ.
Basically I'm not sure how to access the generate tool (as its part of the 'advanced' product). I seem to have to import arcinfo.py as a module. This gets 'generate' working...
import arcinfo arcpy.Generate_arc("generate.txt", "lights", "POINTS")
Then I hit enter and this happens
Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\arc.py", line 1064, in Generate raise e ExecuteError: ERROR 999999: Error executing function. Failed to execute (Generate).
I looked up Error 999999 and it said it was some generic error, which left me even more confused.
Could it be something with the output type. I know coverages get created in folders. The "lights" directory doesn't exist. Could this be the problem?
arcpy.env.workspace is a simple directory
The 'r' needs to be in there otherwise the "\200" goes all unicode on me.
I've hit a bit of a brick wall with this, so any help will be greatly appreciated. I've been looking at the help docs in arc too, but dont seem to be answering my question.