POST
|
I am having problems running a multi-process script when executed from the ArcGIS Pro application. The script works fine when invoked from the command line. Here is sample code to reproduce the problem: import arcpy import multiprocessing def mp_process(inputs): task = inputs # do some work return task if __name__ == "__main__": # create pool pool = multiprocessing.Pool(2) arcpy.AddMessage(str(pool.map(mp_process, [1,2,3,4]))) This simple geo-processing script fails to execute when invoked from ArcGIS Pro. The following exception is reported: _pickle.PicklingError: Can't pickle <function mp_process at 0x000001C5CD672510>: attribute lookup mp_process on __main__ failed. I can run this script from the command line with no issues, but from ArcGIS Pro it throws this exception. Does anyone know if there is a way to implement multi-processing in ArcGIS Pro custom geoprocessing tools?? thanks
... View more
12-17-2018
05:29 AM
|
0
|
0
|
323
|
POST
|
Hi Uma, I just tested my standalone application following your CoreHostResolveAssembly sample and it worked fine. Thank you!
... View more
08-17-2018
08:29 AM
|
0
|
0
|
636
|
POST
|
Hi Uma, Thank you for providing this example. I will check it out as soon as I get a chance. Thanks again!
... View more
08-14-2018
02:17 PM
|
0
|
1
|
636
|
POST
|
Does anyone know what the guidelines are for deploying an ArcGIS Pro standalone application? I specifically would like to know how is the executable supposed to find DLLs: ArcGIS.Core.dll and ArcGIS.CoreHost.dll. The machine we're deploying the application to already has ArcGIS Pro installed, so we are NOT delivering those DLLs with the application. Are those DLLs supposed to be in the System Path? We tried this and for some reason it did not work, the Executable threw an exception with a could not load file or assembly error message. Are they supposed to be registered to the GAC? This worked, but we are wondering if this could have some bad side effects on ArcGis Pro Are they supposed to be copied to the executables directory? This worked for us but we're questioning whether this is the ideal solution. What is the recommended way?
... View more
07-26-2018
07:07 AM
|
0
|
3
|
975
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|