<?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 MISSING SECTIONS OF SCRIPT? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-missing-sections-of-script/m-p/426107#M33455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I installed the 10.1 sp1 the other day and my scripts stopped working. The following error is showing up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "c:\location\script.py", line 10, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "d:\arcgis\desktop10.1\arcpy\arcpy\__init__.py", line 24, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy.toolbox import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "d:\arcgis\desktop10.1\arcpy\arcpy\toolbox.py", line 485, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from management import ExportTileCache as ExportTileCache_management&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: cannot import name ExportTileCache&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 10 states:&amp;nbsp; Import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 24 states:&amp;nbsp; from arcpy.toolbox import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 485 states:&amp;nbsp; from management import ExportTileCache as ExportTileCache_management&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In management.py there is no gptooldoc( ' ExportTileCache_managemet ' ).&amp;nbsp; It appears it should be between ExportReplicaSchema, line 914, and ExportXMLWorkspaceDocument but it is not.&amp;nbsp; Makes me wonder if there may be more missing or am I doing something wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have downloaded the sp1 for 10.1 desktop twice and installed several times with no change.&amp;nbsp; The model still works just not the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 12:25:53 GMT</pubDate>
    <dc:creator>AaronHosford1</dc:creator>
    <dc:date>2012-11-08T12:25:53Z</dc:date>
    <item>
      <title>ARCPY MISSING SECTIONS OF SCRIPT?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-missing-sections-of-script/m-p/426107#M33455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I installed the 10.1 sp1 the other day and my scripts stopped working. The following error is showing up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "c:\location\script.py", line 10, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "d:\arcgis\desktop10.1\arcpy\arcpy\__init__.py", line 24, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy.toolbox import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "d:\arcgis\desktop10.1\arcpy\arcpy\toolbox.py", line 485, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from management import ExportTileCache as ExportTileCache_management&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: cannot import name ExportTileCache&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 10 states:&amp;nbsp; Import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 24 states:&amp;nbsp; from arcpy.toolbox import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 485 states:&amp;nbsp; from management import ExportTileCache as ExportTileCache_management&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In management.py there is no gptooldoc( ' ExportTileCache_managemet ' ).&amp;nbsp; It appears it should be between ExportReplicaSchema, line 914, and ExportXMLWorkspaceDocument but it is not.&amp;nbsp; Makes me wonder if there may be more missing or am I doing something wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have downloaded the sp1 for 10.1 desktop twice and installed several times with no change.&amp;nbsp; The model still works just not the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 12:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-missing-sections-of-script/m-p/426107#M33455</guid>
      <dc:creator>AaronHosford1</dc:creator>
      <dc:date>2012-11-08T12:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: ARCPY MISSING SECTIONS OF SCRIPT?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-missing-sections-of-script/m-p/426108#M33456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why are you importing bits of arcpy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why are you importing them in the middle of the script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You have already imported the whole arcpy shebang on line 10...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just wondering.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 17:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-missing-sections-of-script/m-p/426108#M33456</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2012-11-08T17:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: ARCPY MISSING SECTIONS OF SCRIPT?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-missing-sections-of-script/m-p/426109#M33457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only thiing i am importing is arcpy.&amp;nbsp; Those errors pop up from that.&amp;nbsp; Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Script arguments&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Input_Features = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOCATION = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ALL_TXT_LOC = LOCATION + os.sep + "ALL_TXT"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: IMPORT CAD ANNOTATIONS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ImportCADAnnotation_conversion(Input_Features, ALL_TXT_LOC, "1063", "ONE_CLASS_ONLY", "NO_MATCH", "NO_SYMBOL_REQUIRED", "STANDARD", "", "AUTO_CREATE", "AUTO_UPDATE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am not importing bits of script or from the middle of script.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i run the debugger it doesnt get past import arcpy.&amp;nbsp; It spits out the previously posted error message.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 19:00:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-missing-sections-of-script/m-p/426109#M33457</guid>
      <dc:creator>AaronHosford1</dc:creator>
      <dc:date>2012-11-08T19:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: ARCPY MISSING SECTIONS OF SCRIPT?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-missing-sections-of-script/m-p/426110#M33458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I installed the 10.1 sp1 the other day and my scripts stopped working. The following error is showing up:&lt;BR /&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\location\script.py", line 10, in &amp;lt;module&amp;gt;&lt;BR /&gt;import arcpy&lt;BR /&gt;File "d:\arcgis\desktop10.1\arcpy\arcpy\__init__.py", line 24, in &amp;lt;module&amp;gt;&lt;BR /&gt;from arcpy.toolbox import *&lt;BR /&gt;File "d:\arcgis\desktop10.1\arcpy\arcpy\toolbox.py", line 485, in &amp;lt;module&amp;gt;&lt;BR /&gt;from management import ExportTileCache as ExportTileCache_management&lt;BR /&gt;ImportError: cannot import name ExportTileCache&lt;BR /&gt;&lt;BR /&gt;Line 10 states:&amp;nbsp; Import arcpy&lt;BR /&gt;Line 24 states:&amp;nbsp; from arcpy.toolbox import *&lt;BR /&gt;Line 485 states:&amp;nbsp; from management import ExportTileCache as ExportTileCache_management&lt;BR /&gt;&lt;BR /&gt;In management.py there is no gptooldoc( ' ExportTileCache_managemet ' ).&amp;nbsp; It appears it should be between ExportReplicaSchema, line 914, and ExportXMLWorkspaceDocument but it is not.&amp;nbsp; Makes me wonder if there may be more missing or am I doing something wrong.&lt;BR /&gt;&lt;BR /&gt;I have downloaded the sp1 for 10.1 desktop twice and installed several times with no change.&amp;nbsp; The model still works just not the script.&lt;BR /&gt;Any help would be greatly appreciated.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ExportTileCache should be around line 13688 in management.py (tools are grouped by toolset).&amp;nbsp;&amp;nbsp; How long is the file you have, the version I'm looking at is total 14912 lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 22:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-missing-sections-of-script/m-p/426110#M33458</guid>
      <dc:creator>DavidWynne</dc:creator>
      <dc:date>2012-11-15T22:41:45Z</dc:date>
    </item>
  </channel>
</rss>

