Wrong number of arguments in sipIsPyMethod

Phil Thompson phil at riverbankcomputing.com
Mon Dec 11 10:45:24 GMT 2023


On 10/12/2023 11:20, Antonio Rojas wrote:
> Trying to compile krita with 6.8.0 produces multiple errors such as
> 
> /build/krita/src/build/plugins/extensions/pykrita/sip/_tmp/krita/sipkritapart0.cpp:26826:28:
> error: too few arguments to function
> 26826 |     sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[15],
> SIP_NULLPTR, sipName_actionEvent);
> 
> And indeed is seems sipIsPyMethod expects five argumens
> 
> https://www.riverbankcomputing.com/hg/sip/file/adaadc70327c/sipbuild/module/source/13/sip.h.in#l1430
> 
> but the generator only provides four:
> 
> https://www.riverbankcomputing.com/hg/sip/file/adaadc70327c/sipbuild/generator/outputs/code.py#l3984

No, for ABI v12.8 and later it provides 5 arguments. What ABI version 
are you using? Is this for PyQt5 or PyQt6?

Phil


More information about the PyQt mailing list