[PyQt] SIP RuntimeError: the sip module implements API v12.0 to v12.3 but the xxx module requires API v12.4

Denis Rouzaud denis.rouzaud at gmail.com
Thu Apr 5 13:02:13 BST 2018


Hi Pete,

Le jeu. 5 avr. 2018 à 03:45, Hans-Peter Jansen <hpj at urpla.net> a écrit :

> On Mittwoch, 4. April 2018 17:56:35 Denis Rouzaud wrote:
> > Sorry, just getting confused.
> >
> > I am building SIP and installing it and it seems to be replacing existing
> > package i.e. both /usr/bin/sip and files in
> /usr/lib/python3/dist-packages/.
> >
> > The only file missing (not installed) seems to be
> > /usr/share/python3/dist/python3-sip
> >
> > Then, doing sip -V shows I correctly installed (returns 4.255.255).
> >
> > And then, when building QGIS, I get
> >
> > Traceback (most recent call last):
> >   File "/root/QGIS/scripts/pyuic-wrapper.py", line 26, in <module>
> >     import qgis.PyQt.uic.pyuic
> >   File "/root/QGIS/build/output/python/qgis/__init__.py", line 72, in
> > <module> from qgis.core import QgsFeature, QgsGeometry
> >   File "/root/QGIS/build/output/python/qgis/core/__init__.py", line
> > 34, in <module>
> >     from qgis._core import *
> > RuntimeError: the sip module implements API v12.0 to v12.3 but the
> > qgis._core module requires API v12.4
>
> I looks to me, like the sip parts of qgis are build with a newer sip, while
> you try to force it to use an earlier (system?) sip. Try to force a
> distclean
> build in a venv, and run qgis in that venv as well.
>

I can't remove sip, because that also remove PyQt5-dev which is needed.

So I guess the way is the virtual env with my build sip.
Will give it a try.

Thanks for the hint!

Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180405/62dc7f88/attachment.html>


More information about the PyQt mailing list