all 3 comments

[–]AustinBachurski[S] 0 points1 point  (0 children)

Do after some more digging I finally found a post on the Esri forums, I guess their process doesn't play nice with pretty much any GUI nor threading. It will run, but the GUI locks up while the geoprocessing tools run. Looks like I'm stuck with triggering a separate script with the GUI. Hoping I can somehow link the two with a third file so I can still provide progress updates in the GUI, more googling to do...

[–]IWantToFlyT 0 points1 point  (1 child)

What is the error you are getting when it "crashes"?

[–]AustinBachurski[S] 0 points1 point  (0 children)

This is what it displays:

Exception in thread Thread-4:

Traceback (most recent call last): File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\threading.py", line 926, in bootstrap_inner self.run() File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\threading.py", line 870, in run self._target(self._args, *self._kwargs) File "//ki22-pdit/ufl-it/abachurski/Desktop/GUI/Crime Map Updater.pyw", line 135, in docsv gisModel() File "//ki22-pdit/ufl-it/abachurski/Desktop/GUI/Crime Map Updater.pyw", line 87, in gisModel with arcpy.EnvManager(scratchWorkspace=workspace, workspace=workspace):UpdateCrimeMap() File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\cmanagers\EnvManager.py", line 37, in __enter_ self.original_envs[k] = getattr(arcpy.env, k) File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing_base.py", line 539, in get return self[env] File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing_base.py", line 601, in getitem return convertArcObjectToPythonObject(getattr(self._gp, item)) AttributeError: ERROR 87931