<?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: Issues importing a custom toolbox within another custom tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181730#M13985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still no luck. I found a workaround by copying and pasting the code from the other tool directly into my script as a function. I included credits in the code, so hopefully it doesn't count as plagiarizing. Thanks for the help anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Nov 2015 23:23:27 GMT</pubDate>
    <dc:creator>JamilHarvich</dc:creator>
    <dc:date>2015-11-26T23:23:27Z</dc:date>
    <item>
      <title>Issues importing a custom toolbox within another custom tool</title>
      <link>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181722#M13977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;I'm trying to call on a custom python script within another script. The tool I'm creating takes 2 feature classes as inputs. I am calling on another custom tool that was downloaded in this script. If I run my script outside of ArcGIS, using predefined paths for the two feature classes, everything works fine. When I try to run my script as a tool using "arcpy.GetParameterAsText()" I get an error saying that the other script that I am referencing can't be found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;Here is the error I get:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; File "C:\Users\jamil.harvich\Documents\ArcGIS\Python_Scripts\Working\IP_Anno\Script\Script_Part1.py", line 80, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ConcatenateRowValues_IP(lyr[0] + '_Intersect', 'SHORT_DESC', 'NAME', lyr[2], '-')&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; File "C:\Users\jamil.harvich\Documents\ArcGIS\Python_Scripts\Working\IP_Anno\IP_Labels.tbx", line 54, in ConcatenateRowValues&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; qN9X/X6ErfAD4ZAf8k08Gf8AhO2X/wAapjfAH4aY4+Gngz/wnLL/AONVgXPxuMvibxL4gsZzfeA/&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;AttributeError: Object: Tool or environment &amp;lt;ConcatenateRowValues_IP&amp;gt; not found&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 18:55:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181722#M13977</guid>
      <dc:creator>JamilHarvich</dc:creator>
      <dc:date>2015-11-26T18:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issues importing a custom toolbox within another custom tool</title>
      <link>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181723#M13978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you providing the full path to the toolbox?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 19:33:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181723#M13978</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-11-26T19:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issues importing a custom toolbox within another custom tool</title>
      <link>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181724#M13979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I am. The script runs fine outside of ArcGIS, but as soon as I try to make it a tool with parameters, it gives me the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 19:43:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181724#M13979</guid>
      <dc:creator>JamilHarvich</dc:creator>
      <dc:date>2015-11-26T19:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issues importing a custom toolbox within another custom tool</title>
      <link>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181725#M13980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so I presume you have an addtoolbox somewhere in your script? &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-functions/addtoolbox.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-functions/addtoolbox.htm"&gt;AddToolbox—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 19:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181725#M13980</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-11-26T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issues importing a custom toolbox within another custom tool</title>
      <link>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181726#M13981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I do. Its the first line I have in the code after import arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;arcpy.ImportToolbox(r'C:\Users\jamil.harvich\Documents\ArcGIS\Python_Scripts\Working\IP_Anno\IP_Labels.tbx', 'IP')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you see any problems with the syntax here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 19:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181726#M13981</guid>
      <dc:creator>JamilHarvich</dc:creator>
      <dc:date>2015-11-26T19:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issues importing a custom toolbox within another custom tool</title>
      <link>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181727#M13982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming the 'IP' is the module name?&amp;nbsp;&amp;nbsp; looks like that is optional...can you try it without the second argument?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 20:12:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181727#M13982</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-11-26T20:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issues importing a custom toolbox within another custom tool</title>
      <link>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181728#M13983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried it without as well. Sorry that example was just my last attempt at it. As far as I can tell, the second argument is required only if the toolbox doesn't have an alias defined. But this one does. I was just experimenting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 20:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181728#M13983</guid>
      <dc:creator>JamilHarvich</dc:creator>
      <dc:date>2015-11-26T20:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issues importing a custom toolbox within another custom tool</title>
      <link>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181729#M13984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put your toolbox in a simpler location, one with a period,or space for example and see if it loads from there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 20:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181729#M13984</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-11-26T20:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issues importing a custom toolbox within another custom tool</title>
      <link>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181730#M13985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still no luck. I found a workaround by copying and pasting the code from the other tool directly into my script as a function. I included credits in the code, so hopefully it doesn't count as plagiarizing. Thanks for the help anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 23:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issues-importing-a-custom-toolbox-within-another/m-p/181730#M13985</guid>
      <dc:creator>JamilHarvich</dc:creator>
      <dc:date>2015-11-26T23:23:27Z</dc:date>
    </item>
  </channel>
</rss>

