Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I created an ArcGIS Interoperability Tool, which I like to use in my ArcPY script. In order to find the correct code I created an ArcGIS Toolbox Model including my Interoperability Tool, and exported as an ArcPy script.

Everything looks fine, I checked google and stuff. I get an DataInterop license, I import the Toolbox with my Interoperability Tool (which uses an Alias). Then I define the input and ouput. When I try to start the Interopability Tool I get the following message :

AttributeError: 'module' object has no attribute

I didn't find anything usefull on the internet which can be found with the above error message and Data Interoperability. Does somebody know how to use a self create Data Interoperability Tool with ArcPy?

share|improve this question
1  
Which version of ArcGIS are you using? You can edit your question to include this information. Welcome to GIS.SE! –  Paul Apr 22 '14 at 21:27
    
Perhaps the Alias is incorrect. You can use Arcpy to list the available tools and toolboxes. –  klewis Jul 5 '14 at 15:25
1  
I did have a conversation with ESRI, and it seems I run into a bug. The above error will occur if you try to run ArcPY externaly and try to run an Data Interoperability tool, and you have installed Production Mapping and/or the Workflow Manager. ESRI doesn know when it wil fixed it. My script did perfectly run externally when I deinstalled my production mapping and the workflow manager. –  user28510 Jul 7 '14 at 12:35

1 Answer 1

The symptoms that you describe seem to be the same as those discussed in the Esri Knowledge Base Article 38563 entitled Error: AttributeError: 'module' has no attribute when calling Spatial ETL tool which recommends that you:

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):
    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)
share|improve this answer
    
Thank you for your answer, but the only thing is does, is getting a DataInteroperability License if it is available, but I already did this in my script. –  user28510 Apr 24 '14 at 12:27
    
@user28510 Perhaps you can include a working snippet from your script that includes this. –  PolyGeo Apr 24 '14 at 21:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.