<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AttributeError: 'module' object has no attribute 'da' in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625201#M16825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, i didn't understand you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2015 06:17:11 GMT</pubDate>
    <dc:creator>Yaron_YosefCohen</dc:creator>
    <dc:date>2015-01-29T06:17:11Z</dc:date>
    <item>
      <title>AttributeError: 'module' object has no attribute 'da'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625194#M16818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I try to edit attribute table for 20 shapefiles that spread in big a folder and are divided to a lot of sub folders. All shapefiles are called "migrashim" and the name of the filed that i want to change is "structuretype". I try this code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;when i run this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy,os,sys
from arcgisscripting import da


pattern = 'migrashim.shp'
folder = r"C:\Project\layers" ## root folder
field = 'YEUD' ## your field where calculation to be applied
files_process = []
for root,dirs,files in os.walk(r"C:\Project\layers"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; for filenames in files:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if filenames == pattern:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; files_process.append(os.path.join(root, filenames))


for i in files_process:
&amp;nbsp;&amp;nbsp;&amp;nbsp; curU = arcpy.UpdateCursor(i)
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curU:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.setValue(field, 500)##Any expression you want
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curU.updateRow(row)
del curU&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Traceback (most recent call last):
&amp;nbsp; File "C:\Users\yaron.KAYAMOT\Desktop\ar.py", line 1, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy,os,sys
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\__init__.py", line 24, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.toolbox import *
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\toolbox.py", line 15, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from .ddd import ASCII3DToFeatureClass as ASCII3DToFeatureClass_3d
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\ddd.py", line 23, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.arcobjects.arcobjectconversion import convertArcObjectToPythonObject
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\arcobjects\__init__.py", line 15, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from _base import *
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\arcobjects\_base.py", line 16, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from .arcobjectconversion import convertArcObjectToPythonObject
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\arcobjects\arcobjectconversion.py", line 2, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy.mapping
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\mapping.py", line 15, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from _mapping import MapDocument, Layer, TableView, constants
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\_mapping.py", line 15, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.arcobjects import mixins
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\arcobjects\mixins.py", line 16, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; curU = arcpy.da.UpdateCursor(i,field)
AttributeError: 'module' object has no attribute 'da'&lt;/PRE&gt;&lt;P&gt;i need help !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625194#M16818</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2021-12-12T02:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'da'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625195#M16819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to see if you get a list of the properties...&lt;/P&gt;&lt;P&gt;why do you need to use arcgisscripting.da when arcpy.da is normally used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy
&amp;gt;&amp;gt;&amp;gt; import arcgisscripting
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; a = dir(arcpy.da)
&amp;gt;&amp;gt;&amp;gt; b = dir(arcgisscripting.da)
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; a
['Domain', 'Editor', 'ExtendTable', 'FeatureClassToNumPyArray', 'InsertCursor', 'ListDomains', 'ListFieldConflictFilters', 'ListReplicas', 'ListSubtypes', 'ListVersions', 'NumPyArrayToFeatureClass', 'NumPyArrayToTable', 'Replica', 'SearchCursor', 'TableToNumPyArray', 'UpdateCursor', 'Version', 'Walk', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__']
&amp;gt;&amp;gt;&amp;gt; b
['Domain', 'Editor', 'ExtendTable', 'FeatureClassToNumPyArray', 'InsertCursor', 'ListDomains', 'ListFieldConflictFilters', 'ListReplicas', 'ListSubtypes', 'ListVersions', 'NumPyArrayToFeatureClass', 'NumPyArrayToTable', 'Replica', 'SearchCursor', 'TableToNumPyArray', 'UpdateCursor', 'Version', 'Walk', '__doc__', '__name__', '__package__']
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625195#M16819</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T02:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'da'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625196#M16820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i write "import arcpy" --&amp;gt; enter i get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;pyshell#1&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\__init__.py", line 24, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.toolbox import *&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\toolbox.py", line 15, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .ddd import ASCII3DToFeatureClass as ASCII3DToFeatureClass_3d&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\ddd.py", line 23, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.arcobjects.arcobjectconversion import convertArcObjectToPythonObject&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\arcobjects\__init__.py", line 15, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from _base import *&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\arcobjects\_base.py", line 16, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from .arcobjectconversion import convertArcObjectToPythonObject&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\arcobjects\arcobjectconversion.py", line 2, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy.mapping&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\mapping.py", line 15, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from _mapping import MapDocument, Layer, TableView, constants&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\_mapping.py", line 15, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from arcpy.arcobjects import mixins&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\arcobjects\mixins.py", line 16, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; curU = arcpy.da.UpdateCursor(i,field)&lt;/P&gt;&lt;P&gt;AttributeError: 'module' object has no attribute 'da'&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;what can i do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 11:35:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625196#M16820</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-01-28T11:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'da'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625197#M16821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well that means that you can't even import arcpy which means one of several things&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcGIS isn't installed on that machine&lt;/LI&gt;&lt;LI&gt;or it isn't installed properly&lt;/LI&gt;&lt;LI&gt;or you have installed it in a non-default location&lt;/LI&gt;&lt;LI&gt;you are using a different version of python than the one that comes with arcgis&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 11:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625197#M16821</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-01-28T11:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'da'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625198#M16822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my python worked fine till i run this code (fuond it in the net):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222;"&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;import&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;os&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;sys&lt;BR /&gt;pattern &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;'fish_46.shp'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;folder &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;'C:\Users\USER_NAME\Desktop\delete'&lt;/SPAN&gt;&lt;SPAN class="com" style="color: #868686;"&gt;## root folder&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;field &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;'Id'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #868686;"&gt;## your field where calculation to be applied&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;files_process &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; root&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;dirs&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;files &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; os&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;walk&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;'C:\Users\USER_NAME\Desktop\delete'&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; filenames &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; files&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; filenames &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;==&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; pattern&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; files_process&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;append&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;os&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;path&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;join&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;root&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; filenames&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;))&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; i &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; files_process&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; curU &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;da&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;UpdateCursor&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;field&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; row &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; curU&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; row&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #953838;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;]=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #953838;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #868686;"&gt;##Any expression you want&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; curU&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;updateRow&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;row&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;del&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; curU&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;what can i do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 12:36:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625198#M16822</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-01-28T12:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'da'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625199#M16823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i ask question in &lt;A href="http://gis.stackexchange.com/questions/131677/edit-attribute-table-for-shapefiles-in-folders-and-subfolders-with-arcpy" title="http://gis.stackexchange.com/questions/131677/edit-attribute-table-for-shapefiles-in-folders-and-subfolders-with-arcpy"&gt;python - Edit attribute table for shapefiles in folders and subfolders with arcpy? - Geographic Information Systems Stac…&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 12:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625199#M16823</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-01-28T12:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'da'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625200#M16824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh if the Mom won't help we will try Dad...but in short I will not get into parental disputes and let your figure it out in the &lt;A href="http://gis.stackexchange.com/questions/131677/edit-attribute-table-for-shapefiles-in-folders-and-subfolders-with-arcpy" rel="nofollow noopener noreferrer" target="_blank"&gt;parental forum&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interesting though... you have a bigger issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy
&amp;gt;&amp;gt;&amp;gt; import os
&amp;gt;&amp;gt;&amp;gt; rootPath = r"c:\!np_arc"
&amp;gt;&amp;gt;&amp;gt; pattern = "AOI_mtm9.shp"
&amp;gt;&amp;gt;&amp;gt; files_process = []
&amp;gt;&amp;gt;&amp;gt; for root, dirs, files in os.walk(rootPath):
...&amp;nbsp; for filename in files:
...&amp;nbsp; if filename == pattern:
...&amp;nbsp;&amp;nbsp;&amp;nbsp; files_process.append(os.path.join(root, filename))
...
&amp;gt;&amp;gt;&amp;gt; files_process
['c:\\!np_arc\\Basics\\np05\\Shapefiles\\AOI_mtm9.shp', 'c:\\!np_arc\\mapping\\shapefiles\\AOI_mtm9.shp', 'c:\\!np_arc\\Shapefiles\\AOI_mtm9.shp']
&amp;gt;&amp;gt;&amp;gt; for i in files_process:
...&amp;nbsp; curU = arcpy.SearchCursor(i)
...&amp;nbsp; for row in curU:
...&amp;nbsp;&amp;nbsp;&amp;nbsp; print "do nothing"
...
do nothing
do nothing
do nothing
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:38:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625200#M16824</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T02:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'da'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625201#M16825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, i didn't understand you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 06:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute-da/m-p/625201#M16825</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-01-29T06:17:11Z</dc:date>
    </item>
  </channel>
</rss>

