mjogerst

Python.exe crash creating sddraft file under ArcGIS10.5?

Discussion created by mjogerst on Jun 19, 2018
Latest reply on Jun 19, 2018 by mjogerst

We have a very simple python script that was working fine under 10.3.1, but since then I've upgraded my dev box to windows 10 x64 and installed Arc Desktop 10.5.

 

#Create the SDDraft
analyze_messages = arcpy.CreateGeocodeSDDraft(locatorPath, locatorSDDraft, locatorName, connection_file_path=gis_server_connection_file,
summary=locatorSummary, tags=locatorTags)

 

If I call the script using the 32 bit version of Python that was installed with ArcDesktop, Python crashes and I get the following error in the event viewer:

 

Faulting application name: python.exe, version: 0.0.0.0, time stamp: 0x5855a38f
Faulting module name: Geocoding.dll, version: 10.5.1.7333, time stamp: 0x591e1586
Exception code: 0xc0000005
Fault offset: 0x002a9adf
Faulting process id: 0xee8c
Faulting application start time: 0x01d407c9a391544c
Faulting application path: C:\Python27\ArcGIS10.5\python.exe
Faulting module path: C:\Program Files (x86)\ArcGIS\Desktop10.5\bin\Geocoding.dll
Report Id: 69f0fa0c-55c9-454e-aba1-df2b1a6bb791
Faulting package full name:
Faulting package-relative application ID:

 

Any ideas?  Any other log file I can look at? From what I've read, the 32 bit version is what i ~should~ be using for these scripts (because of the error below which seems to be fixed by using the 32 bit version)

 

-------

Strangely, if I use the 64 bit python exe, installed with the background processing engine, I can actually create the sddraft file just fine, but it fails creating the SD file.

 

arcgisscripting.ExecuteError
Message=ERROR 001269: Compressing the service definition failed.
Failed to execute (StageService).

StackTrace:
C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\server.py:1401 in StageService

 

 

In truth, I don't really care which python engine I use, but I just need ONE to work properly.

Outcomes