While trying to run the Generalized Linear Regression Model with ArcGIS Pro, it displayed the following error message
Traceback (most recent call last):
File "d:\personal\mooc esri\esri_training\Resources\ArcToolbox\scripts\ga_desktop_generalizedlinearregression.py", line 29, in <module>
explanatoryVariableMatching=get_value(6, as_value=True, val_table='glr_explanatory_variable_matching'),
File "d:\personal\mooc esri\esri_training\Resources\ArcToolbox\Scripts\gautils\utilities.py", line 113, in run_ga_desktop_tool
gax = get_client()
File "d:\personal\mooc esri\esri_training\Resources\ArcToolbox\Scripts\gautils\utilities.py", line 96, in get_client
from ga_spark.local import jobclient
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 982, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 925, in _find_spec
File "<frozen importlib._bootstrap_external>", line 1423, in find_spec
File "<frozen importlib._bootstrap_external>", line 1389, in _get_spec
File "<frozen importlib._bootstrap_external>", line 1252, in __iter__
File "<frozen importlib._bootstrap_external>", line 1239, in _recalculate
File "<frozen importlib._bootstrap_external>", line 1235, in _get_parent_path
KeyError: 'ga_spark'
Failed script Generalized Linear Regression...
Failed to execute (GeneralizedLinearRegression).
How can I solve this issue?
There are 2
Generalized Linear Regression (GeoAnalytics Desktop)—ArcGIS Pro | Documentation
Generalized Linear Regression (Spatial Statistics)—ArcGIS Pro | Documentation
Which are you using? and do you have the correct licensing for it?
The keyerror suggests that you don't have access to apache spark
Looks like it's GeoAnalytics based upon this part of the code -
ga_desktop_generalizedlinearregression.py
GA = GeoAnalytics Desktop tool me thinks. It requires an Advanced license of ArcGIS Pro to run. What is your license level?