[Python.NET] Re: "TypeError: No method matches given arguments" Error - please help!
Slide <[email protected]> Mon, 16 Aug 2021 11:06:02 -0700
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <CAPiUgVfZBsx83Kw2yGxUhD7HBTN9c+Acbi4BigoRmfhQYefohg@mail.gmail.com> |
--===============1381054354386522170== Content-Type: multipart/alternative; boundary="0000000000007c402a05c9b10e15" --0000000000007c402a05c9b10e15 Content-Type: text/plain; charset="UTF-8" I'm not sure, I've had to pass dummy arguments in pretty much every call I have. On Mon, Aug 16, 2021 at 9:44 AM <[email protected]> wrote: > I am using pythonnet version 2.5.2. Slide - your suggestion does fix the > problem, thanks. The following code works: > > from System import UInt32, Int32 > from System import Double > result, response, errString = ESP301Device.SR_Get(Int32(1),Double(0.),"") > > I think I misread the documentation, which says that calling dummy > arguments was necessary with a void method. Is this correct? Otherwise the > dummy arguments must always be provided? Thanks again to all for the > feedback. > > Matt > _______________________________________________ > PythonNet mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/pythonnet.python.org/ > Member address: [email protected] > -- Website: http://earl-of-code.com --0000000000007c402a05c9b10e15 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I'm not sure, I've had to pass dummy arguments in = pretty much every call I have.</div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Mon, Aug 16, 2021 at 9:44 AM <<a href= =3D"mailto:[email protected]">[email protected]</a>> wrote:<br></div><bl= ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef= t:1px solid rgb(204,204,204);padding-left:1ex">I am using pythonnet version= 2.5.2. Slide - your suggestion does fix the problem, thanks. The following= code works:<br> <br> from System import UInt32, Int32<br> from System import Double<br> result, response, errString =3D ESP301Device.SR_Get(Int32(1),Double(0.),&qu= ot;")<br> <br> I think I misread the documentation, which says that calling dummy argument= s was necessary with a void method. Is this correct? Otherwise the dummy ar= guments must always be provided? Thanks again to all for the feedback.<br> <br> Matt<br> _______________________________________________<br> PythonNet mailing list -- <a href=3D"mailto:[email protected]" target=3D= "_blank">[email protected]</a><br> To unsubscribe send an email to <a href=3D"mailto:[email protected]= g" target=3D"_blank">[email protected]</a><br> <a href=3D"https://mail.python.org/mailman3/lists/pythonnet.python.org/" re= l=3D"noreferrer" target=3D"_blank">https://mail.python.org/mailman3/lists/p= ythonnet.python.org/</a><br> Member address: <a href=3D"mailto:[email protected]" target=3D"_blank">= [email protected]</a><br> </blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"= class=3D"gmail_signature">Website:=C2=A0<a href=3D"http://earl-of-code.com= " target=3D"_blank">http://earl-of-code.com</a></div> --0000000000007c402a05c9b10e15-- --===============1381054354386522170== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ PythonNet mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/pythonnet.python.org/ Member address: [email protected] --===============1381054354386522170==--