I'm relatively new to ArcGIS and was trying to covert a KML file into a layer using the conversion toolbox so it can later be put into the SDE database. I'm having some trouble using the tool though. I do this:arcpy.ImportToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Conversion Tools.tbx");
arcpy.KMLToLayer_conversion(LocalFile, runCWD, "nws")
but when I run my script from the command ine it returns an error. The error is Traceback (most recent call last):
File "kml2sde.py", line 35, in <module>
arcpy.KMLToLayer_conversion(LocalFile, runCWD)
File "C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Conversion
s.tbx", line 29, in KMLToLayer
???d[
AttributeError: 'NoneType' object has no attribute 'KMLToLayer_conversion'
If I run the tool from ArcCatalog it works fine and creates the layer and gdb folder. I'm trying to create a script that pulls data from a KML file at regular intervals, am I going about this the right way?