<?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: SearchCursor object() takes no parameters in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702350#M54436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can the shapefile be viewed in ArcMap and can you confirm that the fields are indeed there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2018 18:12:42 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-12-06T18:12:42Z</dc:date>
    <item>
      <title>SearchCursor object() takes no parameters</title>
      <link>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702346#M54432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'm just learning the function of SearchCursor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code here&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;arcpy
&lt;SPAN style="color: #008000; font-weight: bold;"&gt;
&lt;/SPAN&gt;points = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;r'D:\GIS\turto\pop.shp'
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;with &lt;/SPAN&gt;arcpy.da.SearchCursor(points,[&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'iso_a2'&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'adm0_a3'&lt;/SPAN&gt;]) &lt;SPAN style="color: #000080; font-weight: bold;"&gt;as &lt;/SPAN&gt;citycursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;x &lt;SPAN style="color: #000080; font-weight: bold;"&gt;in &lt;/SPAN&gt;citycursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;print&lt;/SPAN&gt;(x[&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;]);


and the error just show:
D:\Users\Jay\PycharmProjects\learn\venv\Scripts\python.exe D:/Users/Jay/PycharmProjects/learn/search.py
Traceback (most recent call last):
 File "D:/Users/Jay/PycharmProjects/learn/search.py", line 10, in &amp;lt;module&amp;gt;
 with arcpy.da.SearchCursor(points,['iso_a2', 'adm0_a3']) as citycursor:
TypeError: object() takes no parameters

Process finished with exit code 1

&lt;/PRE&gt;&lt;P&gt;I followed the tutorial of this one&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.youtube.com/watch?v=Gt-1oBJf21Y&amp;amp;index=6&amp;amp;list=PLO6KswO64zVu7S4bqQoHWR5516aCUEnda" title="https://www.youtube.com/watch?v=Gt-1oBJf21Y&amp;amp;index=6&amp;amp;list=PLO6KswO64zVu7S4bqQoHWR5516aCUEnda" rel="nofollow noopener noreferrer" target="_blank"&gt;6 - Search Cursors - Arcgis Scrpting with Python - YouTube&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I checked the syntax and other examples, all didnt help&lt;/P&gt;&lt;P&gt;&lt;IMG alt="the sitauation" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/430992_擷取.PNG" /&gt;&lt;/P&gt;&lt;P&gt;I wonder what I do wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me, thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702346#M54432</guid>
      <dc:creator>Che-YiHung</dc:creator>
      <dc:date>2021-12-12T05:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: SearchCursor object() takes no parameters</title>
      <link>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702347#M54433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please remove the ; at the end of the print statement.&amp;nbsp; I tested a search cursor on your dataset without any errors. What python version are you using?&amp;nbsp; Can you import arcpy from the interactive python IDE environment without errors?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 16:07:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702347#M54433</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2018-12-06T16:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: SearchCursor object() takes no parameters</title>
      <link>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702348#M54434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;semi-colon is ok in python 3 at least&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;a &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702348#M54434</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T05:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: SearchCursor object() takes no parameters</title>
      <link>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702349#M54435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I can use other arcpy funtions such as search by location, so it means the arcpy in pycharm is imported correctly, right?&lt;/P&gt;&lt;P&gt;I'm using the python 2.7 which came with ArcGIS 10.5&lt;/P&gt;&lt;P&gt;I was wondering what was missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 16:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702349#M54435</guid>
      <dc:creator>Che-YiHung</dc:creator>
      <dc:date>2018-12-06T16:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: SearchCursor object() takes no parameters</title>
      <link>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702350#M54436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can the shapefile be viewed in ArcMap and can you confirm that the fields are indeed there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 18:12:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702350#M54436</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-12-06T18:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: SearchCursor object() takes no parameters</title>
      <link>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702351#M54437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, I just downloaded from the Nature Earth website for the tutorial. And as Mitch tested, the data is fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 19:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searchcursor-object-takes-no-parameters/m-p/702351#M54437</guid>
      <dc:creator>Che-YiHung</dc:creator>
      <dc:date>2018-12-06T19:31:57Z</dc:date>
    </item>
  </channel>
</rss>

