<?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 Error on code that was working three weeks ago: (gis.content.get(item_id)).layers[0] (&amp;quot;module 'arcgis.layers' has no attribute '_ogc' &amp;quot;) in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-on-code-that-was-working-three-weeks-ago-gis/m-p/1715378#M12000</link>
    <description>&lt;P&gt;I am calling in a layer from an item ID by using the arcgis module "layers". If I just pull in the item using gis.content.get(item_id), the item shows up fine. When I try to get to the layers though, I get the error&amp;nbsp;module &lt;STRONG&gt;'arcgis.layers' has no attribute '_ogc'&lt;/STRONG&gt; . This was working for a long time, and is my go-to method for referencing in an AGOL item in a script. Any input is appreciated!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2026 19:51:17 GMT</pubDate>
    <dc:creator>MaryGraceMcClellan</dc:creator>
    <dc:date>2026-07-20T19:51:17Z</dc:date>
    <item>
      <title>Error on code that was working three weeks ago: (gis.content.get(item_id)).layers[0] ("module 'arcgis.layers' has no attribute '_ogc' ")</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-on-code-that-was-working-three-weeks-ago-gis/m-p/1715378#M12000</link>
      <description>&lt;P&gt;I am calling in a layer from an item ID by using the arcgis module "layers". If I just pull in the item using gis.content.get(item_id), the item shows up fine. When I try to get to the layers though, I get the error&amp;nbsp;module &lt;STRONG&gt;'arcgis.layers' has no attribute '_ogc'&lt;/STRONG&gt; . This was working for a long time, and is my go-to method for referencing in an AGOL item in a script. Any input is appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 19:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-on-code-that-was-working-three-weeks-ago-gis/m-p/1715378#M12000</guid>
      <dc:creator>MaryGraceMcClellan</dc:creator>
      <dc:date>2026-07-20T19:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error on code that was working three weeks ago: (gis.content.get(item_id)).layers[0] ("module 'arcgis.layers' has no attribute '_ogc' ")</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-on-code-that-was-working-three-weeks-ago-gis/m-p/1715444#M12001</link>
      <description>&lt;P&gt;I figured it out, but for reference I just had to upgrade the module.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;pip install arcgis --upgrade&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 23:10:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-on-code-that-was-working-three-weeks-ago-gis/m-p/1715444#M12001</guid>
      <dc:creator>MaryGraceMcClellan</dc:creator>
      <dc:date>2026-07-20T23:10:45Z</dc:date>
    </item>
  </channel>
</rss>

