I got hotspot updateParameters Syntax Error in ArcGIS 10.4 . I run it before, No error. After I had to install Aptana_Studio_3_Setup_3.6.1 , Node.js and Git. I started to get that error . I was following UpdateParameters Syntax Error on all Spatial Stats tools , but not fixing. Please give me guidance!
************************************* Error *******************************************
ERROR
updateParameters Syntax Error: Runtime error Traceback (most recent call last): File "c:\program files (x86)\arcgis\dk10.4\desktop10.4\ArcToolbox\Toolboxes\Spatial Statistics Tools.tbx#HotSpots_stats.UpdateParameters.py", line 6, in File "C:\Program Files (x86)\ArcGIS\DK10.4\Desktop10.4\ArcToolBox\Scripts\WeightsUtilities.py", line 20, in import SSUtilities as UTILS File "C:\Program Files (x86)\ArcGIS\DK10.4\Desktop10.4\ArcToolBox\Scripts\SSUtilities.py", line 29, in import matplotlib.path as PATH File "C:\Python27\Dk104\ArcGIS10.4\lib\site-packages\matplotlib\__init__.py", line 169, in from urllib2 import urlopen File "C:\Users\Yxxxxx\AppData\Local\Continuum\Anaconda2\Lib\urllib2.py", line 94, in import httplib File "C:\Users\Yxxxx\AppData\Local\Continuum\Anaconda2\Lib\httplib.py", line 72, in import socket File "C:\Users\Yxxxxx\AppData\Local\Continuum\Anaconda2\Lib\socket.py", line 47, in import _socket ImportError: DLL load failed: %1 is not a valid Win32 application.
Solved! Go to Solution.
I added C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolBox\Scripts to PYTHONPATH, even I saw Desktop10.4.pth has it. Then No error ! Thank you.
That patch is several years old. I suspect it may have corrupted your installation. I would uninstall or go back to a previous restore point in windows
I did: uninstalled ArcGIS 10.4 ,Aptana_Studio_3_Setup_3.6.1 , Node.js and Git and installed ArcGIS 10.4 only, but still error I got. ???
I added C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolBox\Scripts to PYTHONPATH, even I saw Desktop10.4.pth has it. Then No error ! Thank you.