<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic arcpy.CreateMobileCache_mobile at 10.3 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-createmobilecache-mobile-at-10-3/m-p/701152#M54331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all-&lt;/P&gt;&lt;P&gt;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)?&amp;nbsp; 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.&amp;nbsp; Code below (running at info lic level) returns 'module not found for line 12':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Import system modules
import sys, string, os, arcpy, time, smtplib
from arcpy import env
# Local variables...
message = ""
current_time = time.asctime()
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; mapDoc = r"\\servername\arcgisserver\data-store\MobileMaps\ARM360_QueryMap.mxd"
&amp;nbsp;&amp;nbsp;&amp;nbsp; outFolder = r"\\machinename\MobileCacheTests\Arm360\Query Data Cache"
&amp;nbsp;&amp;nbsp;&amp;nbsp; print mapDoc
&amp;nbsp;&amp;nbsp;&amp;nbsp; print outFolder
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateMobileCache_mobile(mapDoc,outFolder,"","NO_ATTACHMENTS","")
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
except Exception, e:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurred, print line number and error message
&amp;nbsp;&amp;nbsp;&amp;nbsp; import traceback, sys
&amp;nbsp;&amp;nbsp;&amp;nbsp; tb = sys.exc_info()[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp; message = message + "Line %i" % tb.tb_lineno
&amp;nbsp;&amp;nbsp;&amp;nbsp; 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("10.140.65.27")
server.set_debuglevel(1)
server.sendmail(fromAddr,toAddr,msg)
server.quit()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are appreciated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Coley&lt;/P&gt;&lt;P&gt;Sarasota County GIS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:30:15 GMT</pubDate>
    <dc:creator>DavidColey</dc:creator>
    <dc:date>2021-12-12T05:30:15Z</dc:date>
    <item>
      <title>arcpy.CreateMobileCache_mobile at 10.3</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-createmobilecache-mobile-at-10-3/m-p/701152#M54331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all-&lt;/P&gt;&lt;P&gt;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)?&amp;nbsp; 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.&amp;nbsp; Code below (running at info lic level) returns 'module not found for line 12':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Import system modules
import sys, string, os, arcpy, time, smtplib
from arcpy import env
# Local variables...
message = ""
current_time = time.asctime()
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; mapDoc = r"\\servername\arcgisserver\data-store\MobileMaps\ARM360_QueryMap.mxd"
&amp;nbsp;&amp;nbsp;&amp;nbsp; outFolder = r"\\machinename\MobileCacheTests\Arm360\Query Data Cache"
&amp;nbsp;&amp;nbsp;&amp;nbsp; print mapDoc
&amp;nbsp;&amp;nbsp;&amp;nbsp; print outFolder
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateMobileCache_mobile(mapDoc,outFolder,"","NO_ATTACHMENTS","")
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
except Exception, e:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurred, print line number and error message
&amp;nbsp;&amp;nbsp;&amp;nbsp; import traceback, sys
&amp;nbsp;&amp;nbsp;&amp;nbsp; tb = sys.exc_info()[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp; message = message + "Line %i" % tb.tb_lineno
&amp;nbsp;&amp;nbsp;&amp;nbsp; 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("10.140.65.27")
server.set_debuglevel(1)
server.sendmail(fromAddr,toAddr,msg)
server.quit()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are appreciated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Coley&lt;/P&gt;&lt;P&gt;Sarasota County GIS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:30:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-createmobilecache-mobile-at-10-3/m-p/701152#M54331</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2021-12-12T05:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateMobileCache_mobile at 10.3</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-createmobilecache-mobile-at-10-3/m-p/701153#M54332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try repairing your ArcGIS for Windows Mobile install and running the script again.&amp;nbsp; Sometimes, it will grab the last python library installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did this help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Alexander N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 23:33:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-createmobilecache-mobile-at-10-3/m-p/701153#M54332</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2015-01-06T23:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateMobileCache_mobile at 10.3</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-createmobilecache-mobile-at-10-3/m-p/701154#M54333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander-&lt;/P&gt;&lt;P&gt;Yeah that's what I thought too, but alas no help.&amp;nbsp; After repair, the script as run in the python 32-bit idle crashes python exe.&amp;nbsp; I then performed a re-install of mobile 10.2.&amp;nbsp; Upon load of the mobile toolbox, both the cache and sync tools are then unavailable.&amp;nbsp; Customer service indicated that mobile at 10.2 just does not work well with desktop 10.3, and that mobile for 10.3 will be available late January.&amp;nbsp; So until then I am going to consider this answered.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For other users (and this would be better posted in the mobile place, which I will do) I would suggest that if you have mobile at 10.2 installed and you must move your desktop to 10.3, do not uninstall mobile.&amp;nbsp; The install can be left in place, and that way users at least have access to the desktop tool, which does seem to continue to work.&lt;/P&gt;&lt;P&gt;Thanks-&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 15:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-createmobilecache-mobile-at-10-3/m-p/701154#M54333</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2015-01-07T15:03:52Z</dc:date>
    </item>
  </channel>
</rss>

