<?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 Esri Advanced Guide to Python Chap. 10 JSONDecodeError in Esri Press Books Questions</title>
    <link>https://community.esri.com/t5/esri-press-books-questions/esri-advanced-guide-to-python-chap-10/m-p/1658195#M726</link>
    <description>&lt;P&gt;Not sure what's causing this error. I did notice that the 2020 wildfires layer referenced in the 10-01 tutorial has been depreciated:&amp;nbsp;c3c10388e3b24cec8a954ba10458039d&lt;/P&gt;&lt;P&gt;It's throwing the error on the structures variable. I've been working through the jupyter cells and can't go any further because of the error. I've put the code so far here.&amp;nbsp;The authors are Dave Crawford and Daniel Yaw.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis
import time

gis = arcgis.GIS('home')
# get the layer for USA structures
item_id_structures = '0ec8512ad21e4bb987d7e848d14e7e24'
item_structures = gis.content.get(item_id_structures)
lyr_structures = item_structures.layers[0]

# get the layer for 2020 wildfires
item_id_wildfires = 'c3c10388e3b24cec8a954ba10458039d'
item_wildfires = gis.content.get(item_id_wildfires)
lyr_wildfires = item_wildfires.layers[1]
fset_single_wildfire = lyr_wildfires.query("FIRE_NAME = 'AVILA'")
fset_single_wildfire
# get the feature from the FeatureSet
wildfire_feature = fset_single_wildfire.features[0]
# get the geometry from the single feature
wildfire_geom = wildfire_feature.geometry

# get the wildfire name
wildfire_name = wildfire_feature.get_value("FIRE_NAME")

print(wildfire_name)
# Create a spatial filter to find structures that intersect the wildfire
wildfire_filter = arcgis.geometry.filters.intersects(
    wildfire_geom, sr = wildfire_geom['spatialReference']
)
# Query the structures layer for structures that intersect the wildfire
structures = lyr_structures.query(
    geometry_filter = wildfire_filter,
    return_count_only=True
)
print(structures)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 15 Oct 2025 19:11:46 GMT</pubDate>
    <dc:creator>JaredPilbeam2</dc:creator>
    <dc:date>2025-10-15T19:11:46Z</dc:date>
    <item>
      <title>Esri Advanced Guide to Python Chap. 10 JSONDecodeError</title>
      <link>https://community.esri.com/t5/esri-press-books-questions/esri-advanced-guide-to-python-chap-10/m-p/1658195#M726</link>
      <description>&lt;P&gt;Not sure what's causing this error. I did notice that the 2020 wildfires layer referenced in the 10-01 tutorial has been depreciated:&amp;nbsp;c3c10388e3b24cec8a954ba10458039d&lt;/P&gt;&lt;P&gt;It's throwing the error on the structures variable. I've been working through the jupyter cells and can't go any further because of the error. I've put the code so far here.&amp;nbsp;The authors are Dave Crawford and Daniel Yaw.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis
import time

gis = arcgis.GIS('home')
# get the layer for USA structures
item_id_structures = '0ec8512ad21e4bb987d7e848d14e7e24'
item_structures = gis.content.get(item_id_structures)
lyr_structures = item_structures.layers[0]

# get the layer for 2020 wildfires
item_id_wildfires = 'c3c10388e3b24cec8a954ba10458039d'
item_wildfires = gis.content.get(item_id_wildfires)
lyr_wildfires = item_wildfires.layers[1]
fset_single_wildfire = lyr_wildfires.query("FIRE_NAME = 'AVILA'")
fset_single_wildfire
# get the feature from the FeatureSet
wildfire_feature = fset_single_wildfire.features[0]
# get the geometry from the single feature
wildfire_geom = wildfire_feature.geometry

# get the wildfire name
wildfire_name = wildfire_feature.get_value("FIRE_NAME")

print(wildfire_name)
# Create a spatial filter to find structures that intersect the wildfire
wildfire_filter = arcgis.geometry.filters.intersects(
    wildfire_geom, sr = wildfire_geom['spatialReference']
)
# Query the structures layer for structures that intersect the wildfire
structures = lyr_structures.query(
    geometry_filter = wildfire_filter,
    return_count_only=True
)
print(structures)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Oct 2025 19:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/esri-press-books-questions/esri-advanced-guide-to-python-chap-10/m-p/1658195#M726</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2025-10-15T19:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Advanced Guide to Python Chap. 10 JSONDecodeError</title>
      <link>https://community.esri.com/t5/esri-press-books-questions/esri-advanced-guide-to-python-chap-10/m-p/1658513#M727</link>
      <description>&lt;P&gt;Thanks for the question, we're looking into fixes, we'll post here once we have something.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 17:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/esri-press-books-questions/esri-advanced-guide-to-python-chap-10/m-p/1658513#M727</guid>
      <dc:creator>Craig_Carpenter</dc:creator>
      <dc:date>2025-10-16T17:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Advanced Guide to Python Chap. 10 JSONDecodeError</title>
      <link>https://community.esri.com/t5/esri-press-books-questions/esri-advanced-guide-to-python-chap-10/m-p/1659198#M728</link>
      <description>&lt;P&gt;Hey there!&amp;nbsp; Quick question.&amp;nbsp; Can you check and see what version of the ArcGIS API for Python you're using?&amp;nbsp; You can do that by executing the following line.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcgis.__version__&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to reproduce your error when I was on version&amp;nbsp;&lt;STRONG&gt;2.4.1&lt;/STRONG&gt;.&amp;nbsp; I upgraded to&amp;nbsp;&lt;STRONG&gt;2.4.1.3&lt;/STRONG&gt; (a more recent patch) and that fixed the issue.&amp;nbsp; Could you try that and see if it fixes things for you?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 20:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/esri-press-books-questions/esri-advanced-guide-to-python-chap-10/m-p/1659198#M728</guid>
      <dc:creator>Esri_Dave_Crawford</dc:creator>
      <dc:date>2025-10-20T20:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Advanced Guide to Python Chap. 10 JSONDecodeError</title>
      <link>https://community.esri.com/t5/esri-press-books-questions/esri-advanced-guide-to-python-chap-10/m-p/1659798#M729</link>
      <description>&lt;P&gt;Thanks Dave! Yes, I was on v. 2.4.1.1. For some reason, even though I was signed in, Pro Package Manager was showing an update to v. 2.4.1.3 but did not have the usual Update button available. So, by that method I couldn't update.&lt;/P&gt;&lt;P&gt;However, I was able to update through the python command prompt as an administrator. No more error.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 21:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/esri-press-books-questions/esri-advanced-guide-to-python-chap-10/m-p/1659798#M729</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2025-10-22T21:14:48Z</dc:date>
    </item>
  </channel>
</rss>

