[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: sip-build error: NoDerived is not a valid function annotation
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2023-05-08 9:59:33
Message-ID: 8bd491bbc173b5fcf65877df797fa9b3 () riverbankcomputing ! com
[Download RAW message or body]

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@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic