ArcGis Pro 2.4 and/or ArcGIS 1.6.1
I am attempting to automate the creation of a composite locator using the Create Composite Locator tool/syntax in a python script. I keep getting error as shown in the title of this thread.
Here is my function:
locatorsDir <SPAN class="operator token">=</SPAN> r<SPAN class="string token">'\\SLCISARCGIS10-T\arcgisresources\common\geocode\test'</SPAN>
<SPAN class="keyword token">def</SPAN> <SPAN class="token function">createCompositeLocator</SPAN><SPAN class="punctuation token">(</SPAN>locatorsDir<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="comment token">#arcpy.env.workspace = locatorsDir</SPAN>
outLocator <SPAN class="operator token">=</SPAN> <SPAN class="string token">'{}\\CompositePY'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>locatorsDir<SPAN class="punctuation token">)</SPAN>
addrSF <SPAN class="operator token">=</SPAN> <SPAN class="string token">'{}\\AddressSF'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>locatorsDir<SPAN class="punctuation token">)</SPAN>
addrSH <SPAN class="operator token">=</SPAN> <SPAN class="string token">'{}AddressSH'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>locatorsDir<SPAN class="punctuation token">)</SPAN>
centerLines <SPAN class="operator token">=</SPAN> <SPAN class="string token">'{}\\Centerline'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>locatorsDir<SPAN class="punctuation token">)</SPAN>
parcels <SPAN class="operator token">=</SPAN> <SPAN class="string token">'{}\\Parcels'</SPAN><SPAN