AnsweredAssumed Answered

arcpy.CreateMobileCache_mobile at 10.3

Question asked by dcoley on Jan 5, 2015
Latest reply on Jan 7, 2015 by dcoley

Hi all-

Does anyone have a workaround for creating a mobile cache in the python 32-bit idle at 10.3 (i.e. at 2.7.8)?  After updating to 10.3, the idle can no longer find the _mobile module installed with ArcGIS for Windows Mobile at 10.2, although the desktop tool Create Mobile Cache in 10.3 does run, suggesting that a registry key was deleted/modified? at install.  Code below (running at info lic level) returns 'module not found for line 12':


# Import system modules
import sys, string, os, arcpy, time, smtplib
from arcpy import env
# Local variables...
message = ""
current_time = time.asctime()
    mapDoc = r"\\servername\arcgisserver\data-store\MobileMaps\ARM360_QueryMap.mxd"
    outFolder = r"\\machinename\MobileCacheTests\Arm360\Query Data Cache"
    print mapDoc
    print outFolder
except Exception, e:
    # If an error occurred, print line number and error message
    import traceback, sys
    tb = sys.exc_info()[2]
    message = message + "Line %i" % tb.tb_lineno
    message = message + e.message

# Below is to send email message.
fromAddr = ""
#fromAddr = ""
toAddr = ["",""]
subject = "SCRIPT: Arm360QueryCache"
finish_time = time.asctime()
msgBody = current_time + "\n\n" + message + "\n" + "Thank you." + "\n\n" + finish_time
msg = string.join(("From: %s" %fromAddr, "To: %s" %toAddr, "Subject: %s" %subject, "", msgBody),"\r\n")
server = smtplib.SMTP("")



Any ideas are appreciated...





David Coley

Sarasota County GIS