AnsweredAssumed Answered

Run Model with Python (model created in ArcGIS Pro)

Question asked by rankin.mark on Nov 6, 2018
Latest reply on Nov 9, 2018 by rankin.mark

Hello All,

 

I'm getting the error "AttributeError: 'module' object has no attribute 'Step1CrimeDataPrep_CrimeTools'" when trying to run a model from python and the model was created in ArcGIS Pro. 

 

# Import arcpy module
import arcpy, datetime, sys
from time import strftime

#----------------------------------------------------------------------------


arcpy.ImportToolbox(r"\\prfsgis\giswork\PROJECTS\Crime\Crime.tbx")

 

arcpy.Step1CrimeDataPrep_CrimeTools()

 

I've done this process in models created in desktop before but this is my first attempt using models created in Pro.  Do I have to do something different?

 

Thanks for any help.

 

Cheers,

Mark Rankin

Outcomes