Hi Sebastiaan!

On Fri, Nov 05, 2021 at 06:45:00PM +0100, Sebastiaan Couwenberg wrote:
> Control: tags -1 upstream
>
> On 11/4/21 20:49, Lucas Nussbaum wrote:
> > > sip: 
> > > /usr/lib/python3/dist-packages/PyQt5/bindings/QtCore/QtCoremod.sip:23: 
> > > syntax error
>
> This seems to be caused by the recent switch to sip6 in pyqt5.

I have updated sip4 to not break on the new syntax. This should help.

> Upstream recently added support for sip6 in their non-LTR, but those changes
> aren't enough for build 3.16.x successfully with sip6:
>
>  Querying qmake about your Qt installation...
>  These bindings will be built: analysis.
>  Generating the analysis bindings...
>  sip-build: Unable to find file "QtCore/QtCoremod.sip"
>
>  ...
>
>  Querying qmake about your Qt installation...
>  These bindings will be built: 3d.
>  Generating the 3d bindings...
>  sip-build: Unable to find file "QtXml/QtXmlmod.sip"
>
> These files are provided by pyqt5-dev under
> /usr/lib/python3/dist-packages/PyQt5/bindings/ but not found for some
> reason.
>
> We may have to wait for the QGIS 3.22.4 LTR in February to be able to build
> successfully with sip6.
>
> Dmitry, do you have any suggestion how to fix the sip6 support in qgis?

Please make sure you are passing --target-dir /usr/lib/python3/dist-packages
to sip-build.

Without that option, it will look in /usr/lib/python3.x/site-packages
because that path is returned by sysconfig.get_path('platlib').

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to