<?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 CreateMapTilePackage_management Error 10054 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/createmaptilepackage-management-error-10054/m-p/372916#M29487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty straight forward script to build a .tpk from an existing .mxd that contains the desired feature class.&amp;nbsp; In fact, when the ArcToolbox is run on the same .mxd it completes as expected.&amp;nbsp; When I copy and paste the script from the Geoprocessing results window into a standalone .py script, it fails with the below error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateMapTilePackage_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_map&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"H:/directory/somename.mxd"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; service_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ONLINE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; output_file&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"H:/directory/somename.tpk"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; format_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"PNG"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; level_of_detail&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"10"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; service_file&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; summary&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; tags&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; extent&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"DEFAULT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 73, in execInThread&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\netref.py", line 196, in __call__&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\netref.py", line 71, in syncreq&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 431, in sync_request&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 379, in serve&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 337, in _recv&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\channel.py", line 50, in recv&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\stream.py", line 166, in read&lt;BR /&gt;EOFError: [Errno 10054] An existing connection was forcibly closed by the remote host&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:14:55 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2021-12-11T17:14:55Z</dc:date>
    <item>
      <title>CreateMapTilePackage_management Error 10054</title>
      <link>https://community.esri.com/t5/python-questions/createmaptilepackage-management-error-10054/m-p/372916#M29487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty straight forward script to build a .tpk from an existing .mxd that contains the desired feature class.&amp;nbsp; In fact, when the ArcToolbox is run on the same .mxd it completes as expected.&amp;nbsp; When I copy and paste the script from the Geoprocessing results window into a standalone .py script, it fails with the below error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateMapTilePackage_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_map&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"H:/directory/somename.mxd"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; service_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ONLINE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; output_file&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"H:/directory/somename.tpk"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; format_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"PNG"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; level_of_detail&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"10"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; service_file&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; summary&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; tags&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; extent&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"DEFAULT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 73, in execInThread&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\netref.py", line 196, in __call__&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\netref.py", line 71, in syncreq&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 431, in sync_request&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 379, in serve&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 337, in _recv&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\channel.py", line 50, in recv&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\PyScripter\Lib\rpyc.zip\rpyc\core\stream.py", line 166, in read&lt;BR /&gt;EOFError: [Errno 10054] An existing connection was forcibly closed by the remote host&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createmaptilepackage-management-error-10054/m-p/372916#M29487</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-11T17:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: CreateMapTilePackage_management Error 10054</title>
      <link>https://community.esri.com/t5/python-questions/createmaptilepackage-management-error-10054/m-p/372917#M29488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might find info here: &lt;A class="link-titled" href="https://stackoverflow.com/questions/8814802/python-errno-10054-an-existing-connection-was-forcibly-closed-by-the-remote-h" title="https://stackoverflow.com/questions/8814802/python-errno-10054-an-existing-connection-was-forcibly-closed-by-the-remote-h"&gt;twitter - python: [Errno 10054] An existing connection was forcibly closed by the remote host - Stack Overflow&lt;/A&gt;&amp;nbsp; useful. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 22:05:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createmaptilepackage-management-error-10054/m-p/372917#M29488</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2019-04-09T22:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: CreateMapTilePackage_management Error 10054</title>
      <link>https://community.esri.com/t5/python-questions/createmaptilepackage-management-error-10054/m-p/372918#M29489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Odd that the script fails when running via pyScripter but completes fine when executed from the ArcGIS toolbox tool.&amp;nbsp; I literally copied/pasted the .py snippet from the Geoprocessing results window into a new .py script file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 13:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createmaptilepackage-management-error-10054/m-p/372918#M29489</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2019-04-12T13:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: CreateMapTilePackage_management Error 10054</title>
      <link>https://community.esri.com/t5/python-questions/createmaptilepackage-management-error-10054/m-p/372919#M29490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This error is due to Background 64-bit Geoprocessing.&amp;nbsp; See &lt;A _jive_internal="true" href="https://community.esri.com/thread/219437-error-using-python-to-create-a-tpk-basemap-package"&gt;THIS &lt;/A&gt;thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fix I simply forced the script to run C:\Python27\ArcGIS10.4\python.exe, which I put into a .cmd text file.&amp;nbsp; This works perfect since I planned to run this from the Task Scheduler anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createmaptilepackage-management-error-10054/m-p/372919#M29490</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2019-04-12T14:00:19Z</dc:date>
    </item>
  </channel>
</rss>

