Why multi-processing is not working from ArcMap?

709
1
11-17-2017 01:38 AM
dineshpatil2
New Contributor III

Hello,

I have been using the multiprocessing module to do network analysis's 'find closest facility' task for number of incidents in ArcMap 10.2.1.

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.

Now if I executes this script as a Script Tool in ArcToolbox it throws a following error

"Could not find file: from multiprocessing.forking import main; main().mxd"

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.

So I followed the Create a script tool that uses multiprocessing  blog and do changes in my script as per mentioned in a blog. Still the script tool execute without any processing.

Thanks!

Dinesh.

Tags (2)
0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

Was there anything useful from this esri staff presentation that might address your issue?

https://community.esri.com/docs/DOC-7551

and have you gone through the 'issues addressed' documentation to ensure that hasn't been covered by program updated releases?