<?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: Syntax Error When Attempting to Add Custom Toolbox to Python Script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408975#M32230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It might be the space in the toolbox name.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response. I had tried renaming the toolbox without spaces, no luck...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 13:20:48 GMT</pubDate>
    <dc:creator>JeffAdams</dc:creator>
    <dc:date>2012-05-14T13:20:48Z</dc:date>
    <item>
      <title>Syntax Error When Attempting to Add Custom Toolbox to Python Script</title>
      <link>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408972#M32227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to add a custom toolbox to a python script. Seems like a pretty simple coding exercise, but I am getting an incorrect syntax error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I am using is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Import modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys, os, arcpy, string&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ImportToolbox("C:/Data/Custom Tools.tbx", "custom")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts? I am running ArcGIS Desktop 10 (service pack 4) with licensing for ArcMap and Spatial Analyst. Do you need full ArcGIS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;licensing to add a a toolbox to a python script? Thanks...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 12:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408972#M32227</guid>
      <dc:creator>JeffAdams</dc:creator>
      <dc:date>2012-05-14T12:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error When Attempting to Add Custom Toolbox to Python Script</title>
      <link>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408973#M32228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It might be the space in the toolbox name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 12:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408973#M32228</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-05-14T12:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error When Attempting to Add Custom Toolbox to Python Script</title>
      <link>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408974#M32229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you getting an error on your toolbox import or when you try to execute tools from the toolbox?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 13:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408974#M32229</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-05-14T13:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error When Attempting to Add Custom Toolbox to Python Script</title>
      <link>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408975#M32230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It might be the space in the toolbox name.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response. I had tried renaming the toolbox without spaces, no luck...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 13:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408975#M32230</guid>
      <dc:creator>JeffAdams</dc:creator>
      <dc:date>2012-05-14T13:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error When Attempting to Add Custom Toolbox to Python Script</title>
      <link>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408976#M32231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you getting an error on your toolbox import or when you try to execute tools from the toolbox?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this code (single task of trying to load a toolbox) attached to a script that I run from a toolbox. The error appears a few seconds or so after I hit the run button of the script tool. The tool appears to be giving it a go, but then produces the invalid syntax error. I have tried loading a custom toolbox (as in my example) and an ArcGIS toolbox, no luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 13:24:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/syntax-error-when-attempting-to-add-custom-toolbox/m-p/408976#M32231</guid>
      <dc:creator>JeffAdams</dc:creator>
      <dc:date>2012-05-14T13:24:02Z</dc:date>
    </item>
  </channel>
</rss>

