<?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: get_arguments() takes 4 positional arguments but 5 were given in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/get-arguments-takes-4-positional-arguments-but-5-were-given/m-p/1543243#M14525</link>
    <description>&lt;P&gt;A little research and coffee made me understand that self was being passed as the additional argument to the function.&lt;/P&gt;&lt;P&gt;That made me go hmmmm and look at the function definition again compared to the example. I forgot to tag it static.&lt;/P&gt;&lt;P&gt;So the correct definition was&lt;/P&gt;&lt;P&gt;@staticmethod&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;def get_arguments(context, arg_types, duals, header):&lt;/P&gt;&lt;P&gt;Now we are able to start testing!&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 19:59:49 GMT</pubDate>
    <dc:creator>jeremy_fourman</dc:creator>
    <dc:date>2019-02-12T19:59:49Z</dc:date>
    <item>
      <title>get_arguments() takes 4 positional arguments but 5 were given</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/get-arguments-takes-4-positional-arguments-but-5-were-given/m-p/1543218#M14524</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;We are wanting to test full script support to enable our data science team to do some cool stuff! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have worked through all the pieces and been reading all the documentation available - thank you all who contribute!!&lt;/P&gt;&lt;P&gt;I decided on using the following as a starting point for our work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/qlik-oss/server-side-extension/tree/master/examples/python/fullscriptsupport" target="_blank"&gt;https://github.com/qlik-oss/server-side-extension/tree/master/examples/python/fullscriptsupport&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However in testing the example - I receive during load the following error.&lt;/P&gt;&lt;P&gt;'The following error occurred:&lt;/P&gt;&lt;DIV class="edc_error"&gt;Connector reply error: grpc::StatusCode::UNKNOWN: 'Exception iterating responses: get_arguments() takes 4 positional arguments but 5 were given''&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;I have validated the method and call definitions match within ScriptEval. Compared my code against example code etc.&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;Not sure where to head next - would be glad to know if anyone else has encountered this. I feel like I am missing something small or that maybe it is a gRPC issue?&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;For reference here is the line that fails:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;params = self.get_arguments(context, arg_types, row.duals, header)&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;And the method definition:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;def get_arguments(context, arg_types, duals, header):&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;Thank you.&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;Jeremy&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/get-arguments-takes-4-positional-arguments-but-5-were-given/m-p/1543218#M14524</guid>
      <dc:creator>jeremy_fourman</dc:creator>
      <dc:date>2024-11-16T06:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: get_arguments() takes 4 positional arguments but 5 were given</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/get-arguments-takes-4-positional-arguments-but-5-were-given/m-p/1543243#M14525</link>
      <description>&lt;P&gt;A little research and coffee made me understand that self was being passed as the additional argument to the function.&lt;/P&gt;&lt;P&gt;That made me go hmmmm and look at the function definition again compared to the example. I forgot to tag it static.&lt;/P&gt;&lt;P&gt;So the correct definition was&lt;/P&gt;&lt;P&gt;@staticmethod&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;def get_arguments(context, arg_types, duals, header):&lt;/P&gt;&lt;P&gt;Now we are able to start testing!&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 19:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/get-arguments-takes-4-positional-arguments-but-5-were-given/m-p/1543243#M14525</guid>
      <dc:creator>jeremy_fourman</dc:creator>
      <dc:date>2019-02-12T19:59:49Z</dc:date>
    </item>
  </channel>
</rss>

