<?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: TypeError and AttributeError when executing SummarizeWithin (ArcPy) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488443#M38147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it works in the Pro GUI and Python console, and it gives correct results in Jupyter, it is likely a defect related to Jupyter integration.&amp;nbsp; Personally, if it works, I wouldn't waste the time chasing it down.&amp;nbsp; If it really bugs you, open a case with Esri Support to log a defect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2020 15:11:06 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-04-23T15:11:06Z</dc:date>
    <item>
      <title>TypeError and AttributeError when executing SummarizeWithin (ArcPy)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488442#M38146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the SummarizeWithin tool with arcpy, running in a Jupyter Notebook. &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;sum_fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"TOTAL Sum;M_TOTAL Sum;F_TOTAL Sum"&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;analysis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SummarizeWithin&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"counties"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"demographics"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"counties_demo"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sum_fields&lt;SPAN class="punctuation token"&gt;)&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;On execution I receive a lot of these two errors in the console.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;TypeError: setGroupParams() missing 2 required positional arguments: 'groupFieldName' and 'fcPath'
AttributeError: 'ToolValidator' object has no attribute 'isLicensed'‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The tool runs through and gives a correct output FeatureClass. I still would like to get rid of these errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executed as a regular Geoprocessing Tool in ArcGIS 2.5 no errors are reported, same when the code snippet is run in the Python Console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug, or am I doing something wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488442#M38146</guid>
      <dc:creator>MarkusBenninghoff</dc:creator>
      <dc:date>2021-12-11T21:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError and AttributeError when executing SummarizeWithin (ArcPy)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488443#M38147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it works in the Pro GUI and Python console, and it gives correct results in Jupyter, it is likely a defect related to Jupyter integration.&amp;nbsp; Personally, if it works, I wouldn't waste the time chasing it down.&amp;nbsp; If it really bugs you, open a case with Esri Support to log a defect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2020 15:11:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488443#M38147</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-04-23T15:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError and AttributeError when executing SummarizeWithin (ArcPy)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488444#M38148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running the jupyter notebook with Pro? or external to it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2020 11:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488444#M38148</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-04-24T11:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError and AttributeError when executing SummarizeWithin (ArcPy)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488445#M38149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running an external version of jupyter notebook on a cloned arcgispro-py3 environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 10:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488445#M38149</guid>
      <dc:creator>MarkusBenninghoff</dc:creator>
      <dc:date>2020-04-27T10:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError and AttributeError when executing SummarizeWithin (ArcPy)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488446#M38150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It also does not work att all within PyCharm (linked with default arcgispro-py3 environment). Here it returns a Error 999999:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.
Traceback (most recent call last):
  File "C:/EsriTraining/PYTS/Scripts/SummarizeWithinTest.py", line 15, in &amp;lt;module&amp;gt;
    arcpy.analysis.SummarizeWithin(mkfn, rkfn, mkrkPolyFc, '', sum_fields)
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\analysis.py", line 2299, in SummarizeWithin
    raise e
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\analysis.py", line 2296, in SummarizeWithin
    retval = convertArcObjectToPythonObject(gp.SummarizeWithin_analysis(*gp_fixargs((in_polygons, in_sum_features, out_feature_class, keep_all_polygons, sum_fields, sum_shape, shape_unit, group_field, add_min_maj, add_group_percent, out_group_table), True)))
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 511, in &amp;lt;lambda&amp;gt;
    return lambda *args: val(*gp_fixargs(args, True))&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the error in Jupyter-Notebook is more a cosmetic issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/488446#M38150</guid>
      <dc:creator>MarkusBenninghoff</dc:creator>
      <dc:date>2021-12-11T21:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError and AttributeError when executing SummarizeWithin (ArcPy)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/1033297#M60222</link>
      <description>&lt;P&gt;I receive the same error messages using Spyder 3 and ArcGIS Pro 2.5 on a cloned ArcGIS Pro-py3 environment. I have to wait to update ArcGIS Pro to recent version 2.7 and Spyder 3 to 4 until a project is finished. Maybe the problem is solved in recent releases?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 08:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-and-attributeerror-when-executing/m-p/1033297#M60222</guid>
      <dc:creator>JohannesMitterer</dc:creator>
      <dc:date>2021-03-05T08:23:23Z</dc:date>
    </item>
  </channel>
</rss>

