AnsweredAssumed Answered

"ImportError: cannot import name RAND_egd" on most Spatial Statistics Tools in ArcGIS 10.4.1

Question asked by stacemaples on Dec 8, 2016

We're experiencing failure of tools in the Spatial Statistics toolbox, on all machines. Checked our ENV paths, did a reinstall, etc... nothing seems to fix it. Here is the error we get. 

 

Executing: SpatialAutocorrelation places POP2000 NO_REPORT INVERSE_DISTANCE EUCLIDEAN_DISTANCE NONE # #
Start Time: Thu Dec 08 10:31:01 2016
Running script SpatialAutocorrelation...
Failed script SpatialAutocorrelation...
Traceback (most recent call last):
File "c:\program files (x86)\arcgis\desktop10.4\ArcToolbox\Scripts\MoransI.py", line 16, in <module>
import SSUtilities as UTILS
File "c:\program files (x86)\arcgis\desktop10.4\ArcToolbox\Scripts\SSUtilities.py", line 29, in <module>
import matplotlib.path as PATH
File "C:\Python27\ArcGIS10.4\lib\site-packages\matplotlib\__init__.py", line 169, in <module>
from urllib2 import urlopen
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 94, in <module>
File "C:\Python27\ArcGIS10.3\Lib\httplib.py", line 71, in <module>
File "C:\Python27\ArcGIS10.3\Lib\socket.py", line 68, in <module>
ImportError: cannot import name RAND_egd
Failed to execute (SpatialAutocorrelation).
Failed at Thu Dec 08 10:31:01 2016 (Elapsed Time: 0.05 seconds)

 

The RAND_egd failure seems to be the common thread for all the tools. Interestingly, when you launch the Optimized Hot Spot Analysis tool, you get the error immediately, as the red X next to the 'Input Features' parameter. When you click on the red X, you get this:

 

updateParameters Syntax Error: Runtime error Traceback (most recent call last): File "c:\program files (x86)\arcgis\desktop10.4\ArcToolbox\Toolboxes\Spatial Statistics Tools.tbx#OptimizedHotSpotAnalysis_stats.UpdateParameters.py", line 6, in File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolBox\Scripts\SSUtilities.py", line 29, in import matplotlib.path as PATH File "C:\Python27\ArcGIS10.4\lib\site-packages\matplotlib\__init__.py", line 169, in from urllib2 import urlopen File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 94, in File "C:\Python27\ArcGIS10.3\Lib\httplib.py", line 71, in File "C:\Python27\ArcGIS10.3\Lib\socket.py", line 68, in ImportError: cannot import name RAND_egd

 

 

Anyone see anything obvious?

 

Stace

Outcomes