Select to view content in your preferred language

Unable to run Generalized Linear Model in ArcGIS Pro

10-09-2023 05:20 AM
Labels (2)
New Contributor

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\", 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\", line 113, in run_ga_desktop_tool
    gax = get_client()
  File "d:\personal\mooc esri\esri_training\Resources\ArcToolbox\Scripts\gautils\", 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?


0 Kudos
2 Replies
MVP Esteemed Contributor

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

... sort of retired...
0 Kudos
Esri Notable Contributor

Looks like it's GeoAnalytics based upon this part of the code -

GA = GeoAnalytics Desktop tool me thinks.  It requires an Advanced license of ArcGIS Pro to run.  What is your license level?

0 Kudos