Select to view content in your preferred language

TypeError: GPToolDialog() takes at most 1 argument (2 given)

7979
21
08-04-2014 11:00 AM
SurendranNeelakantan
Occasional Contributor

I am using ArcGIS 10.22

An error  is coming in the python window  "TypeError: GPToolDialog() takes at most 1 argument (2 given)"

But the tool seems working fine

The  documentation says : GPToolDialog(toolbox, tool_name)

ArcGIS Help (10.2, 10.2.1, and 10.2.2)

Does anyone know the  reason ?

 

Thanks

0 Kudos
21 Replies
TI
by
Frequent Contributor

hmm... interesting.  It sure does some weird things with stdout and stderr.  I tried it with the print just now, but it didn't help in my case.

0 Kudos
TI
by
Frequent Contributor

That work around doesn't work (at least in my case).  I suspect that it is because the error is not actually raising an exception, therefore it cannot be trapped by the try.  It simply logs an error without any actual real problems.

It's not a big deal, because the script continues to run fine.  I would simply prefer it not to print spurious errors when an error hasn't actually occurred.  🙂

0 Kudos