<?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: Python TypeError in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/python-typeerror/m-p/1070902#M42314</link>
    <description>&lt;P&gt;The problem was with the date once i changed it, it worked fine.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 11:22:54 GMT</pubDate>
    <dc:creator>HamzaM</dc:creator>
    <dc:date>2021-06-22T11:22:54Z</dc:date>
    <item>
      <title>Python TypeError</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-typeerror/m-p/1070182#M42210</link>
      <description>&lt;P&gt;I am trying to use the&amp;nbsp;Detecting Super Blooms Using Satellite Image Classification Sample Notebook but when i test this code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;map1 = gis.map(address, zoomlevel = 12)&lt;BR /&gt;map1.center = location&lt;BR /&gt;map1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;map1_selected = call_filter_images(map1, "2019-03-18")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;img_src=map1_selected&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;this error occurs&lt;/P&gt;&lt;DIV class="output_area"&gt;&lt;DIV class="output_subarea output_text output_stream output_stdout"&gt;&lt;PRE&gt;Applicable lockRasterIds= []&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="output_area"&gt;&lt;DIV class="prompt"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="output_subarea output_text output_error"&gt;&lt;PRE&gt;&lt;SPAN class="ansi-red-fg"&gt;---------------------------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN class="ansi-red-fg"&gt;TypeError&lt;/SPAN&gt;                                 Traceback (most recent call last)
In  &lt;SPAN class="ansi-blue-fg"&gt;[28]&lt;/SPAN&gt;:
Line &lt;SPAN class="ansi-blue-fg"&gt;1&lt;/SPAN&gt;:     map1_selected = call_filter_images(map1, &lt;SPAN class="ansi-yellow-fg"&gt;"&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-fg"&gt;2019-03-18&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-fg"&gt;"&lt;/SPAN&gt;)

In  &lt;SPAN class="ansi-blue-fg"&gt;[26]&lt;/SPAN&gt;:
Line &lt;SPAN class="ansi-blue-fg"&gt;5&lt;/SPAN&gt;:     [tdf, selected] = filter_images(my_map, start_datetime, end_datetime, extent = area[&lt;SPAN class="ansi-yellow-fg"&gt;'&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-fg"&gt;extent&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-fg"&gt;'&lt;/SPAN&gt;])

&lt;SPAN class="ansi-red-fg"&gt;TypeError&lt;/SPAN&gt;: cannot unpack non-iterable NoneType object&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 20 Jun 2021 10:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-typeerror/m-p/1070182#M42210</guid>
      <dc:creator>HamzaM</dc:creator>
      <dc:date>2021-06-20T10:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Python TypeError</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-typeerror/m-p/1070206#M42214</link>
      <description>&lt;P&gt;The error message&lt;/P&gt;&lt;PRE&gt;cannot unpack non-iterable NoneType object&lt;/PRE&gt;&lt;P&gt;means None was returned by my_map (which doesn't appear anywhere) and the "filter_images" function was supposed to return and unpack two objects (tdf, selected)&lt;/P&gt;&lt;P&gt;So my_map doesn't exist,&amp;nbsp;&lt;/P&gt;&lt;P&gt;map1_selected isn't used&lt;/P&gt;&lt;P&gt;map1 isn't defined, but maybe not selected.&lt;/P&gt;&lt;P&gt;In short, you will need to backtrack and figure out what wasn't found that returned None&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 17:36:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-typeerror/m-p/1070206#M42214</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-06-20T17:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Python TypeError</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-typeerror/m-p/1070902#M42314</link>
      <description>&lt;P&gt;The problem was with the date once i changed it, it worked fine.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 11:22:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-typeerror/m-p/1070902#M42314</guid>
      <dc:creator>HamzaM</dc:creator>
      <dc:date>2021-06-22T11:22:54Z</dc:date>
    </item>
  </channel>
</rss>

