<?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: arcgis.layers module not working in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1608401#M11338</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I ran into the same problem using ArcGIS PRO 3.3.5 (arcgis 2.3.0.4) and this two import variants:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis.layers
from arcgis import layers&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;It seems that the arcgis.layers module is simply not part of this arcgis version?&lt;/P&gt;&lt;P&gt;It's just not mentioned in the documentation [1], which is a bit problematic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the OGC examples [2], a different approach is mentioned, but this does not work with this version either.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.mapping.layers import WMTSLayer, WMSLayer&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[1]&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.layers.toc.html" target="_blank"&gt;https://developers.arcgis.com/python/latest/api-reference/arcgis.layers.toc.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2]&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/samples/publish-ogc-services/#connect-to-your-gis" target="_blank"&gt;https://developers.arcgis.com/python/latest/samples/publish-ogc-services/#connect-to-your-gis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Hannes&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 10:02:31 GMT</pubDate>
    <dc:creator>Hannes_Brandt</dc:creator>
    <dc:date>2025-04-23T10:02:31Z</dc:date>
    <item>
      <title>arcgis.layers module not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1573249#M11006</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to add an image service to a map. I'm following documentation (&lt;A href="https://developers.arcgis.com/python/latest/guide/using-imagery-layers/" target="_blank"&gt;https://developers.arcgis.com/python/latest/guide/using-imagery-layers/&lt;/A&gt;) that says to use the arcgis.layers module, but I get the following error:&amp;nbsp;ModuleNotFoundError: No module named 'arcgis.layers'&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro 3.2, I cloned and updated the active environment...still not found. Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 17:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1573249#M11006</guid>
      <dc:creator>tad</dc:creator>
      <dc:date>2025-01-07T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.layers module not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1573260#M11007</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/689569"&gt;@tad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you importing the arcgis.layers module?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_0-1736273480116.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/122870i4078772D11033388/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_0-1736273480116.png" alt="CodyPatterson_0-1736273480116.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 18:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1573260#M11007</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-01-07T18:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.layers module not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1573283#M11009</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;&amp;nbsp; that's what is causing the error I'm receiving. Sorry, I should have made that more clear...&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 18:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1573283#M11009</guid>
      <dc:creator>tad</dc:creator>
      <dc:date>2025-01-07T18:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.layers module not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1573293#M11010</link>
      <description>&lt;P&gt;arcgis 2.4 requires python&amp;nbsp; &amp;gt;3.10 &amp;lt;3.13&lt;/P&gt;&lt;P&gt;doesn't Pro 3.2 use 3.9?&lt;/P&gt;&lt;P&gt;give this a try&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis
arcgis.__version__
'2.4.0'

from arcgis import layers

dir(layers)
['BasemapService',
 'BasemapServices',
 'BuildingLayer',
 'CSVLayer',
 'EnterpriseMapImageLayerManager',
 'EnterpriseSceneLayerManager',
 'EnterpriseVectorTileLayerManager',
.... snip ...&lt;/LI-CODE&gt;&lt;P&gt;maybe the clone installed a different versin and "layers" is now a separate module&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 19:36:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1573293#M11010</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-01-07T19:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.layers module not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1574195#M11031</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;. That still didn't work. If it's retired, is there a new (or different) way of adding an image web service?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 22:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1574195#M11031</guid>
      <dc:creator>tad</dc:creator>
      <dc:date>2025-01-09T22:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.layers module not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1574198#M11032</link>
      <description>&lt;P&gt;its npt retired ... I am&lt;/P&gt;&lt;P&gt;so you are aren't using Pro 3.4 and python 3.11 and the cloning of the environment wouldn't have installed the correct version of the arcgis module, and even if you did install it, you will have to check that is the correct version in the clone&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 23:07:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1574198#M11032</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-01-09T23:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.layers module not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1608401#M11338</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I ran into the same problem using ArcGIS PRO 3.3.5 (arcgis 2.3.0.4) and this two import variants:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis.layers
from arcgis import layers&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;It seems that the arcgis.layers module is simply not part of this arcgis version?&lt;/P&gt;&lt;P&gt;It's just not mentioned in the documentation [1], which is a bit problematic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the OGC examples [2], a different approach is mentioned, but this does not work with this version either.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.mapping.layers import WMTSLayer, WMSLayer&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[1]&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.layers.toc.html" target="_blank"&gt;https://developers.arcgis.com/python/latest/api-reference/arcgis.layers.toc.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2]&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/samples/publish-ogc-services/#connect-to-your-gis" target="_blank"&gt;https://developers.arcgis.com/python/latest/samples/publish-ogc-services/#connect-to-your-gis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Hannes&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 10:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-layers-module-not-working/m-p/1608401#M11338</guid>
      <dc:creator>Hannes_Brandt</dc:creator>
      <dc:date>2025-04-23T10:02:31Z</dc:date>
    </item>
  </channel>
</rss>

