<?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 Re: Python script using mobile geoprocessing tools in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-using-mobile-geoprocessing-tools/m-p/463733#M36342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd try importing the toolbox into arcpy. That may be all you need to do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.ImportToolbox("path/MobileTools.tbx")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2012 18:22:07 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2012-09-12T18:22:07Z</dc:date>
    <item>
      <title>Python script using mobile geoprocessing tools</title>
      <link>https://community.esri.com/t5/python-questions/python-script-using-mobile-geoprocessing-tools/m-p/463732#M36341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Python script that I am trying to run. It calls a geoprocessing tool found in the Mobile toolbox:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;arcpy.CreateMobileCache_mobile( mxdName,fldName,"#","#","#" )&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When running this script, i get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'module' object has no attribute 'CreateMobileCache_mobile'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My thinking is that since ArcGIS Mobile is a separate installation to ArcGIS Desktop, Python doesn't know where to find the python script versions of the mobile geoprocessing tools. All other geoprocessing tools (those installed with ArcGIS Desktop) can be used without the above error occurring. Is there some sort of path setting that needs to have the location of the "mobile" python scripts added to it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the python scripts for the mobile geoprocessing tools in "C:\Program Files (x86)\ArcGIS\Mobile3.0\arcpy\mobile". There are four files in here, namely:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__init__.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__init__.pyc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mobile.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mobile.pyc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should I copy these files to the ArcGIS Desktop equivalent found at "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please could someone more familiar with Python guide me in the right direction so that I can use these mobile geoprocessing tools in Python? Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 12:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-using-mobile-geoprocessing-tools/m-p/463732#M36341</guid>
      <dc:creator>AlanTonkin</dc:creator>
      <dc:date>2012-09-12T12:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Python script using mobile geoprocessing tools</title>
      <link>https://community.esri.com/t5/python-questions/python-script-using-mobile-geoprocessing-tools/m-p/463733#M36342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd try importing the toolbox into arcpy. That may be all you need to do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.ImportToolbox("path/MobileTools.tbx")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 18:22:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-using-mobile-geoprocessing-tools/m-p/463733#M36342</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-09-12T18:22:07Z</dc:date>
    </item>
  </channel>
</rss>

