<?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: TypeError: GPToolDialog() takes at most 1 argument (2 given) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307234#M23902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't find any posted...I suspect it has something to do with the python window being open which under normal circumstances, it wouldn't be&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 02:55:42 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2014-08-05T02:55:42Z</dc:date>
    <item>
      <title>TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307222#M23890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcGIS 10.22&lt;/P&gt;&lt;P&gt;An error&amp;nbsp; is coming in the python window&amp;nbsp; "TypeError: GPToolDialog() takes at most 1 argument (2 given)" &lt;/P&gt;&lt;P&gt;But the tool seems working fine&lt;/P&gt;&lt;P&gt;The&amp;nbsp; documentation says : &lt;STRONG&gt;GPToolDialog&lt;/STRONG&gt;(&lt;SPAN class="arcpyref"&gt;toolbox, tool_name&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//014p00000021000000" rel="nofollow" target="_blank"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Does anyone know the&amp;nbsp; reason ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 18:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307222#M23890</guid>
      <dc:creator>SurendranNeelakantan</dc:creator>
      <dc:date>2014-08-04T18:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307223#M23891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the tool dialog showing up? If not, are you sure you're passing in the correct path to the TBX and the correct Tool Name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 18:49:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307223#M23891</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-08-04T18:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307224#M23892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it in the format of the last line of that help?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;pythonaddins&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;GPToolDialog&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;r'C:\MyTools\WaterStudy.tbx'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'GroundWaterYield'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;note the raw notation to the tbx name.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 19:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307224#M23892</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-04T19:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307225#M23893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason &amp;amp; Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes Tool Dialog is showing up and executing .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the&amp;nbsp; following line&lt;/P&gt;&lt;P&gt; pythonaddins.GPToolDialog(toolboxPath, toolName)&lt;/P&gt;&lt;P&gt;Where toolbox path and toolbox name are variable pointing to the correct path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is&amp;nbsp; Why the error says&amp;nbsp; "at most 1 argument"&amp;nbsp; where it supports&amp;nbsp; 2 arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 19:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307225#M23893</guid>
      <dc:creator>SurendranNeelakantan</dc:creator>
      <dc:date>2014-08-04T19:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307226#M23894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No clue...other people haven't reported errors&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/392058?sr=search&amp;amp;searchId=4b22ed49-a83c-4de1-be96-7e8db45afe9c&amp;amp;searchIndex=0#392058" title="https://community.esri.com/message/392058?sr=search&amp;amp;searchId=4b22ed49-a83c-4de1-be96-7e8db45afe9c&amp;amp;searchIndex=0#392058"&gt;https://community.esri.com/message/392058?sr=search&amp;amp;searchId=4b22ed49-a83c-4de1-be96-7e8db45afe9c&amp;amp;searchIndex=0#392058&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;show us the path and toolbox name...however, I doubt that is the problem since you said the tool operates.&lt;/P&gt;&lt;P&gt;What version are you using?&amp;nbsp; I can find no bugs listed except for version 10.2.2 being modal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 20:11:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307226#M23894</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-04T20:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307227#M23895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;I am using 10.22&lt;/P&gt;&lt;P&gt;Here is the&amp;nbsp; code to call the Dialog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;import arcpy&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;import pythonaddins&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;import os.path&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;class ButtonBuildGDB(object):&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def __init__(self):&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.enabled = True&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.checked = False&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def onClick(self):&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolboxName = "GDBAutomation_DRAFT"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolName = "BuildGDB"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolboxPath = os.path.join(os.path.dirname(__file__), toolboxName + ".pyt")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pythonaddins.GPToolDialog(toolboxPath, toolName)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 20:17:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307227#M23895</guid>
      <dc:creator>SurendranNeelakantan</dc:creator>
      <dc:date>2014-08-04T20:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307228#M23896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the toolboxPath variable contain any spaces?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 20:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307228#M23896</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-08-04T20:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307229#M23897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no spaces in the toolboxPath variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Surendran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 20:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307229#M23897</guid>
      <dc:creator>SurendranNeelakantan</dc:creator>
      <dc:date>2014-08-04T20:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307230#M23898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the thread I posted, I notice that they are using a toolbox (ie *.tbx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;toolPath = relPath + r&lt;SPAN class="string"&gt;"\Custom Tools\Get IR Count\Install\GetIR.tbx"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you are using a python toolbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;toolboxPath = os.path.join(os.path.dirname(__file__), toolboxName + ".pyt")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could that be the difference?&amp;nbsp; You might be advised to consult the section on&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Creating_a_new_Python_toolbox/001500000034000000/"&gt; python toolboxes &lt;/A&gt;again since their behaviours differ in some respects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 21:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307230#M23898</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-04T21:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307231#M23899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure&amp;nbsp; if the python toolbox&amp;nbsp; is the problem.&amp;nbsp;&amp;nbsp; I am&amp;nbsp; calling&amp;nbsp;&amp;nbsp; tool from a python toolbox . Tool works fine from&amp;nbsp; tool bar button. The above error message is only visible if python window is open in Arcmap.&amp;nbsp; This error not preventing the tool execution. May be I can Ignore this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 00:28:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307231#M23899</guid>
      <dc:creator>SurendranNeelakantan</dc:creator>
      <dc:date>2014-08-05T00:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307232#M23900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just curious as to why the python window would be open?&amp;nbsp; Are you editing then running the tool from the toolbar without closing the python window?&amp;nbsp; If it works totally fine with the window closed, then forget about&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 01:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307232#M23900</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-05T01:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307233#M23901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;a small python window was docked by default . That is the reason I noticed this issue. Only once I received the error in&amp;nbsp; a message box.&amp;nbsp; I am closing the python&amp;nbsp; window for the time being.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still wondering&amp;nbsp; the GPToolDialog() need two argument&amp;nbsp; then why the error message&amp;nbsp; says&amp;nbsp;&amp;nbsp; "at most 1 argument"&amp;nbsp; &lt;/P&gt;&lt;P&gt;The error message it self is&amp;nbsp; wrong ?&amp;nbsp;&amp;nbsp; Do you think it could be a bug ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 01:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307233#M23901</guid>
      <dc:creator>SurendranNeelakantan</dc:creator>
      <dc:date>2014-08-05T01:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307234#M23902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't find any posted...I suspect it has something to do with the python window being open which under normal circumstances, it wouldn't be&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 02:55:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307234#M23902</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-05T02:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307235#M23903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for looking into this, I will keep an eye on this&amp;nbsp; and I will post more details when I have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 03:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307235#M23903</guid>
      <dc:creator>SurendranNeelakantan</dc:creator>
      <dc:date>2014-08-05T03:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307236#M23904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting the same error using ArcMap 10.5.1.&amp;nbsp; I have Python Add-In with several tools which invoke&amp;nbsp;pythonaddins.GPToolDialog() .&amp;nbsp; In all cases they work perfectly well, but print out this error to the Python console:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TypeError: GPToolDialog() takes at most 1 argument (2 given)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I reckon it's a bug as the documentation clearly states that the function takes 2 arguments and it works fine with 2 arguments AND it doesn't appear to be a real problem as the tools all run perfectly well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I have a python console open sometimes for diagnostic purposes when developing and running these tools which use 'print' commands to log their progress.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 02:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307236#M23904</guid>
      <dc:creator>TI</dc:creator>
      <dc:date>2019-02-20T02:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307237#M23905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a longstanding bug&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/TklNMDg5MjUz" title="https://support.esri.com/en/bugs/nimbus/TklNMDg5MjUz" rel="nofollow noopener noreferrer" target="_blank"&gt;NIM089253&lt;/A&gt;. The workaround is just to wrap the call in a try block:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    GPToolDialog&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;toolbox&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; tool_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; TypeError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;pass&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307237#M23905</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-12-11T14:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307238#M23906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with the except block being&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; print " "&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the link... the thread that it refers to is archived since it is so old.&amp;nbsp; and it was found in 10.1 but windows 7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:39:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307238#M23906</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-02-21T11:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307239#M23907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pass worked for me in 10.2 (it's been a while since I've worked with python addins...) but not for another user.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/160547#comment-534380" title="https://community.esri.com/thread/160547#comment-534380"&gt;https://community.esri.com/thread/160547#comment-534380&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meh, python addins are not supported in Pro so I stopped bothering with them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307239#M23907</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2019-02-21T11:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307240#M23908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;pass&lt;/STRONG&gt;&lt;/EM&gt; makes more sense in this context than printing a whitespace character or empty string.&amp;nbsp; I don't see any point in printing an empty line in this context.&amp;nbsp;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;pass&lt;/STRONG&gt;&lt;/EM&gt; is a Python no-op, so actually legitimately does nothing in a context where a statement is required.&amp;nbsp; I think that print statement is an attempt at a no-op, but doesn't quite hit the mark, as it would generate an empty-ish line of text (which may not matter to some people, but might to others).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307240#M23908</guid>
      <dc:creator>TI</dc:creator>
      <dc:date>2019-02-21T21:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: GPToolDialog() takes at most 1 argument (2 given)</title>
      <link>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307241#M23909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That work around doesn't work (at least in my case).&amp;nbsp; I suspect that it is because the error is not actually raising an exception, therefore it cannot be trapped by the &lt;EM&gt;&lt;STRONG&gt;try&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp; It simply logs an error without any actual real problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not a big deal, because the script continues to run fine.&amp;nbsp; I would simply prefer it not to print spurious errors when an error hasn't actually occurred.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:59:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/typeerror-gptooldialog-takes-at-most-1-argument-2/m-p/307241#M23909</guid>
      <dc:creator>TI</dc:creator>
      <dc:date>2019-02-21T21:59:50Z</dc:date>
    </item>
  </channel>
</rss>

