<?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 API for Python Map Export Error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-api-for-python-map-export-error/m-p/1278816#M67422</link>
    <description>&lt;P&gt;Have you got any backlashes in your arguments?&amp;nbsp; Error seems to be related to them.&amp;nbsp; Maybe use a raw string for your filepath r'C:\Stuff\I Love GIS'&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 15:17:30 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2023-04-14T15:17:30Z</dc:date>
    <item>
      <title>ArcGIS API for Python Map Export Error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-api-for-python-map-export-error/m-p/1278554#M67418</link>
      <description>&lt;P&gt;I am creating a basic map following the instructions from the ArcGIS API for Python tutorial (see link below).&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/part5-saving-updating-and-embedding-map-widget/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/part5-saving-updating-and-embedding-map-widget/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When using the export_to_html method I get a bad escape \u and I cannot export the map. Is there a resolution to this error? It seems to me this error is related to this stack overflow question:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/54330673/how-to-fix-error-bad-escape-u-at-position-0" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/54330673/how-to-fix-error-bad-escape-u-at-position-0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Code (replaced API key and file path):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis = GIS(api_key='my key')
map1 = gis.map('USA')
map1.export_to_html('file path')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UnsungHer0z_0-1681419573018.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67974i5A300A8F31A84DBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UnsungHer0z_0-1681419573018.png" alt="UnsungHer0z_0-1681419573018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Package Versions:&lt;/P&gt;&lt;P&gt;Python - 3.7.1&lt;/P&gt;&lt;P&gt;ArcGIS - 2.1.0.3&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 21:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-api-for-python-map-export-error/m-p/1278554#M67418</guid>
      <dc:creator>UnsungHer0z</dc:creator>
      <dc:date>2023-04-13T21:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python Map Export Error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-api-for-python-map-export-error/m-p/1278816#M67422</link>
      <description>&lt;P&gt;Have you got any backlashes in your arguments?&amp;nbsp; Error seems to be related to them.&amp;nbsp; Maybe use a raw string for your filepath r'C:\Stuff\I Love GIS'&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 15:17:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-api-for-python-map-export-error/m-p/1278816#M67422</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-04-14T15:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python Map Export Error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-api-for-python-map-export-error/m-p/1278853#M67423</link>
      <description>&lt;P&gt;That did not solve the issue, but I did look again and it ended up being an error with the ipywidgets version. I updated to 7.7.5 (anything after version 8 causes more errors) and now it works. I can successfully export the map as an html file but now I am running into another issue where the map file is blank when I open it. Not sure if I should create another post or continue with this one for this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 16:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-api-for-python-map-export-error/m-p/1278853#M67423</guid>
      <dc:creator>UnsungHer0z</dc:creator>
      <dc:date>2023-04-14T16:23:00Z</dc:date>
    </item>
  </channel>
</rss>

