<?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: Why multi-processing is not working from ArcMap? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/why-multi-processing-is-not-working-from-arcmap/m-p/656586#M51102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was there anything useful from this esri staff presentation that might address your issue?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-7551"&gt;https://community.esri.com/docs/DOC-7551&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and have you gone through the 'issues addressed' documentation to ensure that hasn't been covered by program updated releases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2017 13:01:37 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-11-17T13:01:37Z</dc:date>
    <item>
      <title>Why multi-processing is not working from ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/why-multi-processing-is-not-working-from-arcmap/m-p/656585#M51101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;I have been using&amp;nbsp;the multiprocessing module to do network analysis's 'find closest facility' task for number of incidents in ArcMap 10.2.1.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;I have written python script which works fine if I run it in IDLE. I see all my cores max out in Task Manager and the code completes without error.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;Now if I&amp;nbsp;executes this script as a Script Tool in ArcToolbox it throws a&amp;nbsp;following error&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;STRONG&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: inherit;"&gt;"Could not find file: from multiprocessing.forking import main; main().mxd"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;As per ESRI Blogs, I regularly see that the script has to be "run out of process". So I unchecked the check box "run python in process" in the script properties dialog, and run the script tool. But the script tool starts execution and complete it without any processing.&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;So I followed the&amp;nbsp;&lt;A href="https://community.esri.com/docs/DOC-3824"&gt;Create a script tool that uses multiprocessing&lt;/A&gt;&amp;nbsp;&amp;nbsp;blog and do changes in my script as per mentioned in a blog. Still the script tool execute&amp;nbsp;&lt;SPAN&gt;without any processing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; margin: 0px 0px 1em;"&gt;&lt;SPAN&gt;Dinesh.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 09:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-multi-processing-is-not-working-from-arcmap/m-p/656585#M51101</guid>
      <dc:creator>dineshpatil2</dc:creator>
      <dc:date>2017-11-17T09:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why multi-processing is not working from ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/why-multi-processing-is-not-working-from-arcmap/m-p/656586#M51102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was there anything useful from this esri staff presentation that might address your issue?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-7551"&gt;https://community.esri.com/docs/DOC-7551&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and have you gone through the 'issues addressed' documentation to ensure that hasn't been covered by program updated releases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:01:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-multi-processing-is-not-working-from-arcmap/m-p/656586#M51102</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-17T13:01:37Z</dc:date>
    </item>
  </channel>
</rss>

