Sunday, 5 June 2016

ArcGIS Raster Calculator fails with Error 000539


I have been using Raster Calculator in ArcMap 10.2, today it started returning error 000539 for all actions. Previously it had worked fine. I have not made any change ot my ArcGIS, Python, or Windows 7 installation.


This is the error message I get:


Messages
Executing: RasterCalculator ""Carbon" + 2" C:\Users\mem48\Documents\ArcGIS\Default.gdb\rastercalc6
Start Time: Tue Mar 17 15:48:30 2015
Raster(r"Carbon") + 2
ERROR 000539: Error running expression: rcexec()
Traceback (most recent call last):
File "", line 1, in

File "", line 2, in rcexec
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\__init__.py", line 24, in
from arcpy.toolbox import *
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\toolbox.py", line 351, in
from management import Graph, GraphTemplate
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 22, in
import _management
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\_management.py", line 14, in
import _graph
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\_graph.py", line 27, in

import numpy
File "C:\Python27\ArcGIS10.2\Lib\site-packages\numpy\__init__.py", line 137, in
import add_newdocs
File "C:\Python27\ArcGIS10.2\Lib\site-packages\numpy\add_newdocs.py", line 9, in
from numpy.lib import add_newdoc
File "C:\Python27\ArcGIS10.2\Lib\site-packages\numpy\lib\__init__.py", line 4, in
from type_check import *
File "C:\Python27\ArcGIS10.2\Lib\site-packages\numpy\lib\type_check.py", line 8, in
import numpy.core.numeric as _nx
File "C:\Python27\ArcGIS10.2\Lib\site-packages\numpy\core\__init__.py", line 5, in

import multiarray
ImportError: DLL load failed: %1 is not a valid Win32 application.

Failed to execute (RasterCalculator).
Failed at Tue Mar 17 15:48:33 2015 (Elapsed Time: 3.37 seconds)

All the files mentioned in the message are present. I've tried using different inputs, output locations, and expressions. It seems that Raster Calculator has just failed completely.


What is wrong and how do I fix it?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...