ArcMap 10.6 shutting down - Topo to Raster (Arcpy)

989
11
10-06-2019 07:49 PM
FelipeLeite_Nisiyama
New Contributor

Hi,

I'm quite new in using ArcPy and have been struggling with it. I was trying to run a python script that has a loop containing the Topo to Raster tool. The code runs smoothly just until this tool is executed, and at this moment ArcMap suddenly shuts down without any message. After a couple of tests I discovered that the script runs smoothly with the background processing option activated, and the shutting down just occurs when it's deactivated. I just can't let the background processing  option activated since the computational time would be too large for the purpouse of the script. 
Anyone has already experienced this type of problem? Any tips of how to fix it?

Kind Regards, 
Felipe. 

0 Kudos
11 Replies
FelipeLeite_Nisiyama
New Contributor

The code I'm running is:

>>>
import arcpy

... from arcpy import env

... from arcpy.sa import *

... env.workspace = "C:/nova"

... inPoints = TopoPointElevation([['rand_1.shp', 'Elev_m']])

... outTTR = TopoToRaster(inPoints,30,"","20","","","ENFORCE","SPOT")

... outTTR.save("C:/nova/test")

And the information regarding Python is given by:

>>> import sys
... import matplotlib
... import numpy
... import scipy
... print(sys.version)
... print(matplotlib.__version__)
... print(numpy.__version__)
... print(scipy.__version__)
...
2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
1.5.2
1.9.3
0.17.0

0 Kudos
DanPatterson_Retired
MVP Emeritus

sys.executable   ... will tell you the location of the python that is running and it should be the version of python that is installed for the 64 bit.

I can't test for you since I don't use arcmap and haven't used python 2.7 in years (switch to Pro... python 3.6.8 is used and 3.9 is out in first version...)

0 Kudos