Select to view content in your preferred language

Error message(s) when running Spatial Statistics tools

5475
1
07-22-2013 09:15 AM
ScottSirotkin
Emerging Contributor
I'm using 10.1 and when I try to run any of the Spatial Statistics tools I get the following list of errors:
ERROR
updateParameters Syntax Error: Runtime error Traceback (most recent call last): File "c:\program files (x86)\arcgis\desktop10.1\ArcToolbox\Toolboxes\Spatial Statistics Tools.tbx#GroupingAnalysis_stats.UpdateParameters.py", line 3, in File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\__init__.py", line 24, in from arcpy.toolbox import * File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\toolbox.py", line 342, in from management import Graph, GraphTemplate File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\management.py", line 22, in import _management File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\_management.py", line 14, in import _graph File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\_graph.py", line 27, in import numpy ImportError: No module named numpy

I've looked at several threads on this subject. I did already have a version of Python (2.7) installed on my computer when I installed Arc, which seems to be the source of the problem. I've tried the suggestions from the other threads (uninstalling Python and re-installing Arc, running the Arc repair tool) to no avail.

Does anyone have ideas of anything else I can try? Thanks!
0 Kudos
1 Reply
ScottSirotkin
Emerging Contributor
I've got the tools working now. In case this can help someone in the future, here's what I did (I'm running Windows 7, btw):
(1) I added "C:\Python27\ArcGIS10.1\Lib\site-packages\" to the PYTHONPATH environmental variable. This allowed Arc to find numpy.
(2) Now the tool would run, but it would encounter an error stating that it could not find a usable "init.tcl" file. I wound up copying the tcl8.5 folder from the tcl directory into the Lib directory (under Python2.7\ArcGIS10.1) and that got me to the next step...
(3) Which was a new error stating it could not find a usable "tk.tcl" file. So I copied that folder into the tcl8.5 folder I just copied. Finally the tool ran to completion.

Not sure how my configuration got so messed up, hopefully no one else runs into this situation!