sip-build error: NoDerived is not a valid function annotation
Phil Thompson
phil at riverbankcomputing.com
Mon May 8 10:59:33 BST 2023
On 05/05/2023 11:29, Konstantin Kholostov wrote:
> Dear all,
>
> I'm migrating the code which was buildable with sip4 to sip6.
> I'm running
>
> kk at mac python % sip-build
>
> Querying qmake about your Qt installation...
>
> These bindings will be built: qti.
>
> Generating the qti bindings...
>
> sip-build: ../qtisas/python/sip/qti/qtimod.sip: line 2336: column 26:
> NoDerived is not a valid function annotation
>
> The error happens here. I checked the docs and looks like the function
> annotation NoDerived is still present. NoDerived annotation appears 101
> times in the file and this piece is the first occurrence.
> Folder *activeFolder() /NoDerived/;
> %MethodCode
> sipRes = sipCpp->current_folder;
> %End
>
> The corresponding pyproject.toml:
> [build-system]
> requires = ["sip >=6, <7", "PyQt-builder >=1.6, <2"]
> build-backend = "sipbuild.api"
>
> [tool.sip.metadata]
> name = "qti"
> requires-dist = "PyQt5 (>=5.15)"
>
> [tool.sip]
> project-factory = "pyqtbuild:PyQtProject"
>
> The system I'm trying to build things on is mac with m1 processor.
> Python3, PyQt5, PyQt-builder and sip are installed from brew.
>
> Could you please guide me with some info on how to proceed with this
> error?
As it says in the docs /NoDerived/ is only used with ctors. SIP v6 has
better error checking than earlier versions.
Phil
More information about the PyQt
mailing list