<?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: ImportError: cannot import name 'WebMap' from 'arcgis.mapping' in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1552123#M1492</link>
    <description>&lt;P&gt;I think I have found the issue. The working environment is running arcgis 2.3.1 and the non-working one is running 2.4.0. From here&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/api-python/announcements/whats-new-in-arcgis-api-for-python-2-4-0-blog/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/api-python/announcements/whats-new-in-arcgis-api-for-python-2-4-0-blog/&lt;/A&gt;&amp;nbsp;it appears that "The previous arcgis.mapping and arcgis.widgets modules have been deprecated and refactored into the new arcgis.map module." I have not tested yet, but this sounds like it could be the cause of the error.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 21:48:48 GMT</pubDate>
    <dc:creator>sandra555</dc:creator>
    <dc:date>2024-10-24T21:48:48Z</dc:date>
    <item>
      <title>ImportError: cannot import name 'WebMap' from 'arcgis.mapping'</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1551066#M1490</link>
      <description>&lt;P&gt;I am running a similar program from my local computer's terminal and from an AWS EC2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;They both start with:&lt;/P&gt;&lt;P&gt;from arcgis.gis import *&lt;BR /&gt;from arcgis.mapping import WebMap&lt;/P&gt;&lt;P&gt;From my local computer, the code continues past the import and runs fine.&lt;/P&gt;&lt;P&gt;From the AWS EC2, I get the following error:&lt;/P&gt;&lt;P&gt;from arcgis.mapping import WebMap&lt;BR /&gt;ImportError: cannot import name 'WebMap' from 'arcgis.mapping' (/home/ec2-user/miniconda3/envs/env2/lib/python3.12/site-packages/arcgis/mapping/__init__.py)&lt;/P&gt;&lt;P&gt;I am running an Anaconda terminal locally and miniconda in my EC2.&lt;/P&gt;&lt;P&gt;I used "&lt;SPAN class=""&gt;conda&lt;/SPAN&gt;&lt;SPAN class=""&gt; install -c &lt;/SPAN&gt;&lt;SPAN class=""&gt;esri&lt;/SPAN&gt; &lt;SPAN class=""&gt;arcgis" in both.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Any idea why this is happening and how to fix it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 19:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1551066#M1490</guid>
      <dc:creator>sandra555</dc:creator>
      <dc:date>2024-10-22T19:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: cannot import name 'WebMap' from 'arcgis.mapping'</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1552123#M1492</link>
      <description>&lt;P&gt;I think I have found the issue. The working environment is running arcgis 2.3.1 and the non-working one is running 2.4.0. From here&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/api-python/announcements/whats-new-in-arcgis-api-for-python-2-4-0-blog/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/api-python/announcements/whats-new-in-arcgis-api-for-python-2-4-0-blog/&lt;/A&gt;&amp;nbsp;it appears that "The previous arcgis.mapping and arcgis.widgets modules have been deprecated and refactored into the new arcgis.map module." I have not tested yet, but this sounds like it could be the cause of the error.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 21:48:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1552123#M1492</guid>
      <dc:creator>sandra555</dc:creator>
      <dc:date>2024-10-24T21:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: cannot import name 'WebMap' from 'arcgis.mapping'</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1567017#M1532</link>
      <description>&lt;P&gt;Did U solve this? Looks like it is deprecated &lt;A href="https://developers.arcgis.com/python/latest/guide/deprecation-notices/#arcgismapping-module-1" target="_blank"&gt;https://developers.arcgis.com/python/latest/guide/deprecation-notices/#arcgismapping-module-1&lt;/A&gt;&amp;nbsp;and for me 100% does not work.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcgis.map.Map works but doesn't look like it's the exact same, and all the docs use WebMap.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 21:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1567017#M1532</guid>
      <dc:creator>chris_del101</dc:creator>
      <dc:date>2024-12-10T21:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: cannot import name 'WebMap' from 'arcgis.mapping'</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1567030#M1533</link>
      <description>&lt;P&gt;Hi, It is definitely the version of arcgis. For now, I made a python 3.9 environment and continued using&amp;nbsp;&lt;SPAN&gt;arcgis 2.3.1 so I did not have to update my code (I was not able to use arcgis 2.3.1 with python 3.12).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 21:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1567030#M1533</guid>
      <dc:creator>sandra555</dc:creator>
      <dc:date>2024-12-10T21:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: cannot import name 'WebMap' from 'arcgis.mapping'</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1567526#M1536</link>
      <description>&lt;P&gt;Thanks for the info. For my own recordkeeping I thought I'd note I found some docs on this here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/guide/working-with-web-maps-and-web-scenes/#creating-a-map-object" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/latest/guide/working-with-web-maps-and-web-scenes/#creating-a-map-object&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 21:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/importerror-cannot-import-name-webmap-from-arcgis/m-p/1567526#M1536</guid>
      <dc:creator>chris_del101</dc:creator>
      <dc:date>2024-12-12T21:49:28Z</dc:date>
    </item>
  </channel>
</rss>

